• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

html:form's action is blank

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using tomcat 5.5.9 and sun's 1.4.2_08 jdk with the 5.5.9 compat package on Red Hat Enterprise Linux ES release 3 (Taroon Update 4).

I'm using struts 1.2.4.

When using an html:form my generated html occasionally leaves the action field
blank.

jsp source:
<html:form action="foo.do"> ...

Sometimes my html source ends up like this:

<form name="fooform" method="post" action=""> ...

Whereas it should look like this:

<form name="fooform" method="post" action="/webapp/foo.do"> ...

from my struts config:

form bean:
<form-bean name="fooform" type="com.foo.FooForm"/>

action mapping:

<action path="/foo"
type="com.foo.FooAction"
scope="request"
name="fooform"
input="foo.jsp">
<forward name="success" path="/foodone.jsp" redirect="true"/>
<forward name="failure" path="/foo.jsp" redirect="false"/>
</action>

This code works fine for a few days, and then I start getting the blank
action. After that, I need to restart Tomcat. It is possible that this bug exists in struts.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please continue any discussion of this topic in your Struts forum post.
 
reply
    Bookmark Topic Watch Topic
  • New Topic