Solved

struts form error - urgent

Posted on 2006-06-22
4
245 Views
Last Modified: 2010-04-01
My form has this code

<tr><td>Rent/Price</td></tr>
      <html:text property="price" size="20" />
                  <tr><td>Location</td></tr>
      <tr><td>Posting Title</td></tr>
      <tr><td>Duration</td></tr>

It is givinf error not found page
if I remove this line

<html:text property="price" size="20" />

it works ok
why?

Not accepting any <html:text
I do have html sturts tag lib in place

because <html:base /> works

Help


0
Comment
Question by:su_harvie
  • 2
4 Comments
 
LVL 4

Expert Comment

by:evnafets
ID: 16964271
Is this property nested in an <html:form> tag?
Do you have an action and form defined in struts-config.xml?
Check the log to see if there is a full exception/error message.
0
 
LVL 5

Expert Comment

by:muktajindal
ID: 17072115
Just check if your Struts html taglib has definition for "html:text"
0
 
LVL 10

Accepted Solution

by:
jaggernat earned 125 total points
ID: 17349658

Make sure your jsp has the following structure shown below

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<html:html>
<script language="javascript">
..write javascript code here..if you have any  
</script>



<HEAD>
      <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <TITLE> SAMPLE TEST PAGE</TITLE>
</HEAD>

<body>

<html:form  action="/abc/sssss.do" method="post">
<html:text property="abc" size="20" maxlength="10"/>
...
....

...
</html:form>
</body>
</html:html>


Make sure you have    struts-html.tld   in your WEB-INF directory

Make sure you have   "/abc/sssss" defined in action mapping of struts-config.

In your struts-config, Make sure you have <form-beans> defined and the field "abc" should be in the <form-beans>.




0
 
LVL 10

Expert Comment

by:jaggernat
ID: 17416093
did you get it working?
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exception creating bean of class 5 182
difference between member and local variables. 29 133
build fail in maven project 11 186
how to hide hide popup page refresh second time? 10 124
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question