This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Redirecting Servlet  RSS feed

 
asdvenky
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
How can i redirect a Servlet to its self.
I want this action to be performed on click of button or on an image.
Help in this
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"asdvenky"
your name doesn't seem to agree with the javaranch guidelines.
please take a moment and re-register after reviewing the
guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya
 
Sam Dalton
Author
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have your servlet produce a form similar to this.
<form method=post action=servletname>
<input type=submit value="Click Me">
<input type=image src="image.gif">
</form>
Now either clicking the button/image will submit back to the same servlet (the servlet represented by servletname in the forms action.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!