Solved

struts form error - urgent

Posted on 2006-06-22
4
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

How many times a day do you open, acknowledge, or close an IT incident? What’s your process? Do you have a process depending on the incident, systems involved, and other factors? New Relic Alerts gives you options for how you interact with notifica…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

710 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