URLEncoder - parameters in a jsp

Posted on 2002-06-11
Last Modified: 2008-03-10
i have a link like this:

i need to pass the follwoing parameters in the url

thus, the entire link becomes like this
once the page userlogin is loaded, it get parameters nexturl and make a redirection to "nexturl"
What really happens is that the parameter "action=3" is lost and of course page is not exceuted as required
What should i do in this caseto avoid this
Question by:soamai_dmeetoo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 19

Accepted Solution

cheekycj earned 50 total points
ID: 7070343
try this:

nexturl ="http://localhost/here/jsp/next.jsp?id=2&action=3");

LVL 19

Expert Comment

ID: 7075685
Did that work for you?

Author Comment

ID: 7077332
yes thanks. i have try another thing : replacing the "&" by a "|". then replaces it back after getting the parameter. finally i have encoded the url
thanks for the help.
LVL 19

Expert Comment

ID: 7078579
Glad I could help and Thanx for the "A".


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
stateless EJB with glassfish 2 75
sortaSum challenge java 17 174
org.apache.jasper.JasperException: using jstl in jsp embedded jetty 13 747
batch vs regular insert in spring DAO 2 50
Changing a few Outlook Options can help keep you organized!
Not everyone has adapted to a rapid advancement in technology; there are people who are reluctant or afraid to delve into this brave new world of IT. If you have a friend or a family member who suffers from the so-called technophobia, here is how yo…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question