Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Return to previous screen (option) in Tomcat 7.0

 
Nada Bajnaid
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Nada Bajnaid
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic