Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display a value in jsp

 
sarvani kasturi
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

User enters a value in textbox. I need to display it as it is.

For this, in ApplicationResources.properties, I use

value entered by user is {0}

Eg: if value is xyz : output is xyz
'xyz': output is 'xyz'

But if value is "xyz" : output I am getting is "xyz"

Can I know how to print "xyz"?
Please help.
Thanks in advance.
 
Anubhav Anand
Ranch Hand
Posts: 341
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sarvani kasturi:
[QB

But if value is "xyz" : output I am getting is "xyz"

Can I know how to print "xyz"?
QB]


What are you looking at here?
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Confused here as well. It sounds like you are using the validator framework. The messages there are not designed to display the value that the user entered (the user can look at the screen and see the value they entered) but instead to show messages that contain the name of the field that is invalid. Like this:

Hours Worked is required
Hours Worked must be a valid number
Hours Worked must be less than 24

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic