Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Returning strings containing XML/HTML from Web service call to SOAP::Lite

Returning strings containing XML/HTML from Web service call to SOAP::Lite

2005-02-16       - By Jones, Douglas 1

 Back
Reply:     1     2     3     4  

Mike,

Thank you for pointing that out...the only reason I didn't mention any Java
functions that would serve the purpose is because I figured the find/replace
would have to be done in perl since that is the client.


--
Doug Jones
Co-Op Web Developer
douglas.1.jones@(protected)


-- --Original Message-- --
From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
[mailto:J2EE-INTEREST@(protected)]On Behalf Of Michael New
Sent: Tuesday, February 15, 2005 4:17 PM
To: J2EE-INTEREST@(protected)
Subject: Re: Returning strings containing XML/HTML from Web service call
to SOAP::Lite


Jones, Douglas 1 wrote:
> I ran into a similar problem with SOAP, however it was using different
> libraries in a different language.  Unless this affecting a great many
> characters that you can't predict, I would suggest creating a simple
> find/replace method to search for '&lt;', '&gt;', etc. and replace them
> with '<' and '>' and so on.
>
> The only other suggestion that I can offer is that here we use Apache
> Axis to handle SOAP encoding in our Java environment and we are able to
> return Strings containing XML without the '<' and '>' characters being
> encoded.
>

String now has a replaceAll method:

replaceAll

public String replaceAll(String regex,
                         String replacement)

    Replaces each substring of this string that matches the given
regular expression with the given replacement.

    An invocation of this method of the form str.replaceAll(regex,
repl) yields exactly the same result as the expression

        Pattern.compile(regex).matcher(str).replaceAll(repl)

    Parameters:
        regex - the regular expression to which this string is to be
matched
    Returns:
        The resulting String
    Throws:
        PatternSyntaxException - if the regular expression's syntax is
invalid
    Since:
        1.4
    See Also:
        Pattern


Mike New
-- ---- ---- ---- ---- ------ _/ /\/\ /\/ -- ---- ---- ---- ---- ---
J. Michael New                                mailto:mike@(protected)
1-613-796-0652                                http://www.noozoo.com/

         - Michael New is absolutely right and
            Bill Clinton is absolutely wrong.
                                           - Pat Buchanan
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----

===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".

©2008 junlu.com - Jax Systems, LLC, U.S.A.