Re: Custom Type Converter & Session data

2011-02-17 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/17/2011 01:40 AM, Lukasz Lenart wrote: > Why do not change the format in JSP file ? > > Convert should do only conversion, formatting should be in view. Do > you use the tag to display those dates ? If so, the > first entry should be presented

Re: Custom Type Converter & Session data

2011-02-16 Thread Lukasz Lenart
Why do not change the format in JSP file ? Convert should do only conversion, formatting should be in view. Do you use the tag to display those dates ? If so, the first entry should be presented with full format, the following entries just with reduced format. And use hidden fields for full forma

Custom Type Converter & Session data

2011-02-16 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks to Paweł Wielgus I was turned on to the prospect of using a Custom Type Converter to handle a custom date problem. To recap: I have a form where the user can insert into java.sql.Timestamp field either a date in the form -MM-dd HH:mm or ju

Re: Session data

2009-09-03 Thread Tommy Pham
- Original Message > From: Dai Le > To: user@struts.apache.org > Sent: Wednesday, September 2, 2009 4:59:02 PM > Subject: Session data > > Hi, > > > > I developed a data collection web application using struts 1.2.9 and I've > run into a problem

Re: Session data

2009-09-03 Thread Jan T. Kim
formation along in session > variables. The problem arises when a user has multiple instances of the > website opened, the session data is crossed with each other. Because all > the instances share the same session, it's causing the session data to be > crossed or overwritten. Do

Session data

2009-09-02 Thread Dai Le
es of the website opened, the session data is crossed with each other. Because all the instances share the same session, it's causing the session data to be crossed or overwritten. Does anyone have any ideas or thoughts on the matter? Is there any way to create a new session each time the user

Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Lukasz Lenart
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > Should ActionInvocation.getInvocationContext().getParameters() give me a > Map of request parameters or do I need to pull the HttpServletRequest > object in another way? No, just use getParameters() to get raw parameters access Regards -- L

RE: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
Should ActionInvocation.getInvocationContext().getParameters() give me a Map of request parameters or do I need to pull the HttpServletRequest object in another way? I've seen some code online where the HttpServletRequest gets pulled. Thanks, Wes -

Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Lukasz Lenart
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > > But I want this to happen for every action - and it is dependent on the > request data that comes in. Then you should implement Interceptor and investigate ActionInvocation.getInvocationContext() .getParameters() Regards -- Lukasz http://w

RE: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
But I want this to happen for every action - and it is dependent on the request data that comes in. Wes -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 2:51 PM To: Struts Users Mailing List Subject: Re: How to set session data based on

Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Lukasz Lenart
Hello! 2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > 1) I would like to set some session key-value pairs in response to a > request parameter so that I can count on these session variables > throughtout my application. Should I use an interceptor for this? How > does the interceptor g

Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Dave Newton
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: > Should I use an interceptor for this? Depends. > How does the interceptor get access to the request variables? See the ServletConfigInterceptor source, also viewable online [1]. (The version doesn't matter too much in this

Stale session data issue

2005-09-22 Thread Vicky
Guys, My application is being used by third party product, in which they call our different actions (.do?param=value etc.) at different places. Whenever they call our application they open up a child window(our application). After doing necessary task user clicks on "Done" button on child window,

Re: Setting and accessing Context and Session data

2005-08-09 Thread Michael Jouravlev
On 8/9/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote: > How do you save something to the Session scope and then access it within > Struts? > I pretty much understand how to do it within a Servlet. You can do this directly, or you can setup your ActionForm class to have session scope. Acti

Re: Setting and accessing Context and Session data

2005-08-09 Thread Dave Newton
the session through the request and the context through getServlet().getContext() (minus whatever end-of-day errors I've made) Dave Shall I make a getter for this model class and pass the parameter through an Action call or can I access the Session data from a Model Class? Then I gue

Setting and accessing Context and Session data

2005-08-09 Thread C.F. Scheidecker Antunes
Action call or can I access the Session data from a Model Class? Then I guess my Model Class should extend some Struts class that would provide access to both the Session and the Context. Are Model Classes instances unique for every Session? Or one instance is common to everyone? I guess I am

Re: Bean tag and session data issue

2004-09-11 Thread Bill Siggelkow
Sounds like you have made some great progress! Pat yourself on the back :) Langdon Stevenson wrote: Hi Bill Thanks to your advice once again I have solved what was a very simple problem. You suggestion of running the app with a debugger did the trick. It took me long enough to get the Tomcat 4.0

Re: Bean tag and session data issue

2004-09-11 Thread Langdon Stevenson
Hi Bill Thanks to your advice once again I have solved what was a very simple problem. You suggestion of running the app with a debugger did the trick. It took me long enough to get the Tomcat 4.0.6 / IDEA integration working. Initially it wouldn't find the servlets, but would find jsps. No id

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
My appology to the list. Outlook Express and a weak wireless connection confused me and I sent this message multiple times. Langdon > Hi Bill > > Indeed I do have scope set to "session" in struts-config.xml. - To unsubscribe,

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Bill Siggelkow
Are you setting scope="session" for the actions in your struts-config.xml? If so, I'd take it through a debugger. - Bill Siggelkow Langdon Stevenson wrote: Having overcome my validation problem with help from the list (thanks Bill) I now find myself banging my head against another wall. I now

Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Having overcome my validation problem with help from the list (thanks Bill) I now find myself banging my head against another wall. I now have a multi-page form backed by an ActionForm and an Action that appears to work fine (stepping from one page to the next, accepting input, validating it, s