DO NOT REPLY [Bug 46422] New: problem with <session:equalsAttribute>

[email protected]
Newsgroups gmane.comp.jakarta.taglibs.devel
Message-ID <[email protected]/bugzilla/>
https://issues.apache.org/bugzilla/show_bug.cgi?id=46422

           Summary: problem with <session:equalsAttribute>
           Product: Taglibs
           Version: 1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Session Taglib
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.