struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <Eric.J...@isb-sib.ch>
Subject Re: html:form action attribute not set correctly
Date Wed, 01 Jan 2003 16:15:53 GMT
> Can you add the struts-config.xml mapping?

===== struts-config.xml =====

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts-config PUBLIC
 "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
 "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

<struts-config>

 <form-beans>

  <form-bean
   name="search-form"
   type="org.apache.struts.action.DynaActionForm"
  >
   <form-property name="dataset" type="java.lang.Integer" />
  </form-bean>

 </form-beans>

 <action-mappings>

  <action
   path="/search"
   type="test.SearchAction"
   name="search-form"
   scope="request"
  />

 </action-mappings>

</struts-config>


===== web.xml =====

...

 <servlet-mapping>
  <servlet-name>action</servlet-name>
  <url-pattern>/search</url-pattern>
 </servlet-mapping>

...


Note that I use /search for displaying the initial query form as well as
showing the results.


--
Eric Jain


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message