struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lei.java@gmail.com" <lei.j...@gmail.com>
Subject How to do logic in struts tags?
Date Wed, 19 Dec 2007 21:24:35 GMT
I need to pass a request parameter value to a form action. If using a hidden
fild, I can do it like <s:hidden name="lang" value="${lang}"/> as the tag
doesn't allow an experssion as its value. How can I get around it?

Another question is how to use <s:if ...> or other struts tag to do this
logic:

<%

   if ("en".equals(request.getParameter("lang")) {

     ...

   } else {

      ...

   }

%>

Thanks a lot.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message