Yes I already did that. I use <html:forms
action="/forms" > on my forms. The problem is, it
does not work.
The values are not passed. But I can see that the
servlet is doing its job of connecting to the database
because I prompted the servlet to
System.out.println("some text here"); and I can see
that it has connected to the database. But no values
are passed.
Boney
--- MARK NICHOLS <[EMAIL PROTECTED]> wrote:
> I'm new, so take this answer with a grain of salt...
>
> The link syntax is different than the submit button
> syntax.
>
> For a HTML link it would look something like:
>
> <html:link page="/testFinishReason.do">
> <bean:message key="finishReasonTest.testLink"/>
> </html:link>
>
>
> But for a submit button the coding in your JSP would
> be:
> <html:form action="/testFinishReason" >
> ....
> <html:submit property="submit" value="Finish
> Reason Maintenance"/>
> ....
>
> In both cases the "/testFinishReason" label matches
> the action mapping name in the struts-config.xml
> file.
>
> Hope this helps.
>
> /\/\ark
>
>
>
> ___________________________________
> - mark h. nichols
> - dhsv022 at dhs dot state dot il dot us
>
> "Ooo. They've got the Internet on computers now." -
> Homer Simpson
>
> >>> [EMAIL PROTECTED] 03/04/02 02:56AM >>>
> I need to implement struts on my application.
> My application functions like
>
> page1.jsp --> servlet --> javabeans(database access)
> --> page2.jsp
>
>
> page2.jsp --> servlet --> javabeans --> page3.jsp
>
>
> I have implemented struts using action mappings but
> it
> only works when I use a URL link and has ****.do in
> the URL.
>
> But when I use <html:form> to process the request,
> it
> does not work.
>
>
> <form-beans>
>
> <form-bean name="FormBean"
> type="com.mybean"/>
>
> </form-beans>
>
>
> <action-mappings>
>
>
> <action path="/dothis"
> type="com.myServlet"
> name="dothis"
> scope="session"
> validate="false">
> <forward name="page2" path="/page2.jsp"/>
> </action>
>
> <action path="/forms"
> type="com.myServlet"
> name="FormBean"
> scope="request"
> input="/page2.jsp"
> validate="false">
> <forward name="page3" path="/page3.jsp"/>
> </action>
>
> <action path="/page2"
> forward="/page2.jsp">
> </action>
>
>
> I hope you can help me.
>
> Thanks
>
> Boney Sze
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - sign up for Fantasy Baseball
> http://sports.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>