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 Blank
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>
[/CODE]

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.minlength={0} can not be less than {1}
characters.
errors.required={0} is required.
errors.date={0} is not a date.
errors.double={0} must be an double.
errors.email={0} is an invalid e-mail address.

[/CODE]

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)" >
<table border="0" width="100%">
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.userId"
/>:
        </th>
        <td align="left">
           <html:text property="userId" size="10" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.password"
/>:
        </th>
        <td align="left">
           <html   :p   assword property="password"
size="10" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message
key="logonForm.confirm_password" />:
        </th>
        <td align="left">
           <html   :p   assword
property="confirm_password" size="10" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.emailAddress"
/>:
        </th>
        <td align="left">
           <html:text property="emailAddress" size="25"
/>
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.hear_about_us"
/>:
        </th>
        <td align="left">
           <html:text property="hear_about_us"
size="25" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.subscriber"
/>:
        </th>
        <td align="left">
           <html:checkbox property="subscriber"
/>
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.send_updates"
/>:
        </th>
        <td align="left">
           <html:checkbox property="send_updates"
/>
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.fname"
/>:
        </th>
        <td align="left">
           <html:text property="fname" size="15" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.lname" />:
        </th>
        <td align="left">
           <html:text property="lname" size="15" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.streetAddress"
/>:
        </th>
        <td align="left">
           <html:text property="streetAddress" size="50"
/>
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.city" />:
        </th>
        <td align="left">
           <html:text property="city" size="15" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.state" />:
        </th>
        <td align="left">
           <html:text property="state" size="25"
/>
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.zip" />:
        </th>
        <td align="left">
           <html:text property="zip" size="10" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.country" />:
        </th>
        <td align="left">
           <html:text property="country" size="25" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.phone" />:
        </th>
        <td align="left">
           <html:text property="phone" size="15" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.degree_type"
/>:
        </th>
        <td align="left">
           <html:textarea property="degree_type" rows="9"
cols="90" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.major" />:
        </th>
        <td align="left">
           <html:text property="major" size="15" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.cumulativeGPA"
/>:
        </th>
        <td align="left">
           <html:text property="cumulativeGPA" size="4"
/>
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.collegeID" />:
        </th>
        <td align="left">
           <html:text property="collegeID" size="5" />
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.permissionID"
/>:
        </th>
        <td align="left">
           <html:text property="permissionID" size="5"
/>
        </td>
    </tr>
    <tr>
        <th aligh="right">
           <bean:message key="logonForm.last_logon_date"
/>:
        </th>
        <td align="left">
           <html:text property="last_logon_date" size="15"
/>
        </td>
    </tr>
    <tr>
        <td align="right">
            <html:submit>
                <bean:message key="button.submit"
/>
            </html:submit>
        </td>
        <td align="right">
            <html:reset>
                <bean:message key="button.reset"
/>
            </html:reset>
        </td>
    </tr>
</table>
</html:form>
</body>
</html>
[/CODE]



__________________________________
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]

Reply via email to