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.  

Reply via email to