• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Pay attention! Tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic