Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Java Help

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-04-2007, 09:46 AM
reachpradeep's Avatar   
reachpradeep reachpradeep is offline
Learning Programmer
 
Join Date: Mar 2007
Location: India
Posts: 41
Rep Power: 7
reachpradeep is on a distinguished road
Send a message via MSN to reachpradeep
Default object in session.... "<logic:present>" with JSTL?

I'm trying to verify if an object is in httpSession, like
I could do with a logic: present using struts taglibs...

but it is not working...

the object IS in setted in the httpSession, so it should print the word "TEST" in every case here:


1) here prints!

...
<logic: present name="userHttpSession" scope="session">
"TEST"
</logic: present>
...

2) here prints!

...
<%

if (session.getAttribute("userHttpSession") != null)
{
out.print("TEST");
}

%>
...


3) here, when the object IS NOT in httpSession, it prints.
but when the object IS in httpSession, it still printing,
but in this case it should not, because here I'm verifying
if it is null.

...
<c:choose>
<c:when test="${sessionScope.userHttpSessionDTO == null}">
"TEST"
</c:when>
</c:choose>
...

anyone can help me??

thanks!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Protection JPEG/DIR with session elle PHP Forum 4 07-22-2007 03:14 PM
Object IO Stream Data Loss Possible? Any solution, pls? reachpradeep Java Help 0 03-05-2007 03:02 PM
Object is Null Lop C# Programming 2 09-21-2006 12:25 PM
[VB.NET]WebBrowser Object Help CheeseBurgerMan Visual Basic Programming 22 08-29-2006 12:04 PM
Check object for null Lop C# Programming 3 07-18-2006 06:56 AM


All times are GMT -5. The time now is 11:26 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads