Solved

struts form error - urgent

Posted on 2006-06-22
4
241 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
Comment Utility
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
Comment Utility
Just check if your Struts html taglib has definition for "html:text"
0
 
LVL 10

Accepted Solution

by:
jaggernat earned 125 total points
Comment Utility

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
Comment Utility
did you get it working?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
communication with a non technical owner 16 97
simple jsp servlet and webservice web example 5 110
xjc and jaxb 2 88
method inner class 6 80
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now