• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't get the correct path on refresh  RSS feed

 
Raymond Gillespie
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use the bit of code below to re-write the page to tell the user of a successful registration and then redirect them to another page. My problem is that I can't figure out how to get the path right for the login page. As can see, my first choice was to have the use click to the login page and when I use href it works fine.

I tried to use the entire file page starting at C and that didn't work. I also tried ${pageContext.request.contextPath}/Login which is what I had to do for the action in the form for the login servlet page.

My question is what is the URL I need to use. By the way, if I jut put in google's URL, or any other for that matter, it works fine.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66156
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTML inside a string, inside a JSP?

The whole point of a JSP is not to have to create markup in strings.

Perhaps you should back up a bit and tell use what you are actually trying to do, rather than how.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!