This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need to add quotes to Param String using jstl  RSS feed

 
LaTeef Lusk
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a parameter that I need to add quotes to so it will be passed as string rather than an integer. Is there a way to add quotes to a param value. I am trying to pass this to a stored procedure but without the quotes it is treating the param as an integer and throwing an error because it has an alpha character.



 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All request parameters are passed as strings.
 
Senthil Manoharan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it will pass the parameters as String Only.

if you want to include quotes then you can add \" , that will add quotes to your string.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!