*
The moose likes Servlets and the fly likes Return to previous screen (option) in Tomcat 7.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Return to previous screen (option) in Tomcat 7.0" Watch "Return to previous screen (option) in Tomcat 7.0" New topic
Author

Return to previous screen (option) in Tomcat 7.0

Nada Bajnaid
Ranch Hand

Joined: Aug 14, 2011
Posts: 45
I have the following code in my doGet



in my doPost I add a potton "New Search" that should returned me to the previous code in the doGet. I call the form 'search form' with href but it didn't work



Any clue?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

Why are you emitting HTML from a servlet? That's the job of a JSP. It makes it really hard to figure out what your HTML is really like.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nada Bajnaid
Ranch Hand

Joined: Aug 14, 2011
Posts: 45
Hi Bear
Do you mean that I should use seprate file for each HTML screen? What is the right way to have things organized and easy controlled. Aslo what is the best way to have my output be in graphical represenation rather than just text?

Many thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

Nada Bajnaid wrote:Do you mean that I should use seprate file for each HTML screen? What is the right way to have things organized and easy controlled.

This article describes the best-practice approach to organizing web applications.

Aslo what is the best way to have my output be in graphical represenation rather than just text?

I'm not sure what you mean bv this.
Nada Bajnaid
Ranch Hand

Joined: Aug 14, 2011
Posts: 45
Thanks Bear
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Return to previous screen (option) in Tomcat 7.0
 
Similar Threads
Newbie: Need help with checkbox post parameters
Calling JNDI from JSP
Servlet and XML result HTTP 404
values are not getting transferred from one servlet to another servlet
calendar