Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing parameter to query from JSP

 
Caleb Jhay
Greenhorn
Posts: 18
Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi peeps sorry kinda newwith this thing. I’m currently developing my application I was able to save and list records in and from the database.

I was just wondering if how can I pass a paramaeter on my query from my JSP. I have this code on my controller




My problem is I jave a JSP with text box. Once I put a string on the text box I’m gonna use it as my parameter on my list. Lets say I entered “Caleb” on the text box how can I pass this to my controller and use “Caleb” to search the record with this name.


Thank you and Best Regards,
Caleb
 
Prasad Krishnegowda
Ranch Hand
Posts: 667
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use request.getParameter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic