• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

doesnt display struts tags in normal html form

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IN MY STRUTS PROJECT

earlier i used normal html forms. eg...<form name="customize" method="post" onsubmit="checkSubmit()">

then when i insert any struts <html:...> tags (for example <html:text> in to that form it dosnt display.or error is given.

but if i change the normal form in to struts form the problom solved.
it displays without problom.
but whan i use struts forms i can use only one action for a form.

but still i need a way to use normal html forms.
beause then i can only use more than one action in a form.

i need a way to handle multiple actions within a one form (normal html form)and use struts tags .not struts forms.

help me...


................................................................
if you use normal form instead of struts forms u can see that...
................................................................
<%@ page language="java" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<%@ 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" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>NewCVPage</title>
<style type="text/css">
<!--
body {
background-image: url(Nback.jpg);
}
-->
<!--
#list {height: 380px; width: 900px; overflow: auto}
-->
</style>
<link href="ARS.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-size: 18px}
-->
</style>
</head>

<body >
<%
java.util.Date date = new java.util.Date();
%>

<span class="ARS style2">
<div align="center">
<span class="ARS style2">New CV's</span></span><table width="1000" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="867" height="63"> </td>
<td colspan="2" valign="top"><div id="Layer1" class="ARS" style="position:absolute; left:761px; top:12px; width:237px; height:79px; z-index:1">
<p>Login As: [Cordinator]</p>
<p align="right">[
<html:link page="/Links.do">Home</html:link>
] [
<html:link page="">LogOff</html:link>
] </p>
</div> <p> </p>
<p> </p></td>
<td width="7"></td>
</tr>
<tr>
<td height="44"></td>
<td width="13"></td>
<td width="113"></td>
<td></td>
</tr>
<tr>
<td height="582" colspan="2" valign="top">

<html:form action="NewCvPage.do"> <!--change to ...<form name=..... to see the problom -->

<p class="ARS">
<label> Select Candidates By,
<html:radio property="optDateOrName" value="Date"/>
Date</label>
<label>
<html:radio property="optDateOrName" value="Name"/>
Name</label>
<label>
<html:radio property="optDateOrName" value="All"/>
All</label>
<html:text property="txtSearch" size="20"/><font color="#FF0000"><html:errors/></font>
<html:submit property="btnSend" ><bean:message key="button.search"/></html:submit>
<br>
</p>
</html:form>
<div ID="list">
<table width="823" border="1">
<!--DWLayoutTable-->
<tr bgcolor="#CCCCCC" class="ARS">
<th width="72" height="42" valign="top" scope="col">Candidate name </th>
<th width="99" valign="top" scope="col">Date Posted </th>
<th width="73" valign="top" scope="col">Select Track </th>
<th width="127" valign="top" scope="col">Select Short Lister </th>
<th width="102" valign="top" scope="col">Return Date </th>
</tr>

<html:form action="NewCvPage.do">
<logic:iterate id="cvs" name="newCvPageForm" property="newCV" indexId="indexID">
<tr class="ARS">
<td height="35" valign="top"><a href="Cvtest.doc">
<html:checkbox property="chkNewCv"/><bean:write name="cvs" property="candidateName"/>
</a><bean:write name="indexID"/>
 </td>
<td valign="top"><bean:write name="cvs" property="datePosted"/></td>
<td valign="top"><html:select indexed="true" name="newCvPageForm" property="selTrack">
<html ption value="a">
TR-1</html ption>
<html ption value="b">
TR-2</html ption>
<html ption value="c">
TR-3</html ption>
</html:select></td>
<td valign="top"><html:select indexed="true" name="newCvPageForm" property="selShortList">
<html ption value="a">SL-1</html ption>
<html ption value="b">SL-2</html ption>
<html ption value="c">SL-3</html ption>
</html:select></td>
<td valign="top"><html:text indexed="true" property="txtReturnDate"/></td>

</tr></logic:iterate>
<html:submit property="btnSend"><bean:message key="button.sendtosl"/></html:submit>
<html:submit property="btnSend" ><bean:message key="button.sendtohold"/></html:submit>
</html:form>
</table>
</div>
</body>
</html>
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Web Application Frameworks forum, since question is about Struts.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both forms point to the same ActionMapping, so why not use just one form?
 
Hot dog! An advertiser loves us THIS much:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!