[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglibs-dev
Subject:    DO NOT REPLY [Bug 46422] New: problem with <session:equalsAttribute>
From:       bugzilla () apache ! org
Date:       2008-12-20 6:47:37
Message-ID: bug-46422-7889 () https ! issues ! apache ! org/bugzilla/
[Download RAW message or body]

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: taglibs-dev@jakarta.apache.org
        ReportedBy: swapnil.narvekar@gmail.com


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic