aspose file tools*
The moose likes Struts and the fly likes LogonView.jsp Displays A Blank Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "LogonView.jsp Displays A Blank Page " Watch "LogonView.jsp Displays A Blank Page " New topic
Author

LogonView.jsp Displays A Blank Page

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
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 ]
Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
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,


Tiago Fernandez
http://www.tiago182.spyw.com/
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
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

Joined: Nov 19, 2000
Posts: 1309
Never mind. Problem solved.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LogonView.jsp Displays A Blank Page
 
Similar Threads
Need Java and Struts Help
Problem with JSP form
struts-html.tld not found help me please
Trying to Learn Struts: Errors
please help in struts -web-inf/web.xml not found