struts context-path problem

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

Sponsored Links
Why not find the action it
jsp page add
<html:form action="login.do">
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 src.org.tang.struts.form.LoginForm: {1}
at org.apache.struts.taglib.html.FormTag.initFormBean (FormTag.java: 487)
at org . apache.struts.taglib.html.FormTag.doStartTag (FormTag.java: 457)
at jsp_servlet._jsp.__login._jspService (__login.java: 120)
at weblogic.servlet.jsp . JspBase.service (JspBase.java: 34)
at weblogic.servlet.internal.StubSecurityHelper $ ServletServiceAction.run (StubSecurityHelper.java: 225)
Truncated. see log file for ; complete stacktrace
>

Sponsored Links

pqz666
2009-01-01 02:51:28
up
lx64463424
2009-01-01 03:06:55
you use the Struts html tag, in the form of the action on the inside login.do not write, and write directly login on it
zengowen
2009-01-01 03:22:44
MARK. .
patrickwong
2009-01-01 03:39:17
use HTML tags you write is correct <form action="login.do"> </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.