• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

doesnt display struts tags in normal html form

Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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"

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

<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">
<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>
<td height="44"></td>
<td width="13"></td>
<td width="113"></td>
<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"/>
<html:radio property="optDateOrName" value="Name"/>
<html:radio property="optDateOrName" value="All"/>
<html:text property="txtSearch" size="20"/><font color="#FF0000"><html:errors/></font>
<html:submit property="btnSend" ><bean:message key="button.search"/></html:submit>
<div ID="list">
<table width="823" border="1">
<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>

<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 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>
<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>
<td valign="top"><html:text indexed="true" property="txtReturnDate"/></td>

<html:submit property="btnSend"><bean:message key="button.sendtosl"/></html:submit>
<html:submit property="btnSend" ><bean:message key="button.sendtohold"/></html:submit>
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both forms point to the same ActionMapping, so why not use just one form?
    Bookmark Topic Watch Topic
  • New Topic