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]

Reply via email to