struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Wilson <strut...@yahoo.com>
Subject Re: Peculiar error with <html:form>....
Date Wed, 02 Nov 2005 20:12:48 GMT
Hi Dave -
 
Even without the name attribute it is the same !!!
 
<html:form method="post" action="myPage"> 
 
Here is my struts-config
 
<struts-config>
  <form-beans>
    <form-bean name="RoleForm" type="com.ui.forms.FormnnName" />
  </form-beans>
  <global-forwards>
    <forward name="error" path="/iam_error.jsp" />
    <forward name="invalidUser" path="/iam_invalid_user.jsp" />
  </global-forwards>
  <action-mappings>
     <action input="/iam_admin_role_my_roles.jsp" name="FormName" path="/myRoles.do" scope="request"
type="com.ui.actions.MyPage"/>
</action-mappings>
  <!-- Message Resources -->
  <message-resources parameter="ApplicationResources" null="false"/>
  <plug-in className="org.apache.struts.tiles.TilesPlugin">
    <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
  </plug-in>
  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"
/>
  </plug-in>
</struts-config>
 
 
Any clues???
 
Thanks
Jacob

Dave Newton <newton@pingsite.com> wrote:
Jacob Wilson wrote:

>I have a problem with my jsps after migrating my application from tomcat to Websphere.
I use the struts-html taglibs in my jsps. When I use the normal html form tag like below,
everything looks fine and the page gets displayed without problems.
> 
>
> 
>When I use the struts-html taglib like below, the jsp that shows up on the browser is
totally empty....
> 
> 
> 
>I had made sure that the action is present in struts-config.xml. Also, when I say action="myPage"
in the form tag does not work.
> 
>
I am suspicious of the "name" attribute. Or at least I am now that I 
figured out what the difference between the two JSP chunks actually was.

I've never used "name" in html:form (I didn't even know you could); 
"name" is created by html:form using the "action" attribute and the 
"name" attribute in the action's configuration.

But you didn't include any struts config info, so who knows.

Dave



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




		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message