Maybe you can provide a more detailed picture of what's happening.  

-> What's your context path?
-> What URL does your browser show when you're on the form that doesn't
submit, just before you submit it?
-> What URL is shown right after you submit?
-> How is your ActionServlet declared and mapped in your web.xml?
-> What version of Struts are you using?
-> Are the fields showing up properly?  [Actual question here is: Is Struts
really finding your Action/ActionForm mapping correctly?]

Not sure I'll be here to reply again, but maybe someone else will see the
problem.  


--- Claire Suttle <[EMAIL PROTECTED]> wrote:
> Yeah, I've actually already tried adding the slash into the html:form tag.
> It doesn't actually make any difference. I've tried it on both the
> tomcat3/Java1.3 version and the Java1.4/Tomcat5 system.
> 
> Either way, on tomcat3/java1.3:
> <html:form action="NewProjectID"> and
> <html:form action="/NewProjectID">
> 
> expands to
> <form name="newProjectForm" method="post" action="/NewProjectID.do">
> 
> and on tomcat5/java1.4
> <html:form action="NewProjectID"> and
> <html:form action="/NewProjectID">
> 
> expands to
> <form name="newProjectForm" method="post" action="//NewProjectID.do">
> 
> Claire
> 
> ----- Original Message ----- 
> From: "Hubert Rabago" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 23, 2004 3:50 PM
> Subject: Re: Submitting form does nothing
> 
> 
> > I'm surprised it's working for some of them.  Probably just coincidence.
> > AFAIK, when you specify an action, you should include the "/" that comes
> > before the action name.
> >
> > > <html:form action="AddNewUser">
> > > <html:form action="NewProjectID">
> >
> > should be
> >
> > > <html:form action="/AddNewUser">
> > > <html:form action="/NewProjectID">
> >
> > Hubert
> >
> > --- Claire Suttle <[EMAIL PROTECTED]> wrote:
> > > I've been looking into my problem some more, and I seem to have found a
> > > more specific error now.
> > >
> > > I am fairly certain that all my paths are in place correctly - I
> haven't
> > > changed any of my directory structures, all I've done is change the
> > > compiler from Java1.3 to Java 1.4 and change Tomcat 3 to Tomcat 5.
> > >
> > > What seems to be happening is that when the JSP is taken from the page
> I
> > > write into its altered form, the Struts html:form tag does not seem to
> be
> > > expanding properly in all cases. I have about 3 cases where the
> expansion
> > > is correct, and about 10 where it is not.
> > >
> > > For example:
> > >
> > > Here's a the struts command when submitting the form does work -
> > > <html:form action="AddNewUser">
> > >
> > > and this is what it expands to when I click view source on the page:
> > >
> > > <form name="newUserForm" method="post" action="/AddNewUser.do">
> > >
> > > and here is the corresponding info from struts-config
> > >
> > > <action path="/AddNewUser" type="com.GeoViz.admin.NewUserAction"
> > > name="newUserForm"
> > >
> > > scope="session">
> > >
> > > <forward name="success" path="/administration/users/ViewAllUsers.jsp"/>
> > >
> > > <forward name="failure" path="/administration/users/AddNewUser.jsp"/>
> > >
> > > </action>
> > >
> > >
> > >
> > > Now, here's an example that doesn't work:
> > >
> > > <html:form action="NewProjectID">
> > >
> > > which then, for some reason is expanding to:
> > >
> > > <form name="newProjectForm" method="post" action="//NewProjectID.do">
> > >
> > > and here's my info from struts-config:
> > >
> > > <action path="/NewProjectID" type="com.GeoViz.projects.NewProjectID"
> > >
> > > name="newProjectForm" scope="session">
> > >
> > > <forward name="filter" path="/NewProjectFilter.do" />
> > >
> > > <forward name="create1" path="/projects/NewProjectStart.jsp" />
> > >
> > > <forward name="continue" path="/projects/NewProjectArea.jsp" />
> > >
> > > </action>
> > >
> > > So, for some reason, when the struts tags are expanded, some of the
> pages
> > > are getting an extra "/" in the form action property - and then
> obviously
> > > it can't find the right action in my struts-config file.
> > >
> > > However, I have no idea what could be causing this...does anyone have
> any
> > > ideas?
> > >
> > > Thanks, Claire
> > >
> > > ----- Original Message ----- 
> > > From: Claire Suttle
> > > To: [EMAIL PROTECTED]
> > > Sent: Thursday, July 22, 2004 1:17 PM
> > > Subject: Submitting form does nothing
> > >
> > >
> > > Hi,
> > >
> > > I am working on moving our current struts based server from Java 1.3 /
> > > tomcat 3 to Java 1.4 / tomcat 5. The forms that were working before do
> not
> > > seem to be working now - when I hit the submit button, I just get
> forwarded
> > > to a blank page. My action classes are not hit. I extended the
> > > ActionServlet class, and my extended class does not get hit either.
> > >
> > > I know that my paths are set up correctly, and that my struts-config
> file
> > > is being read because in some places I have links directly to action
> > > classes, and those links are all fine, it just seems to be the submit
> > > mechanism that is failing.
> > >
> > > Has anyone come across anything like this, or has any ideas?
> > >
> > > Thanks,
> > > Claire
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
> > http://mobile.yahoo.com/maildemo
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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

Reply via email to