struts context-path problem

Category: Java EE
2009-01-01 02:34:18

Sponsored Links
Why not find the action it
jsp page add
<html:form action="">
password: < html: password property = "password" /> <html:errors property="password"/>

username: <html: text property = "username" /> <html:errors property="username"/>

<html:submit/> <html:cancel/>
</ html: form>

appeared the following exception
I do not know how to solve

<2007-3-14 22:06 minutes and 57 seconds CST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext @ e08edd - name: ' HRSystem ', context-path:' / HRSystem '] Root cause of ServletException.
javax.servlet.jsp.JspException: Exception creating bean of class {1}
at org.apache.struts.taglib.html.FormTag.initFormBean ( 487)
at org . apache.struts.taglib.html.FormTag.doStartTag ( 457)
at jsp_servlet._jsp.__login._jspService ( 120)
at weblogic.servlet.jsp . JspBase.service ( 34)
at weblogic.servlet.internal.StubSecurityHelper $ ( 225)
Truncated. see log file for ; complete stacktrace

Sponsored Links

2009-01-01 02:51:28
2009-01-01 03:06:55
you use the Struts html tag, in the form of the action on the inside not write, and write directly login on it
2009-01-01 03:22:44
2009-01-01 03:39:17
use HTML tags you write is correct <form action=""> </form>
but you use the Struts tags, login before plus "/", as follows:
<html:form action="/login"> </ html: form>

words using Struts tags are not added as login plus. do not care, plus also good, without Struts will automatically recognize, as you add.
but using HTML tags, then it must be added. do not add the front and "/."
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.