Bug 46422 - problem with <session:equalsAttribute>
Summary: problem with <session:equalsAttribute>
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Session Taglib (show other bugs)
Version: 1.0
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2008-12-19 22:47 UTC by swapnil_narvekar
Modified: 2009-11-29 19:42 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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.

       //Setting Session attribute with value (String Object).    
       <c:set var="actionName" value="one"></c:set>
       <session:setAttribute name="indexSession" >
		<c:out value="${actionName}"/>
       //Redirecting to 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>
       <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.