• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp page submit datas back to itself

 
joseph okon
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i know this place is not a code mill,
please can some good rangers help me just give me an idea!!!

1)i have a textfield which will be filled out,
2) i want after filling the text field and the page submit the textfield value back to itself for interaction with the database and the result from the database will be display on the same jsp page after submission.
please can someone help me out with an idea how it will be done.
i have crack my brain and now am have brainicolosis.
thanks for the help
joeidee
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP should never submit to a JSP, including itself. Rather, it should submit to a controller (servlet) that does the work, which can then forward to any JSP (including the original).
 
joseph okon
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

just found something
can this code be use? ">
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only if you completely disregard my previous response and want to write your JSPs like it was 1999.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!