• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error on web.xml setting relative path with(../)  RSS feed

 
Igor Rodrigo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I'm not completely right if I'm posting on the correct place, if not, sorry! My problem is that I have the following web.xml:

<login-config>
<auth-method>FORM</auth-method>
<realm-name>myrealm</realm-name>
<form-login-config>
<form-login-page>../spreadsheet/index.jsp</form-login-page>
<form-error-page>../spreadsheet/index.jsp?error=failed</form-error-page>
</form-login-config>
</login-config>

In the tag's <form-login-page> and <form-error-page> I need to specify the relative paths with two points(..). When I do this the Eclipse displays errors like that:

-Description Resource Path Location Type
cvc-complex-type.2.2: Element 'form-error-page' must have no element [children], and the value must be valid. web.xml /spreadsheet/src/main/webapp/WEB-INF line 38 XML Problem
-Description Resource Path Location Type
cvc-complex-type.2.2: Element 'form-login-page' must have no element [children], and the value must be valid. web.xml /spreadsheet/src/main/webapp/WEB-INF line 37 XML Problem
Description Resource Path Location Type
cvc-pattern-valid: Value '../spreadsheet/index.jsp?error=failed' is not facet-valid with respect to pattern '/.*' for type 'null'. web.xml /spreadsheet/src/main/webapp/WEB-INF line 38 XML Problem
Description Resource Path Location Type
cvc-pattern-valid: Value '../spreadsheet/index.jsp' is not facet-valid with respect to pattern '/.*' for type 'null'. web.xml /spreadsheet/src/main/webapp/WEB-INF line 37 XML Problem


I'm using the following schema location:

xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">


The question is? How can I to specify a relative path following rules about web-app_2_4.xsd?


Thanks





 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!