struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Wilson <strut...@yahoo.com>
Subject Peculiar error with <html:form>....
Date Wed, 02 Nov 2005 19:13:05 GMT
Hello All -
 
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.
 
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ page import ="com.cisco.m2s.iam.utils.*"%>
<%String rowColor = "";%>
<bean:define id="pageForm" value="MY_PAGE" toScope="request"/>
<tiles:insert  page="/iamtemplate.jsp">
<tiles:put name="title" value="Welcome to My Page"/>
<tiles:put name="content">
<form method="post" action="myPage.do" name="FormName"> 
<table>
 <tr>
  <td>
   Displaying my page....
  </td>
 </tr>
</table>
</form>
</tiles:put>
</tiles:insert> 
 
When I use the struts-html taglib like below, the jsp that shows up on the browser is totally
empty....
 
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ page import ="com.cisco.m2s.iam.utils.*"%>
<%String rowColor = "";%>
<bean:define id="pageForm" value="MY_PAGE" toScope="request"/>
<tiles:insert  page="/iamtemplate.jsp">
<tiles:put name="title" value="Welcome to My Page"/>
<tiles:put name="content">
<html:form method="post" action="myPage.do" name="FormName"> 
<table>
 <tr>
  <td>
   Displaying my page....
  </td>
 </tr>
</table>
</html:form>
</tiles:put>
</tiles:insert>
 
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.
 
This seems very strange!!! Has anybody faced a similar problem? Am I missing something? Please
do let me know as to why this happens.
 
Thanks
Jacob




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