Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

No Error Message But A Blank Page Is Displayed!!!

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am experimenting a basic application - logon. I got the first two screens working without problem. However, the third screen displays a blank page (no error message). I am having a very difficult time to figure out the problem; henceforth, seeking help. Here is the history of my application:
1. http://localhost:8080/LogonPractice/index.jsp (no problem and I clicked on "Sign in")
2. http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C (no problem and the screen asked for username and password. I filled out the information and clicked on "Submit")
3. http://localhost:8080/LogonPractice/LogonSubmit.do (displayed a blank page)
The Tomcat log file shows the following (no error message at all):


2003-09-29 23:29:26 action: Processing a GET for /Logon
2003-09-29 23:29:26 action: Looking for Action instance for class org.apache.struts.actions.ForwardAction
2003-09-29 23:29:26 action: Double checking for Action instance already there
2003-09-29 23:29:26 action: Creating new Action instance
2003-09-29 23:29:35 action: Processing a POST for /LogonSubmit
2003-09-29 23:29:35 action: Looking for ActionForm bean under attribute 'logonForm'
2003-09-29 23:29:35 action: Creating new ActionForm instance of class 'org.apache.artimus.logon.LogonForm'
2003-09-29 23:29:35 action: Storing instance under attribute 'logonForm' in scope 'request'
2003-09-29 23:29:35 action: Populating bean properties from this request
2003-09-29 23:29:35 action: Validating input form properties
2003-09-29 23:29:35 action: No errors detected, accepting input
2003-09-29 23:29:35 action: Looking for Action instance for class org.apache.artimus.logon.LogonAction
2003-09-29 23:29:35 action: Double checking for Action instance already there
2003-09-29 23:29:35 action: Creating new Action instance


in my struts-config.xml, I have:

and my LogonAction.java is:

The Constants.class is in the ApplicationRoot/WEB-INF/classes/org/apache/artimus/lang directory. And I have

My Welcome.jsp in the ApplicationRoot/signin folder looks like:

[ September 29, 2003: Message edited by: JiaPei Jen ]
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you specified ApplicationResources.properties file in web.xml ?
Is there an entry for : "error.logon.invalid" in this file ?
-satish
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I have the code shown below in my web.xml file:

and the application.properties is in the resources folder. And I have

in the application.properties file.
 
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic