Results 1 to 2 of 2

Thread: struts2 tag

  1. #1
    aaruviswa is offline Member
    Join Date
    Dec 2010
    Posts
    9
    Rep Power
    0

    Default struts2 tag

    how to check two dynamic values using struts2 tag?
    Example:
    <s:if test value="{dynamic value1" == "dynamic value2"}>
    // Do something
    </s:if>

    Anyone help me :(

  2. #2
    aaruviswa is offline Member
    Join Date
    Dec 2010
    Posts
    9
    Rep Power
    0

    Smile got it

    Hi all,

    I got it by suing like this....

    <s:set name="dName" value="%{dayName}" />
    <s:set name="day" value="%{day}" />

    <s:if test="%{#dName == #day}" >
    </s:if>

Similar Threads

  1. Interceptors in Struts2
    By niranjanbn in forum Web Frameworks
    Replies: 0
    Last Post: 07-27-2010, 01:45 PM
  2. Need Help on jQuery and Struts2
    By jigaramin13 in forum Web Frameworks
    Replies: 3
    Last Post: 04-18-2010, 11:08 AM
  3. integrate jsf in struts2
    By vinoopraj in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 04-28-2009, 07:16 AM
  4. struts2
    By catchme33 in forum Web Frameworks
    Replies: 4
    Last Post: 03-25-2009, 10:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •