• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

strut exception

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends.,

I have one problem.. When i run the jsp page in eclips IDE . i will got one exception .. that exception given bellow,

org.apache.jasper.JasperException: /Reg.jsp(23,24) The attribute prefix width does not correspond to any imported tag library
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:130)
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:185)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:143)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1328)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

How i am solve the problem. any one can help me..
with Regards
Premranjith

 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you show Reg.jsp ?
 
prem ranjith
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok..


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Registration</title>
</head>
<body bgcolor="#C2DFFF">

<center>
<table width="300px;">
<tr>
<th>
<font face="Times New Roman">Employee Registration</font>
</th></tr>
</table>
</center>

<html:form method="post" action="reg" onsubmit="return validateRegstrationForm(this);>
<div style="width:800px; align="left">
<fieldset style="left:100px">
<legend>Employee Detatis</legend>
<table style="width:800px" border="0" >
<tr>
<td style="width:200px">Employee ID </td>
<td style="width:50px" align="left"><font color="red">*</font></td>
<td style="width:500px" ><html:text property="empid"></html:text></td>
<td style="width:150px">Department</td>
<td style="width:50px" align="left"><font color="red">*</font></td>
<td style="width:200px"><html:select property="dept">
<html:option value="1">sales</html:option>
<html:option value="1"></html:option>
<html:option value="1"></html:option>
</html:select></td>
</tr>
<tr>
<td style="width:150px">First Name</td>
<td style="width:50px" align="left"><font color="red">*</font></td>
<td style="width:500px"><html:text property="efname"></html:text> </td>
<td style="width:150px">Designation</td>
<td style="width:50px" align="left"><font color="red">*</font></td>
<td style="width:200px"><html:select property="desig">
<html:option value="1">sales</html:option>
<html:option value="2"></html:option>
<html:option value="3"></html:option>
</html:select> </td>
</tr>

<tr>
<td style="width:150px">Initial/Middle Name</td>
<td style="width:50px" align="left"><font color="red">*</font></td>
<td style="width:500px"><html:text property="emname"></html:text> </td>
</tr>
<tr>
<td style="width:150px">Last Name</td>
<td style="width:50px" align="left"><font color="red"></font></td>
<td style="width:500px"><html:text property="elname"></html:text> </td>
</tr>
</table>
</fieldset>
</div>
!------------------------------- Personal Details ------------------------------- -->
<div style="width:800px;"align="left">
<fieldset style="left:100px">
<legend>Personal Detatis</legend>
Address
<table style="width:800px" border="0">
<tr>
<td style="width:150px">Door/Flat No</td>
<td style="width:50px" align="left"><font color="red">*</font></td>
<td style="width:500px" ><html:text property="doorno"></html:text> </td>
</tr>
<tr>
<td style="width:150px">Location </td>
<td style="width:50px" align="left"><font color="red">*</font></td>
<td style="width:500px"><html:text property="location"></html:text> </td>
</tr>
<tr>
<td style="width:150px">Area</td>
<td style="width:50px" align="left"><font color="red">*</font></td>
<td style="width:500px"><html:text property="area"></html:text> </td>
</tr>
<tr>
<td style="width:150px">District</td>
<td style="width:50px" align="left"><font color="red"></font></td>
<td style="width:500px"><html:select property="district">
<html:option value="1">sales</html:option>
</html:select>
</td>
</tr>
</table>
<!-- State -->
<table style="width:800px" border="0" >
<tr>
<td style="width:400px">State</td>
<td style="width:100px" align="left"><font color="red">*</font></td>
<td style="width:225px"><html:select property="stat">
<html:option value="1">sales</html:option>
<html:option value="2"></html:option>
<html:option value="3"></html:option>
</html:select> </td>

<td style="width:300px" align="right">Zip Code</td>
<td style="width:70px" ><font color="red">*</font></td>
<td style="width:520px" align="left"><html:text property="zipcode" size="6"></html:text> </td>
</tr>
</table>


<table border="0" style="width: 800px">
<tr>

<td style="width:164px">Country</td>
<td style="width:58px" align="left"><font color="red"> *</font></td>
<td style="width:572px"><html:text property="country" disabled="disabled"></html:text></td>
</tr>
<tr>
<td style="width:164px">Phone No</td>
<td style="width:58px" align="left"><font color="red"></font></td>
<td style="width:572px"><html:text property="stdcode" size="5"></html:text>-<html:text property="phno" size="8"></html:text> </td>

</tr>
<tr>
<td style="width:164px">Moblie No</td>
<td style="width:58px" align="left"><font color="red"> *</font></td>
<td style="width:572px"><html:text property="ccode" size="5"></html:text> -<html:text property="mobileno"></html:text> </td>

</tr>
<tr>
<td style="width:164px">Sex</td>
<td style="width:58px" align="left"><font color="red"> *</font></td>
<td style="width:572px"><html:radio property="sex" value="Male">Male</html:radio><html:radio property="sex" value="female">Female</html:radio> </td>
</tr>

<tr>
<td style="width:164px">Date Of Birth</td>
<td style="width:58px" align="left"><font color="red"> *</font></td>
<td style="width:572px"><html:select property="dd"><html:option value="1"></html:option>
<html:option value="1"></html:option>
</html:select>
<html:select property="mm"><html:option value="1"></html:option></html:select>
<html:select property="yyy"><html:option value="1"></html:option></html:select>
</td>

</tr>
<tr>
<td style="width:164px">E-Mail</td>
<td style="width:58px" align="left"><font color="red"> *</font></td>
<td style="width:572px"><html:text property="email" ></html:text> </td>
</tr>
<tr>
<td align="center" colspan="3"><html:submit value="Register"></html:submit> <html:submit value="Cancel" ></html:submit> </td>
</tr>
</table>

</fieldset>
</div>
</html:form>
<html:javascript formName="RegstrationForm"/>
</body>
</html>

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe because of the missing closing double quotation of the onsubmit attribute of the form. It should be :
 
prem ranjith
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thak you friend.. now clear the exception

With regards
N.Premranjith
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic