This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Navigation to another Url in a jsp

 
shivang sarawagi
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this url "http://localhost:8080/TestApp/Redirect.jsp?state=sdfgfdgvadffgjgj&code=AQCUmQk7MoE1Gh4ffwmaxpJWV1lphLXZaSJ448QDXZQV3CqDw5YfKW4JCQHPmfozw9pi6DdbVPaO6hupVnG2E9rramPyGwqBgLmRld12izlXf188-KHZZgT9xNrVZ0c4MzWwQygE-Qw_Z658m110y1l_5Hl6lUYZM-9vPnOSZ7OkEbVJAPG46AQEnpHNEGanVCY#_=_"

by using a javascript function in a jsp page I extracted the value of the code



Now I want to send request i;e navigate to another url. The url will be "anotherurl + code". Can anyone tell me how do I do that ?? Thanks
 
shivang sarawagi
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The issue is resolved. Thanks
 
subhod lagade
Greenhorn
Posts: 6
Hibernate Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what have you tried ,please give solution for that???
 
shivang sarawagi
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used a javascript function location.replace();



It worked :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic