• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

LogonView.jsp Displays A Blank Page

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.)
Here is my web.xml file:

Here is my MessageResources.properties file:

Here is my LogonView.jsp:

[ July 04, 2003: Message edited by: JiaPei Jen ]
[ July 05, 2003: Message edited by: JiaPei Jen ]
[ July 05, 2003: Message edited by: JiaPei Jen ]
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey JiaPei,
I think your code is right. Well, in my struts based applications, the *.properties files are located in the \WEB-INF\classes\resources directory.
Example of configuring the file \WEB-INF\classes\resources\application.properties in struts-config.xml:
...
<message-resources parameter="resources.application"/>
...
I hope it helps!
Best regards,
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would have gotton HTTP Status 500 error if the MessageResources.properties file is not found or the value of the corresponding key in the bean:message tag cannot be picked up.
I do not get any error message. It is simply a blank page I got. Just cannot figure out the reason. Please help.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never mind. Problem solved.
 
Trust God, but always tether your camel... to this tiny ad.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic