Re: Struts 2 and passing data using interceptors

2006-12-03 Thread fahlen
Hi Mark! I replaced the line Display with /crosseyed/Display.jsp as you suggested, and now it works :) Thank you for all your help!! Mark Menard wrote: > > On 12/2/06 10:45 AM, "fahlen" <[EMAIL PROTECTED]> wrote: > >> >> Hi Mark, >> >> I've tried this now, but I'm unable to acce

Re: Struts 2 and passing data using interceptors

2006-12-03 Thread Mark Menard
On 12/2/06 10:45 AM, "fahlen" <[EMAIL PROTECTED]> wrote: > > Hi Mark, > > I've tried this now, but I'm unable to access the data from the JSP. In the > struts.xml configuration file, the action involved is configured this way: > > > /crosseyed/Search.jsp > Display >

Re: Struts 2 and passing data using interceptors

2006-12-02 Thread fahlen
Hi Mark, I've tried this now, but I'm unable to access the data from the JSP. In the struts.xml configuration file, the action involved is configured this way: /crosseyed/Search.jsp Display I.e. Search.jsp -> Search action class -> Display.jsp On the S

Re: Struts 2 and passing data using interceptors

2006-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, Mark Menard wrote: > On 11/30/06 7:45 PM, "Christopher Schultz" <[EMAIL PROTECTED]> > wrote: >> Sorry for poking my nose in, but wouldn't this be horrendously >> non-threadsafe? > > No problem. If your thinking of Actions from the perspective o

Re: Struts 2 and passing data using interceptors

2006-12-01 Thread fahlen
Thank you all for your replies! They have been very helpful. I'm happy to have found such an active forum. Thanks again. -- View this message in context: http://www.nabble.com/Struts-2-and-passing-data-using-interceptors-tf2734105.html#a7634983 Sent from the Struts - User mailing list archive a

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread Mark Menard
On 11/30/06 7:45 PM, "Christopher Schultz" <[EMAIL PROTECTED]> wrote: > Mark Menard wrote: >> public String getDataRetrievedFromSessionBean () { >> return this.dataRetrievedFromSessionBean; >> } > > Sorry for poking my nose in, but wouldn't this be horrendously > non-threadsafe? No proble

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread James Mitchell
What makes it not thread safe? If you are thinking in terms of s1, then yes, but s2 actions are not reused and can therefore keep state as you normally would have had to put in a s1 formbean. On 11/30/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: S

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, Mark Menard wrote: > public String getDataRetrievedFromSessionBean () { > return this.dataRetrievedFromSessionBean; > } Sorry for poking my nose in, but wouldn't this be horrendously non-threadsafe? Since I know virtually nothing about

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread Mark Menard
On 11/30/06 5:29 PM, "Don Brown" <[EMAIL PROTECTED]> wrote: > If you only need request-scoped data, you don't need to bother with > the ScopeInterceptor or even the ServletRequestAware interface. > Simply define a getter on your action that returns the object in > question, then access it via your

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread Don Brown
If you only need request-scoped data, you don't need to bother with the ScopeInterceptor or even the ServletRequestAware interface. Simply define a getter on your action that returns the object in question, then access it via your JSP via JSP EL (JSP 2.0), a JSTL expression, or a Struts 2 property