My LogonView.jsp displays a blank page. I have no idea why nothing is written while the MessageResources.properties file is found.
I would have gotton HTTP Status 500 if the MessageResources.properties is not found or the value of the corresponding key in the bean:message tag cannot be picked up. I did not get any error message. I cannot figure out the reason. Please help. Here is my web.xml file: code: ------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <display-name>Struts Application</display-name> <!-- Standard Action Servlet Configuration (with debugging) --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>resources.version1.MessageResources</param-value> </init-param> <init-param> <param-name>mapping</param-name> <param-value>org.apache.struts.action.RequestActionMapping</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <!-- Standard Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <!-- The Usual Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <!-- Struts Tag Library Descriptors --> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri> <taglib-location>/WEB-INF/struts-nested.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri> <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri> <taglib-location>/WEB-INF/struts-template.tld</taglib-location> </taglib> </web-app> ------------------------------------------------------- Here is my MessageResources.properties file: code: ------------------------------------------------------ button.submit=Send for Verification button.reset=Clear the Form logonForm.userId=User Name logonForm.password=Password logonForm.confirm_password=Confirm Password logonForm.emailAddress=E-mail Address logonForm.hear_from_us=How did you hear about the StudentScholar.org? logonForm.subscriber=Subscribe to the StudentScholar.org newsletter logonForm.send_updates=Occassionally send me updates logonForm.fname=First Name logonForm.lname=Last name logonForm.streetAddress=Street Address logonForm.city=City logonForm.state=State logonForm.zip=Zip Code logonForm.country=Country logonForm.phone=Telephone logonForm.degree_type=Degree Type(s) logonForm.major=Majoring Field(s) logonForm.cumulativeGPA=Cumulative GPA logonForm.collegeID=College ID logonForm.permissionID=Permission ID logonForm.last_logon_date=Last Logon Date heading.logon=<H2>Enter your user information</H2> title.logon=Logon Screen error.invalid.logon=<li>The User ID and/or Password are invalid. Please try again.</li> errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul> title.mainmenu=Welcome heading.mainmenu=<H1>Welcome!</H1> label.userType=<H2>You are authorized to use this system as a</H2> errors.prefix=<LI> errors.suffix=</LI> errors.footer=</UL><hr> errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. errors.byte={0} must be an byte. errors.date={0} is not a date. errors.double={0} must be an double. errors.float={0} must be an float. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.short={0} must be an short. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. errors.cancel=Operation cancelled. errors.detail={0} errors.general=The process did not complete. Details should follow. errors.token=Request could not be completed. Operation is not in sequence. welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's "webapp" folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.) ------------------------------------------------------- Here is my LogonView.jsp: code: ------------------------------------------------------- <!-- LogonView.jsp --> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <html> <head><title><bean:message key="title.logon" /></title> <html:javascript formName="logon" /> </head> <body bgcolor="white"> <bean:message key="heading.logon" /> <html:errors /> <html:form action="/logon" onsubmit="return validateLogon(this)" > <bean:message key="logonForm.userId" />: <html:text property="userId" size="10" /> <bean:message key="logonForm.password" />: <html:password property="password" size="10" /> <html:submit> <bean:message key="button.submit" /> </html:submit> <html:reset> <bean:message key="button.reset" /> </html:reset> </html:form> </body> </html> ------------------------------------------------------- __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]