Why don't you use response.encodeURL()?

> -----Original Message-----
> From: Nishit Trivedi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 9:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: URL Encoding
>
>
> king,
>
> String firstName = "King Maurice";
> String encodedFName = java.net.URLEncoder.encode(firstName);
> String encodedLink = "Servlet?Name="+encodedFName;
>
> hope this is what you are looking for..
>
> Nishit
>
> -----Original Message-----
> From: King Maurice [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 11:57 AM
> To: [EMAIL PROTECTED]
> Subject: URL Encoding
>
>
> Can someone point out to me some real world examples of using
> url encoding
>
> I have a non-submit button where it passes some values
> The values are string being passed
>
> Ex:::    mywebsite.com?index.jsp?valuestring=<%= stringvalue %>
>
> then when I process the string in another page
>
> Ex:::    String valuestring = request.getParameter("valuestring");
>
> I get these %20, which should be +
>
> I need to encode these before submiting
>
> Does anyone have a code sample(s)
>
> I would appreiciate it
>
> Thanks~
>
>
> ----- Original Message -----
> From: "Chitra Muthukrishnan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 03, 2001 10:25 AM
> Subject: Re: DATE FORMAT
>
>
> > Hi there
> >
> > You can use
> > 1) "to_date()" method  to convert str to oracle date
> > 2) "to_char()" method to convert oracle date to string
> >
> > Examples :
> >
> > 1. to_date('01-MAY-2001 12:00:00','dd-MONTH-yyyy hh:mi:ss')
> > 2. to_char('oracledate','any format')
> >
> > You can insert/update the date field (Oracle) in any format
> and retrieve
> > date field in any format
> >
> >
> >
> > M.Chitra
> > www.3rdagenda.com
> >
> >
> > ----- Original Message -----
> > From: [Lelievre Frederic] <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, May 03, 2001 7:24 PM
> > Subject: DATE FORMAT
> >
> >
> > Hi all,
> > I would like to change a String (String str = "01-MAY-2001
> 12:00:00";) to
> a
> > Oracle Date ?
> > And I would like to change a Oracle Date to a String.
> > How can I do this ?
> >
> > Give the code please .
> > Thank for your help.
> >
> >
> > > Frédéric LELIEVRE
> > > TTE -  (BA / F04 C024)
> > >
> > > *   +352-44992--2485
> > > * [EMAIL PROTECTED]
> > >
> >
> >
> > Visit us at http://www.clearstream.com
> > Check out current job vacancies at
> > http://www.clearstream.com/public/english/e_vacs.htm
> >
> > IMPORTANT MESSAGE
> >
> > Internet communications are not secure and therefore Clearstream
> > International does not
> > accept legal responsibility for the contents of this message.
> >
> > The information contained in this e-mail is confidential and may be
> legally
> > privileged. It is
> > intended solely for the addressee. If you are not the
> intended recipient,
> > any disclosure,
> > copying, distribution or any action taken or omitted to be taken in
> reliance
> > on it, is
> > prohibited and may be unlawful. Any views expressed in this
> e-mail are
> those
> > of the
> > individual sender, except where the sender specifically
> states them to be
> > the views of
> > Clearstream International or of any of its affiliates or
> subsidiaries.
> >
> > END OF DISCLAIMER
> >
> >
> ==============================================================
> =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
> ==============================================================
> =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to