Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp - Syntax

 
naro pad
Ranch Hand
Posts: 58
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a text box and I want the value of that text box to be an expression.
I try this but it doesn't work.

<input type="text" name="customer_name" value="<%= tmp.getCustomerName() %>"/>

What is the right syntax?Can anyone help me with at...

Thanks
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the syntax seems to be correct only. What exactly do you get?

Are you sure that the "customerName" property is set with some non-null, non-empty values? Just check that out.

Do you get any errors, if not?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by panayiotis panayiotou:
I try this but it doesn't work.


On an internet forum, "it doesn't work" is, for the most part, a useless statement. It would be better if you told us what did happen when you tried to run it.

Did the page blow up?
If so what error messages were dumped to the screen.
If none, did you look in the server's logs to see what might have gone wrong? If so, can you post the stack trace so we can see it?
Did the expression return "null" or an empty string?

Without this type of information, folks here can't do much to help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic