Bug 46422

Summary: problem with <session:equalsAttribute>
Product: Taglibs Reporter: swapnil_narvekar <swapnil.narvekar>
Component: Session TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED LATER    
Severity: normal    
Priority: P2    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description swapnil_narvekar 2008-12-19 22:47:36 UTC
Respected Sir, 
      I have developed simple example based on Session-Taglib 1.0.1.
      In this example i have set session attribute in first page & comparing that session attribute in next page . But problem is that body of <session:equalsAttribute> doesn't execute eventhough attribute value matched with the required value. Following code snippet will give you to more clarification of my problem.

------------------------------------------------------------
       [index.jsp]
        .
        .
       //Setting Session attribute with value (String Object).    
       <c:set var="actionName" value="one"></c:set>
       <session:setAttribute name="indexSession" >
		<c:out value="${actionName}"/>
       </session:setAttribute>
       .
       .
       //Redirecting to ReadSession.jsp

          
       [ReadSession.jsp]
       ..
       <b>Before Equal attribute tag body execute<b> <br>
       <session:equalsAttribute name="indexSession" match="one">
          I am in Equal attribute tag body.<br>
       </session:equalsAttribute> 
       <b>after Equal attribute tag body execute<b> <br> 
       .. 
        

Result : 
      Before Equal attribute tag body execute
      after Equal attribute tag body execute 
------------------------------------------------------------

With above code i failed to execute that respective tag body.

Few Questions :
1.     When we set attribute value what data type it used . a String object ?
2.     When we compare session attribute value with required value  using this  tag , will comparing will be done by converting string object ?


Please pointed out where i have done mistake. i am trying to use this taglib . i'll feel very good to use this taglib if i get answers to my doubts regarding this issue & this taglib also.
 
Expecting a favourable reply,

Swapnil A. Narvekar
Comment 1 Henri Yandell 2009-11-29 19:42:15 UTC
Resolving. Taglib has been retired.