[Opensource] Struts1.1 and validation
Eddie Lewis
ELewis at copyright.com.au
Thu Nov 13 22:12:17 PST 2003
I am trying to incorporate struts 1.1 validation into expresso
I have my config file specified as
default = DefaultForm which extends ActionForm
<action path="/Login" type="com.cal.controller.LoginCont" name="default"
scope="request" validate="false">
<forward name="promptLogin" path="/jsp/generic_detail_page.jsp"/>
For struts validation -
i create my own validation bean and need to reference it in my config.xml as
<action path="/Login" type="com.cal.controller.LoginCont" name="loginForm"
scope="request" validate="true">
<forward name="promptLogin" path="/jsp/generic_detail_page.jsp"/>
loginForm = LoginForm which extends ValidationForm
when i do this - on calling the state (promptLogin) i get a
classCastException as LoginForm is not of type DefaultForm.
is there a way around this or is some setting required ??
any help would be much appreciated.
If i can get this working, i will document and send to the community as the
validation is a pretty handy plugin to complement the expresso architecture.
Thats all folks.
Eddie Lewis
____________________________________________
Eddie Lewis
Senior Analyst Programmer <mailto:elewis at copyright.com.au>
elewis at copyright.com.au Copyright Agency Limited Tel: +61 2 9394 7685
Fax: +61 2 9394 7601 <http://www.copyright.com.au/> www.copyright.com.au
Level 19, 157 Liverpool Street
Sydney NSW 2000
This electronic mail message and any attachments are confidential. If you are not the intended recipient please do not use the information, advise us immediately and destroy this message. Opinions and information in this message are those of the sender and not necessarily those of CAL. Unless expressly permitted by the sender, you may not copy, disclose or use the contents in any way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20031114/6b1d67d1/attachment-0002.htm
More information about the Opensource
mailing list