Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp  RSS feed

 
medikonda swetha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can sendRedirect accept a servlet name? If for example, there is a servlet called ProcessAccountServlet, can the following code work?

String urlRedirect = "ProcessAccountServlet"
res.sendRedirect(urlRedirect);
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi medikonda swetha welcome to Javaranch ,
Firstly please UseAMeaningfulSubjectLine.
The topic name "jsp" is too generic.

can the following code work?

String urlRedirect = "ProcessAccountServlet"
res.sendRedirect(urlRedirect);

Why don't you try it for yourself
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Amit pointed out, please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "jsp" in a forum completely dedicated to questions on JSP isn't very helpful.

Please go back and change your post to add a more meaningful subject by clicking the .
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!