hi all, sorry to keep hammering on about this, but i was a bit ahead of myself when i thought the problem was solved.
i thought that when i set the request object in my action (using ServletActionContext.setRequest()) then my own request object would be used for the rest of the request. instead i can see that when i get the request from inside the action (after setting it) it works fine, but when i try to look at it in the success.jsp page, then its the original request object. so i can only change the request object in the scope of my own action. is this expected behaviour? sincerely morten wilken ----- Original Message ----- From: "Morten Wilken" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 18, 2003 11:06 PM Subject: Re: [OS-webwork] webwork include question > hi all, > i fixed my problem after being inspired by dicks suggestion. so now my front > action sets its own request object, and all is fine. except: > > what is the right way to get the Request object? > > when i use ActionContext.getContext().getRequest(), i am told the method is > deprecated, but when i look at the wiki it seems that that is the right way. > > sincerely > morten wilken > ----- Original Message ----- > From: "Morten Wilken" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, March 18, 2003 2:27 PM > Subject: Re: [OS-webwork] webwork include question > > > > hi dick, > > thanks for your answer, now i dont have to worry if i misunderstood > anything > > :-) > > > > perhaps my problem could lead to a feature request instead, it would be > very > > handy to be able to piece together a page using only <ww:include> tags and > > have them controlled by a front action > > > > (my usecase is that i am building a blog app, and i want to let users skin > > their own blogs like in roller, and here it would come in very handy) > > > > the custom tag you mention should try to map anythying on the valuestack > > (along with the httpRequest) to the action ,if i'm not mistaken. > > > > sincerely > > morten wilken > > > > ----- Original Message ----- > > From: "Dick Zetterberg" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, March 18, 2003 12:31 PM > > Subject: Re: [OS-webwork] webwork include question > > > > > > Hi Morten, > > That's correct, when you use the action tag it does not try to map the > > result to any view so what Patrick wrote would not work for you if you > want > > that. > > > > Concerning the original question about the include and the parameters > passed > > to it, that is also the correct behaviour. The include is made by using > the > > servlet request dispatcher and it passes on the http request.to the > included > > resource. > > If you want to hide the original parameters perhaps you could create your > > own include tag and in that tag use a ServletRequestWrapper that hides the > > original parameters? > > > > Cheers, > > > > Dick Zetterberg > > > > [EMAIL PROTECTED] > > > > ----- Original Message ----- > > From: "Morten Wilken" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, March 18, 2003 11:10 AM > > Subject: Re: [OS-webwork] webwork include question > > > > > > > hi patrick, > > > i did try that, but it doesn't seem to include the success jsp from the > > > calendar.action > > > > > > i can see that all the right methods get called, but i do not get any > html > > > inserted into my page > > > > > > sincerely > > > morten wilken > > > ----- Original Message ----- > > > From: "Patrick Lightbody" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, March 18, 2003 2:02 AM > > > Subject: Re: [OS-webwork] webwork include question > > > > > > > > > > We do a very similar thing... but with the ww:action tag. Why not use > > > that? > > > > > > > > -Pat > > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Does your code think in ink? > > You could win a Tablet PC. Get a free Tablet PC hat just for playing. > > What are you waiting for? > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Does your code think in ink? > > You could win a Tablet PC. Get a free Tablet PC hat just for playing. > > What are you waiting for? > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code think in ink? > You could win a Tablet PC. Get a free Tablet PC hat just for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork