Hi JP,

On 7/17/06, JP Singh <[EMAIL PROTECTED]> wrote:
> Hi John/Users/Developers
>
> I want to know how session is being managed in OWFE.

I assume you are talking about http sessions.

They are not managed at all by OpenWFE. The webclient relies on the
servlet API to do that.


> I am trying to follow traditional method, but its not working.
>
> What I have done
>
> 1. there is a text box in editWorkitem-body.jsp and I wnat to enter
> something.
>
> 2. submit will call ProceedAction
> 3. Now I am setting attribute
> String name = request.getParameter( "username" );
>    session.setAttribute( "theName", name );
>
> in ProceedAction.java

What's this 'session' object, how do you obtain it ?

> ( I have created a new session here by making boolean value as true before
> this)

Don't you know that if you do request.getSession(true) you will
receive a brand new session ?
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#getSession(boolean)

> 4. I want to acess theName in editWorkitem-body.jsp and
> viewWorkitem-body.jsp
>
> something like :
> Hello, <%= session.getAttribute( "theName" ) %>
>
> Howeevr its prining null only.
>
> I have seen There are some inbuilt methods/libraries written for session
> management.
>
> Do I need to use them

no.

> My work was simple and easy so I wanted to use traditional method.


In which school where you taught how to program ?


-- 
John Mettraux   -///-   http://jmettraux.openwfe.org


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users

Reply via email to