when i submit my form to the action, the action maps my form to a DynaActionForm and 
binds the values. 

now, along with my form, i actually do submit something called PID (page id) which is 
the current page at time of submission. therefore, my dyna form will have the page id 
for which i need to load navigational information. 

however, because I am forced to use a tile definition or JSP in the input parameter of 
the action for when the validation fails, i am unable to load page attributes for that 
pid from my backend navigation system and this is breaking my view.

now you might say that all i need to do is load the page attributes from the jsp 
because it will be in the dyna form when i get to the view after failure, but now we 
are talking about breaking the whole point of MVC as i would need to call my backend. 

can anybody see what i am getting at here?

> -----Original Message-----
> From: Adrian Kaminski [mailto:[EMAIL PROTECTED]
> Sent: 17 September 2004 13:33
> To: Struts Users Mailing List
> Subject: Re: DynaActionForm and previous request attributes (no answer
> found in archives for similar problems)
> 
> 
> > managing a request attribute in the session by setting it 
> and then making sure we pop it out at the view is messing and 
> defies the semantic use of the request scope.
> > 
> > that's why it is bad practice.
> > 
> Don't shoot me if I'm wrong but HTTP is stateless so without any of:
> cookie, session, browser politeness (HTTP referer), hidden field with
> url, server won't be know where you come from (and in request scope
> you will won't have any information where user was before clicking
> Submit) ...
> 
> Regards,
> Adrian
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com";>www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>

Reply via email to