Thanks a lot, i'll try it

El vie, 12 de 05 de 2006 a las 11:19, [EMAIL PROTECTED] escribió:
> Dario,
> 
> In this situation, in the "input" attribute of action-mapping, you should 
> provide the action-mapping which you want to execute to populate your 
> drop-down in jsp. Usually we provide the JSP page in "input" attribute, 
> but when you have to forward to JSP through any action, you should provide 
> one more attribute in struts-config.xml file. In Controller tag, 
> "inputForward" attribute should be set as "true", by default it is 
> "false". In case of "false" value, you can not use action-mapping in 
> "input" attribute, but in case of "true", you can.
> Consider following example..
> 
>     <action
>         path="/trade"
>         type="com.mypkg.depository.action.DepositoryAction"
>         input="failure"
>                 name="depositoryForm"
>         scope="request"
>         parameter="method"
>         validate="true" >
>       <forward name="success" 
> path="/viewdepository.do?method=viewDepository"/>
>       <forward name="failure" path="/loadtrade.do?method=loadTrade"/>
>     </action>
> 
>    <controller 
> processorClass="org.springframework.web.struts.DelegatingTilesRequestProcessor"
>  
> nocache="false" inputForward="true" maxFileSize="2M"/>
> 
> 
> Hope it helps.....
> 
> Thanks & Regards
> Sunil Sahu
> 
> 
> 
> 
> dario <[EMAIL PROTECTED]> 
> 05/12/2006 02:05 PM
> Please respond to
> Struts Users Mailing List <user@struts.apache.org>
> 
> 
> To
> user@struts.apache.org
> cc
> 
> Subject
>  how to deal with request attributes and validation?
> 
> 
> 
> 
> 
> 
> hello everybody, 
> I'd like to know how do you deal with situations where you need to 
> display some dynamic elements (menus, dropdowns...) on the page? 
> putting those in the request scope in the action thus making them 
> available to JSP, seems most naturally to me. problem is when form data 
> does not pass validation, and action is never called, so JSP page breaks 
> because it has no data to display. 
> is there any proven tactics for this? basicly, i want some action/method 
> executed even if validation fails, but still want validation to work and 
> error messages passed to JSP. 
> thanks a lot! 
> 
> dario 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
-- 
;-)
____________________________________
Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384
____________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to