File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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?


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