jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes s:if into a s:textfield ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "s:if into a s:textfield ?" Watch "s:if into a s:textfield ?" New topic

s:if into a s:textfield ?

Robert Sacchi

Joined: Jul 11, 2012
Posts: 5
I would like to include a VALUE param only if a variable is set TRUE.

Here's my code:

but it doesn't work....
I know I can put the <s:if> outside the textfield, but in that case I've to create 2 textfields for both conditions, but I think it's not the smartest way.
Any suggestion?


Consider Paul's rocket mass heater.
subject: s:if into a s:textfield ?
Similar Threads
ONGl + struts 2 tag
hide the link in jsp
Update Database with the newly entered value
How to use <s:if> tag in another Struts2 tag
<s:textfield value="NEED_TO_CHECK_CONDITION" name="testField"/>