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
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?


I agree. Here's the link:
subject: s:if into a s:textfield ?
jQuery in Action, 3rd edition