Re: Blank page after form validation
Most likely your "input" attribute is invalid - this usually results in a blank page in my experience. HTH, Matt On Jan 13, 2004, at 10:56 PM, VENKATESH GANGAL wrote: Hi All, We have been facing a very strange problem with form validation We have a JSP which is an input to an action and there is an associated form bean to validate the form. Here is the configuaration file struts-config.xml: validation.xml : MessageResources.properties form.error.productRef = Please enter Product Reference FormBean Validation method : public ActionErrors validate(ActionMapping mapping,HttpServletRequest request) { //ActionErrors errors = super.validate(mapping, request); ActionErrors errors = new ActionErrors(); if ((productRef == null) || (productRef.trim().length()< 1)){ errors.add ("productRef",new ActionError("form.error.productRef")); } return errors ; } Here is the JSP When I submit this form without entering anything in the textfield, it is taking me to a blank page. Can anyone let me know why this is happening? It is not going to the action at all and is returning with errors to the JSP.I am not able to reach the page from where I submitted the data along with errors.The error was added to ActionErrors object. We are using oc4j(Oracle Apps) standalone application.We are using struts 1.1 Thanks in advance for your help. Cheers... Venkatesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Blank page after form validation
Hi All, We have been facing a very strange problem with form validation We have a JSP which is an input to an action and there is an associated form bean to validate the form. Here is the configuaration file struts-config.xml: validation.xml : MessageResources.properties form.error.productRef = Please enter Product Reference FormBean Validation method : public ActionErrors validate(ActionMapping mapping,HttpServletRequest request) { //ActionErrors errors = super.validate(mapping, request); ActionErrors errors = new ActionErrors(); if ((productRef == null) || (productRef.trim().length()< 1)){ errors.add ("productRef",new ActionError("form.error.productRef")); } return errors ; } Here is the JSP When I submit this form without entering anything in the textfield, it is taking me to a blank page. Can anyone let me know why this is happening? It is not going to the action at all and is returning with errors to the JSP.I am not able to reach the page from where I submitted the data along with errors.The error was added to ActionErrors object. We are using oc4j(Oracle Apps) standalone application.We are using struts 1.1 Thanks in advance for your help. Cheers... Venkatesh
RE: I get a blank page
shouldnt that be: http://localhost:8080/struts-parameters/submit.jsp ? -Original Message- From: sairam manda [mailto:[EMAIL PROTECTED] Sent: Tuesday, 4 November 2003 19:16 To: [EMAIL PROTECTED] Subject: Re: I get a blank page Hello Sir, I mean If I type http://localhost.8080/struts-parameters/submit.jsp this as url in my browser I just get a blank page. >From: Mark Lowe <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: Re: I get a blank page Date: Tue, 4 Nov 2003 11:09:22 + > >what do you mean by "execute my (your) submit.jsp" ? > >I could be wrong, but looks like you're trying to be a bit of a picasso >with your property names. > > > >On Tuesday, November 4, 2003, at 10:50 AM, sairam manda wrote: > >>Hello Sir, >>I get blank page when I execute my submit.jsp . I have a simple strut >>application with a DynaForm and actionclass and a submit.jsp . I do not >>understand the problem because I just get a blank page .Please somebody >>help me with this problem. >> >> >>I attached my submit.jsp struts.config.xml and my Action.java .Please >>somebody help me with this probllem. >>regards >>sairam >> >>_ >>Nutrition is in! Junk food is out! >>http://server1.msn.co.in/features/fabmall/ Be a part of the microwave >>revolution. >>- >> >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _ MSN Hotmail now on your Mobile phone. http://server1.msn.co.in/sp03/mobilesms/ Click here. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I get a blank page
Hello Sir, I mean If I type http://localhost.8080/struts-parameters/submit.jsp this as url in my browser I just get a blank page. From: Mark Lowe <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: I get a blank page Date: Tue, 4 Nov 2003 11:09:22 + what do you mean by "execute my (your) submit.jsp" ? I could be wrong, but looks like you're trying to be a bit of a picasso with your property names. On Tuesday, November 4, 2003, at 10:50 AM, sairam manda wrote: Hello Sir, I get blank page when I execute my submit.jsp . I have a simple strut application with a DynaForm and actionclass and a submit.jsp . I do not understand the problem because I just get a blank page .Please somebody help me with this problem. I attached my submit.jsp struts.config.xml and my Action.java .Please somebody help me with this probllem. regards sairam _ Nutrition is in! Junk food is out! http://server1.msn.co.in/features/fabmall/ Be a part of the microwave revolution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Hotmail now on your Mobile phone. http://server1.msn.co.in/sp03/mobilesms/ Click here. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I get a blank page
what do you mean by "execute my (your) submit.jsp" ? I could be wrong, but looks like you're trying to be a bit of a picasso with your property names. On Tuesday, November 4, 2003, at 10:50 AM, sairam manda wrote: Hello Sir, I get blank page when I execute my submit.jsp . I have a simple strut application with a DynaForm and actionclass and a submit.jsp . I do not understand the problem because I just get a blank page .Please somebody help me with this problem. I attached my submit.jsp struts.config.xml and my Action.java .Please somebody help me with this probllem. regards sairam _ Nutrition is in! Junk food is out! http://server1.msn.co.in/features/fabmall/ Be a part of the microwave revolution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I get a blank page
Hello Sir, I get blank page when I execute my submit.jsp . I have a simple strut application with a DynaForm and actionclass and a submit.jsp . I do not understand the problem because I just get a blank page .Please somebody help me with this problem. I attached my submit.jsp struts.config.xml and my Action.java .Please somebody help me with this probllem. regards sairam _ Nutrition is in! Junk food is out! http://server1.msn.co.in/features/fabmall/ Be a part of the microwave revolution. Send.zip Description: Zip archive - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please Help!!! A Validation Rule Fail On A Second-Page Causes A Blank Page To Show Up
Hi Ted, Thank you for your time in helping me out. After your email message I take a hard look at the jsp file and can not find what was wrong with it. The secondPage.jsp is almost the same as the firstPage.jsp. When I move all the code from the secondPage.jsp to the firstPage.jsp the validation process went fine. All fields are validated by the validator. I have given up the hope to create a multipage form for now. And by the way I have purchased the Struts In Actions book along with other three books on the same subject. But there was not must information on multipage form. Do you have any suggestion on book that I may find some complete example on multi page form. To answers your your question about why do I reset all input fields to its original state when the getPage() is equal to 2 is that I only have two pages,firstPage.jsp and secondPage.jsp, each page would set the page number to "0" and "1" correspondingly. I set the page to 2 in the action class when the secondPage.jsp was executed. Then I call the form's reset method to clear all the fields before the control goes back to the firstPage.jsp. I guest you are right about removing the form bean should be good enough to remove all attributes in form for both pages. Thank again. Kam Lung Leung On Fri, 24 Oct 2003 17:19:03 -0400, Ted Husted wrote: > > Kam Lung Leung wrote: > > Why don't I get a pop up dialog box with error messages? > > Why the secondPage.jsp did not get executed when a validation > > error occurred? > > Why do I get a blank screen? > > Are you sure that it's blank? Sometimes the page doesn't render because > of errors in the HTML, which might only be exposed when the page is > trying to display error messages. > > I'm not sure why you would reset everything if getPage() is equal to 2. > The usual approach is to allow the properties to accumulate, until the > end of the workflow, and then dispose of the (session-scoped ActionForm > altogether. Generally, the only thing you ever need to reset is a > checkbox to false on a session-scope ActionForm. > > -Ted. > > > > Hi, > > > > I have been looking at this problem for the last four days and can't figure > > out. I have an application that required workflow form. I created a > > CreateUserAccountAction class that extends the DispatchAction and a form > > MultiCreateUserAccountForm that extends the ValidatorForm. The reset method of > > the MultiCreateUserAccountForm clears all attributes under the current session > > when the getPage() is equal to 2. The CreateUserAccountAction has two methods > > that are similar to the execute method that are named createUserAccountActionOne > > and createUserAccountActionTwo. I got this concept out of chapter 12 of the book > > Profession Jakarta Struts by James Goodwill and Richard Hightower. > > > > *** Here are the symptoms ** > > If there is a required field that is missing (leaved out) or does not > fulfill > > the validation rule on the firstPage.jsp when the submit button is pressed. A > new > > dialog box popped up on the screen with the validation message(s) from the > > resource property file. When all fields are validated the control is forwarded > to > > the secondPage.jsp. > > > > If there is a required field that is missing (leaved out) or does not > fulfill > > the validation rule on the secondPage.jsp when the submit button is pressed. A > > blank page is showed up on the window without a new dialog box shows up on the > > screen. The server.log indicates an error occurred and the control returns to > the > > same page (secondPage.jsp). To fixing this problem, I pressed the back page > > button of the browser and correctly filled in all missing fields or making sure > > the input is conforming to the validation rule. When all fields on the second > > page are filled in correctly according to the validation rules then the control > > is correctly forwarded back to the firstPage.jsp. > > > > ** My questions > > > > > > Any suggestion and how to fix this problem is deeply appriciated. > > > > > > Kam Lung Leung > > > > > > > > > > *** ***More detail on how the jsp was set up ** > > The createUserAccountActionOne method calls the > > MultiCreateUserAccountForm.validate() method to validate the user input fields > of > > the firstPage.jsp. Second, it calls the setPage() method with "1" as its input > > parameter. Finally, it calls the > MultiCreateUserAcc
Re: Please Help!!! A Validation Rule Fail On A Second-Page Causes A Blank Page To Show Up
Kam Lung Leung wrote: > Why don't I get a pop up dialog box with error messages? > Why the secondPage.jsp did not get executed when a validation > error occurred? > Why do I get a blank screen? Are you sure that it's blank? Sometimes the page doesn't render because of errors in the HTML, which might only be exposed when the page is trying to display error messages. I'm not sure why you would reset everything if getPage() is equal to 2. The usual approach is to allow the properties to accumulate, until the end of the workflow, and then dispose of the (session-scoped ActionForm altogether. Generally, the only thing you ever need to reset is a checkbox to false on a session-scope ActionForm. -Ted. Hi, I have been looking at this problem for the last four days and can't figure out. I have an application that required workflow form. I created a CreateUserAccountAction class that extends the DispatchAction and a form MultiCreateUserAccountForm that extends the ValidatorForm. The reset method of the MultiCreateUserAccountForm clears all attributes under the current session when the getPage() is equal to 2. The CreateUserAccountAction has two methods that are similar to the execute method that are named createUserAccountActionOne and createUserAccountActionTwo. I got this concept out of chapter 12 of the book Profession Jakarta Struts by James Goodwill and Richard Hightower. *** Here are the symptoms ** If there is a required field that is missing (leaved out) or does not fulfill the validation rule on the firstPage.jsp when the submit button is pressed. A new dialog box popped up on the screen with the validation message(s) from the resource property file. When all fields are validated the control is forwarded to the secondPage.jsp. If there is a required field that is missing (leaved out) or does not fulfill the validation rule on the secondPage.jsp when the submit button is pressed. A blank page is showed up on the window without a new dialog box shows up on the screen. The server.log indicates an error occurred and the control returns to the same page (secondPage.jsp). To fixing this problem, I pressed the back page button of the browser and correctly filled in all missing fields or making sure the input is conforming to the validation rule. When all fields on the second page are filled in correctly according to the validation rules then the control is correctly forwarded back to the firstPage.jsp. ** My questions Any suggestion and how to fix this problem is deeply appriciated. Kam Lung Leung *** ***More detail on how the jsp was set up ** The createUserAccountActionOne method calls the MultiCreateUserAccountForm.validate() method to validate the user input fields of the firstPage.jsp. Second, it calls the setPage() method with "1" as its input parameter. Finally, it calls the MultiCreateUserAccountForm.setMethodToDispatch() with "createUserAccountActionTwo" as the input parameter. The createUserAccountActionTwo method calls the MultiCreateUserAccountForm.validate() method to validate the user input fields of the secondPage.jsp. Secondly, it remove the obsolete form bean with session.removeAttribute(mapping.getAttribute()). Thirdly, it calls the setPage() method with "2" as its input parameter. Finally, it calls the reset() method to clear all attributes under the current session. ** This are action mapping *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - <http://www.manning.com/massol/>, Struts in Action - <http://husted.com/struts/book.html>, JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please Help!!! A Validation Rule Fail On A Second-Page Causes A Blank Page To Show Up
Hi, I have been looking at this problem for the last four days and can't figure out. I have an application that required workflow form. I created a CreateUserAccountAction class that extends the DispatchAction and a form MultiCreateUserAccountForm that extends the ValidatorForm. The reset method of the MultiCreateUserAccountForm clears all attributes under the current session when the getPage() is equal to 2. The CreateUserAccountAction has two methods that are similar to the execute method that are named createUserAccountActionOne and createUserAccountActionTwo. I got this concept out of chapter 12 of the book Profession Jakarta Struts by James Goodwill and Richard Hightower. *** Here are the symptoms ** If there is a required field that is missing (leaved out) or does not fulfill the validation rule on the firstPage.jsp when the submit button is pressed. A new dialog box popped up on the screen with the validation message(s) from the resource property file. When all fields are validated the control is forwarded to the secondPage.jsp. If there is a required field that is missing (leaved out) or does not fulfill the validation rule on the secondPage.jsp when the submit button is pressed. A blank page is showed up on the window without a new dialog box shows up on the screen. The server.log indicates an error occurred and the control returns to the same page (secondPage.jsp). To fixing this problem, I pressed the back page button of the browser and correctly filled in all missing fields or making sure the input is conforming to the validation rule. When all fields on the second page are filled in correctly according to the validation rules then the control is correctly forwarded back to the firstPage.jsp. ** My questions Why don't I get a pop up dialog box with error messages? Why the secondPage.jsp did not get executed when a validation error occurred? Why do I get a blank screen? Any suggestion and how to fix this problem is deeply appriciated. Kam Lung Leung *** ***More detail on how the jsp was set up ** The createUserAccountActionOne method calls the MultiCreateUserAccountForm.validate() method to validate the user input fields of the firstPage.jsp. Second, it calls the setPage() method with "1" as its input parameter. Finally, it calls the MultiCreateUserAccountForm.setMethodToDispatch() with "createUserAccountActionTwo" as the input parameter. The createUserAccountActionTwo method calls the MultiCreateUserAccountForm.validate() method to validate the user input fields of the secondPage.jsp. Secondly, it remove the obsolete form bean with session.removeAttribute(mapping.getAttribute()). Thirdly, it calls the setPage() method with "2" as its input parameter. Finally, it calls the reset() method to clear all attributes under the current session. ** This are action mapping *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No Error Message But A Blank Page Is Displayed.
I am very grateful for the overwhelming help that I have received. I followed the advices given by all of you and paid special attention to possible mis-spelling in forward mapping. I did not find any mis-spelling or mixing up of lower case/upper case. Finally, I re-typed all the key words in the forward mapping parts of the program. Everything worked - I got the expected page displayed in the browser. I still do not have any idea why I got a blank page last night. I would be more than happy to share my experience with all of you if I knew the root cause of the problem. But, I do not know. -Caroline --- "Richard J. Duncan" <[EMAIL PROTECTED]> wrote: > In my experience, this is because your > execute/perform is returning null as the result of > findForward("forwardname") not finding anything. > Usually, this is because I misspelled the forward > name. > > Returning null from execute/perform tells struts > that your method wrote the response itself. > > Regards, > > Rich > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 30, 2003 3:05 AM > To: Struts Users Mailing List > Subject: Re: No Error Message But A Blank Page Is > Displayed. > > Your missing html:form > > My welcome page "is displayed" as the very first > > screen without any problem. The page has > > and tags, which > > test if any registered user has logged on. > > > > The problem occurred after I filled out username, > and > > clicked the "Submit" button. Thereafter, the > welcome > > page was not shown. My welcome page looks like > the > > following: > > > > Welcome.jsp > > > > <%@ taglib uri="/tags/struts-bean" prefix="bean" > %> > > <%@ taglib uri="/tags/struts-html" prefix="html" > %> > > <%@ taglib uri="/tags/struts-logic" prefix="logic" > %> > > > > > > Welcome! > > > > > > > > > > Welcome > property="username"/>! > > > > > > Welcome World! > > > > > > > > Sign > > in > > > > Sign > > out > > > > > > > > > > > > --- Kwok Peng Tuck <[EMAIL PROTECTED]> wrote: > >> You might want to put System.out.println("Line > >> [number]") ; to see > >> the flow in your action. BTW did you actually put > >> anything(like hello > >> world) in Welcome.jsp ? > >> > >> > >> Caroline Jen wrote: > >> > >> >Which resource file needs to be updated? I have > >> >checked the application.properties. Nothing in > >> that > >> >file is relevant to my problem. > >> >--- Abhijeet Mahalkar > >> ><[EMAIL PROTECTED]> wrote: > >> > > >> > > >> >>have u updated the Resource files... ? > >> >>abhijeet > >> >> > >> >>- Original Message - > >> >>From: "Caroline Jen" <[EMAIL PROTECTED]> > >> >>To: <[EMAIL PROTECTED]> > >> >>Sent: Tuesday, September 30, 2003 9:45 AM > >> >>Subject: No Error Message But A Blank Page Is > >> >>Displayed. > >> >> > >> >> > >> >>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) &g
RE: No Error Message But A Blank Page Is Displayed.
In my experience, this is because your execute/perform is returning null as the result of findForward("forwardname") not finding anything. Usually, this is because I misspelled the forward name. Returning null from execute/perform tells struts that your method wrote the response itself. Regards, Rich -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 3:05 AM To: Struts Users Mailing List Subject: Re: No Error Message But A Blank Page Is Displayed. Your missing html:form > My welcome page "is displayed" as the very first > screen without any problem. The page has > and tags, which > test if any registered user has logged on. > > The problem occurred after I filled out username, and > clicked the "Submit" button. Thereafter, the welcome > page was not shown. My welcome page looks like the > following: > > Welcome.jsp > > <%@ taglib uri="/tags/struts-bean" prefix="bean" %> > <%@ taglib uri="/tags/struts-html" prefix="html" %> > <%@ taglib uri="/tags/struts-logic" prefix="logic" %> > > > Welcome! > > > > > Welcome property="username"/>! > > > Welcome World! > > > > Sign > in > > Sign > out > > > > > > --- Kwok Peng Tuck <[EMAIL PROTECTED]> wrote: >> You might want to put System.out.println("Line >> [number]") ; to see >> the flow in your action. BTW did you actually put >> anything(like hello >> world) in Welcome.jsp ? >> >> >> Caroline Jen wrote: >> >> >Which resource file needs to be updated? I have >> >checked the application.properties. Nothing in >> that >> >file is relevant to my problem. >> >--- Abhijeet Mahalkar >> ><[EMAIL PROTECTED]> wrote: >> > >> > >> >>have u updated the Resource files... ? >> >>abhijeet >> >> >> >>- Original Message - >> >>From: "Caroline Jen" <[EMAIL PROTECTED]> >> >>To: <[EMAIL PROTECTED]> >> >>Sent: Tuesday, September 30, 2003 9:45 AM >> >>Subject: No Error Message But A Blank Page Is >> >>Displayed. >> >> >> >> >> >>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 act
RE: No Error Message But A Blank Page Is Displayed.
I have seen this behavior when the jsp page I am forwarding to is not found such as in wrong location, wrong case (Welcome.jsp vs welcome.jsp). But we are using tiles so not sure if it is tiles specific or not. Hope this helps. >>> [EMAIL PROTECTED] 09/30/03 10:28AM >>> I would want to see your "web.xml", and any information that shows up in the Tomcat console (not log file). > -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > 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=170B50 > E4D8E07EE36290E98342E8BF9C > (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: > > path="/LogonSubmit" > > type="org.apache.artimus.logon.LogonAction" > name="logonForm" > scope="request" > validate="true" > input="/signin/Logon.jsp"> > name="valid" > path="/signin/Welcome.jsp"/> > > > and my LogonAction.java is: > > package org.apache.artimus.logon; > > import java.io.IOException; > import javax.servlet.ServletException; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpSession; > import javax.servlet.http.HttpServletResponse; > import org.apache.struts.action.Action; > import org.apache.struts.action.ActionError; > import org.apache.struts.action.ActionErrors; > import org.apache.struts.action.ActionForm; > import org.apache.struts.action.ActionForward; > import org.apache.struts.action.ActionMapping; > import org.apache.struts.action.ActionServlet; > > import org.apache.artimus.lang.Constants; > > public final class LogonAction extends Action { > > public boolean isUserLogon(String username, > String password) throws UserDirectoryException > { > > return > (UserDirectory.getInstance().isValidPassword(username,password)); > // return true; > > } > > > public ActionForward execute(ActionMapping > mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > throws IOException, ServletException { > > // Obtain username and password from web tier > String username = ((LogonForm) > form).getUsername(); > String password = ((LogonForm) > form).getPassword(); > > // Validate credentials with business tier > boolean validated = false; > try { > > validated = > isUserLogon(username,password); > } > > catch (UserDirectoryException ude) { > // couldn't connec
RE: No Error Message But A Blank Page Is Displayed.
I would want to see your "web.xml", and any information that shows up in the Tomcat console (not log file). > -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > 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=170B50 > E4D8E07EE36290E98342E8BF9C > (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: > > path="/LogonSubmit" > > type="org.apache.artimus.logon.LogonAction" > name="logonForm" > scope="request" > validate="true" > input="/signin/Logon.jsp"> > name="valid" > path="/signin/Welcome.jsp"/> > > > and my LogonAction.java is: > > package org.apache.artimus.logon; > > import java.io.IOException; > import javax.servlet.ServletException; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpSession; > import javax.servlet.http.HttpServletResponse; > import org.apache.struts.action.Action; > import org.apache.struts.action.ActionError; > import org.apache.struts.action.ActionErrors; > import org.apache.struts.action.ActionForm; > import org.apache.struts.action.ActionForward; > import org.apache.struts.action.ActionMapping; > import org.apache.struts.action.ActionServlet; > > import org.apache.artimus.lang.Constants; > > public final class LogonAction extends Action { > > public boolean isUserLogon(String username, > String password) throws UserDirectoryException > { > > return > (UserDirectory.getInstance().isValidPassword(username,password)); > // return true; > > } > > > public ActionForward execute(ActionMapping > mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > throws IOException, ServletException { > > // Obtain username and password from web tier > String username = ((LogonForm) > form).getUsername(); > String password = ((LogonForm) > form).getPassword(); > > // Validate credentials with business tier > boolean validated = false; > try { > > validated = > isUserLogon(username,password); > } > > catch (UserDirectoryException ude) { > // couldn't connect to user directory > ActionErrors errors = new ActionErrors(); > errors.add(ActionErrors.GLOBAL_ERROR, > new ActionError("error.logon.connect")); > saveErrors(request,errors); > // return to input page >
Re: No Error Message But A Blank Page Is Displayed.
You're missing html:form > My welcome page "is displayed" as the very first > screen without any problem. The page has > and tags, which > test if any registered user has logged on. > > The problem occurred after I filled out username, and > clicked the "Submit" button. Thereafter, the welcome > page was not shown. My welcome page looks like the > following: > > Welcome.jsp > > <%@ taglib uri="/tags/struts-bean" prefix="bean" %> > <%@ taglib uri="/tags/struts-html" prefix="html" %> > <%@ taglib uri="/tags/struts-logic" prefix="logic" %> > > > Welcome! > > > > > Welcome property="username"/>! > > > Welcome World! > > > > Sign > in > > Sign > out > > > > > > --- Kwok Peng Tuck <[EMAIL PROTECTED]> wrote: >> You might want to put System.out.println("Line >> [number]") ; to see >> the flow in your action. BTW did you actually put >> anything(like hello >> world) in Welcome.jsp ? >> >> >> Caroline Jen wrote: >> >> >Which resource file needs to be updated? I have >> >checked the application.properties. Nothing in >> that >> >file is relevant to my problem. >> >--- Abhijeet Mahalkar >> ><[EMAIL PROTECTED]> wrote: >> > >> > >> >>have u updated the Resource files... ? >> >>abhijeet >> >> >> >>- Original Message - >> >>From: "Caroline Jen" <[EMAIL PROTECTED]> >> >>To: <[EMAIL PROTECTED]> >> >>Sent: Tuesday, September 30, 2003 9:45 AM >> >>Subject: No Error Message But A Blank Page Is >> >>Displayed. >> >> >> >> >> >>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
Re: No Error Message But A Blank Page Is Displayed.
Your missing html:form > My welcome page "is displayed" as the very first > screen without any problem. The page has > and tags, which > test if any registered user has logged on. > > The problem occurred after I filled out username, and > clicked the "Submit" button. Thereafter, the welcome > page was not shown. My welcome page looks like the > following: > > Welcome.jsp > > <%@ taglib uri="/tags/struts-bean" prefix="bean" %> > <%@ taglib uri="/tags/struts-html" prefix="html" %> > <%@ taglib uri="/tags/struts-logic" prefix="logic" %> > > > Welcome! > > > > > Welcome property="username"/>! > > > Welcome World! > > > > Sign > in > > Sign > out > > > > > > --- Kwok Peng Tuck <[EMAIL PROTECTED]> wrote: >> You might want to put System.out.println("Line >> [number]") ; to see >> the flow in your action. BTW did you actually put >> anything(like hello >> world) in Welcome.jsp ? >> >> >> Caroline Jen wrote: >> >> >Which resource file needs to be updated? I have >> >checked the application.properties. Nothing in >> that >> >file is relevant to my problem. >> >--- Abhijeet Mahalkar >> ><[EMAIL PROTECTED]> wrote: >> > >> > >> >>have u updated the Resource files... ? >> >>abhijeet >> >> >> >>- Original Message - >> >>From: "Caroline Jen" <[EMAIL PROTECTED]> >> >>To: <[EMAIL PROTECTED]> >> >>Sent: Tuesday, September 30, 2003 9:45 AM >> >>Subject: No Error Message But A Blank Page Is >> >>Displayed. >> >> >> >> >> >>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 >&
Re: No Error Message But A Blank Page Is Displayed.
My welcome page "is displayed" as the very first screen without any problem. The page has and tags, which test if any registered user has logged on. The problem occurred after I filled out username, and clicked the "Submit" button. Thereafter, the welcome page was not shown. My welcome page looks like the following: Welcome.jsp <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> Welcome! Welcome ! Welcome World! Sign in Sign out --- Kwok Peng Tuck <[EMAIL PROTECTED]> wrote: > You might want to put System.out.println("Line > [number]") ; to see > the flow in your action. BTW did you actually put > anything(like hello > world) in Welcome.jsp ? > > > Caroline Jen wrote: > > >Which resource file needs to be updated? I have > >checked the application.properties. Nothing in > that > >file is relevant to my problem. > >--- Abhijeet Mahalkar > ><[EMAIL PROTECTED]> wrote: > > > > > >>have u updated the Resource files... ? > >>abhijeet > >> > >>- Original Message - > >>From: "Caroline Jen" <[EMAIL PROTECTED]> > >>To: <[EMAIL PROTECTED]> > >>Sent: Tuesday, September 30, 2003 9:45 AM > >>Subject: No Error Message But A Blank Page Is > >>Displayed. > >> > >> > >>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: > >> > >> >>path="/LogonSubmit" > >> > >>type="org.apache.artimus.logon.LogonAction" > >>name="logonForm" > >>scope="request" > >>validate="true" > >>input="/signin/Logon.jsp"> > >> >>name="valid" > >>path="/signin/Welcome.jsp"/> > >> > >> &
RE: No Error Message But A Blank Page Is Displayed.
I'm not sure where in your scenario the error was supposed to occur. I would suggest just right clicking on the blank page and see what the src holds. If you change the last line to: ActionForward valForward = mapping.findForward(Constants.VALID); servlet.log("Forwarding to: " + valForward ); return valForward; That might help too. -Tim -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 12:15 AM To: [EMAIL PROTECTED] Subject: No Error Message But A Blank Page Is Displayed. 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=170B50E4D8E07EE36290 E98342E8BF9C (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: package org.apache.artimus.logon; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionServlet; import org.apache.artimus.lang.Constants; public final class LogonAction extends Action { public boolean isUserLogon(String username, String password) throws UserDirectoryException { return (UserDirectory.getInstance().isValidPassword(username,password)); // return true; } public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Obtain username and password from web tier String username = ((LogonForm) form).getUsername(); String password = ((LogonForm) form).getPassword(); // Validate credentials with business tier boolean validated = false; try { validated = isUserLogon(username,password); } catch (UserDirectoryException ude) { // couldn't connect to user directory ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.logon.connect")); saveErrors(request,errors); // return to input page return (new ActionForward(mapping.getInput())); } if (!validated) { // credentials don't match ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.logon.invalid")); saveErrors(request,errors); // return to input page return (new ActionForward(mapping.getInput())); } // Save our logged-in user in the session, // because we use it again later. HttpSession session = request.getSession(); session.setAttribute(Constants.USER
Re: No Error Message But A Blank Page Is Displayed.
You might want to put System.out.println("Line [number]") ; to see the flow in your action. BTW did you actually put anything(like hello world) in Welcome.jsp ? Caroline Jen wrote: Which resource file needs to be updated? I have checked the application.properties. Nothing in that file is relevant to my problem. --- Abhijeet Mahalkar <[EMAIL PROTECTED]> wrote: have u updated the Resource files... ? abhijeet - Original Message - From: "Caroline Jen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 30, 2003 9:45 AM Subject: No Error Message But A Blank Page Is Displayed. 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: type="org.apache.artimus.logon.LogonAction" name="logonForm" scope="request" validate="true" input="/signin/Logon.jsp"> name="valid" path="/signin/Welcome.jsp"/> and my LogonAction.java is: package org.apache.artimus.logon; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionServlet; import org.apache.artimus.lang.Constants; public final class LogonAction extends Action { public boolean isUserLogon(String username, String password) throws UserDirectoryException { return (UserDirectory.getInstance().isValidPassword(username,password)); // return true; } public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Obtain username and password from web tier String username = ((LogonForm) form).getUsername(); String password = ((LogonForm) form).getPassword(); // Validate credentials with business tier boolean validated = false; try { validated = isUserLogon(username,password); } catch (UserDirectoryException ude) { // couldn't connect to user directory ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.logon.connect")); saveErrors(request,errors); // return to input page return (new ActionForward(mapping.getInput())); } if (!validated) { // credentials don't match ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.l
Re: No Error Message But A Blank Page Is Displayed.
Which resource file needs to be updated? I have checked the application.properties. Nothing in that file is relevant to my problem. --- Abhijeet Mahalkar <[EMAIL PROTECTED]> wrote: > have u updated the Resource files... ? > abhijeet > > - Original Message - > From: "Caroline Jen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 30, 2003 9:45 AM > Subject: No Error Message But A Blank Page Is > Displayed. > > > 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: > > path="/LogonSubmit" > > type="org.apache.artimus.logon.LogonAction" > name="logonForm" > scope="request" > validate="true" > input="/signin/Logon.jsp"> > name="valid" > path="/signin/Welcome.jsp"/> > > > and my LogonAction.java is: > > package org.apache.artimus.logon; > > import java.io.IOException; > import javax.servlet.ServletException; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpSession; > import javax.servlet.http.HttpServletResponse; > import org.apache.struts.action.Action; > import org.apache.struts.action.ActionError; > import org.apache.struts.action.ActionErrors; > import org.apache.struts.action.ActionForm; > import org.apache.struts.action.ActionForward; > import org.apache.struts.action.ActionMapping; > import org.apache.struts.action.ActionServlet; > > import org.apache.artimus.lang.Constants; > > public final class LogonAction extends Action { > > public boolean isUserLogon(String username, > String password) throws > UserDirectoryException > { > > return > (UserDirectory.getInstance().isValidPassword(username,password)); > // return true; > > } > > > public ActionForward execute(ActionMapping > mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > throws IOException, ServletException { > > // Obtain username and password from web > tier > String username = ((LogonForm) > form).getUsername(); > String password = ((LogonForm) > form).getPassword(); > > // Validate credentials with business tier > boolean validated = false; > try { > > validated = > isUserLogon(username,password); > } > > catch (UserDirectoryException ude) { &g
Re: No Error Message But A Blank Page Is Displayed.
have u updated the Resource files... ? abhijeet - Original Message - From: "Caroline Jen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 30, 2003 9:45 AM Subject: No Error Message But A Blank Page Is Displayed. 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: package org.apache.artimus.logon; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionServlet; import org.apache.artimus.lang.Constants; public final class LogonAction extends Action { public boolean isUserLogon(String username, String password) throws UserDirectoryException { return (UserDirectory.getInstance().isValidPassword(username,password)); // return true; } public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Obtain username and password from web tier String username = ((LogonForm) form).getUsername(); String password = ((LogonForm) form).getPassword(); // Validate credentials with business tier boolean validated = false; try { validated = isUserLogon(username,password); } catch (UserDirectoryException ude) { // couldn't connect to user directory ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.logon.connect")); saveErrors(request,errors); // return to input page return (new ActionForward(mapping.getInput())); } if (!validated) { // credentials don't match ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.logon.invalid")); saveErrors(request,errors); // return to input page return (new ActionForward(mapping.getInput())); } // Save our logged-in user in the session, // because we use it again later. HttpSession session = request.getSession(); session.setAttribute(Constants.USER_KEY, form); // Log this event, if appropriate if (servlet.getDebug() >= Constants.DEBUG) { StringBuffer message = new StringBuffer("LogonAction: User '"); message.append(username); message.append("' logged on in session "
No Error Message But A Blank Page Is Displayed.
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: package org.apache.artimus.logon; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionServlet; import org.apache.artimus.lang.Constants; public final class LogonAction extends Action { public boolean isUserLogon(String username, String password) throws UserDirectoryException { return (UserDirectory.getInstance().isValidPassword(username,password)); // return true; } public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Obtain username and password from web tier String username = ((LogonForm) form).getUsername(); String password = ((LogonForm) form).getPassword(); // Validate credentials with business tier boolean validated = false; try { validated = isUserLogon(username,password); } catch (UserDirectoryException ude) { // couldn't connect to user directory ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.logon.connect")); saveErrors(request,errors); // return to input page return (new ActionForward(mapping.getInput())); } if (!validated) { // credentials don't match ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.logon.invalid")); saveErrors(request,errors); // return to input page return (new ActionForward(mapping.getInput())); } // Save our logged-in user in the session, // because we use it again later. HttpSession session = request.getSession(); session.setAttribute(Constants.USER_KEY, form); // Log this event, if appropriate if (servlet.getDebug() >= Constants.DEBUG) { StringBuffer message = new StringBuffer("LogonAction: User '"); message.append(username); message.append("' logged on in session "); message.append(session.getId()); servlet.log(message.toString()); } // Return success return (mapping.findForward(Constants.VALID)); } } // End LogonAction The Constants.class is in the ApplicationRoot/WEB-INF
Re: validator returns blank page
Hi Thomas Here what I would do. struts-config.xml: LogonAction.java: ActionErrors errors = new ActionErrors(); errors = form.validate(mapping, request); // Report any errors we have discovered back to the original form if (!errors.isEmpty()) { saveErrors(request, errors); return new ActionForward(mapping.getInput()); } And be sure that your Class extends DynaValidatorForm. Hope this helps Koni thomas Sontheimer wrote: I'm attempting to use the validator with a DynaValidatorForm and it returns a blank page if I don't fill the field. And if I fill the username field I'm redirected to the good page (/index.jsp). any idea? thomas here are some parts from my code: struts-config.xml: validation.xml: logon.jsp: Username: Password: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validator returns blank page
I'm attempting to use the validator with a DynaValidatorForm and it returns a blank page if I don't fill the field. And if I fill the username field I'm redirected to the good page (/index.jsp). any idea? thomas here are some parts from my code: struts-config.xml: validation.xml: logon.jsp: Username: Password: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP ME: my index.jsp is a blank page
Hi, I m deploying "xpetstore" sourceforge project on bea weblogic 7.0 But in my client browser threre is a blank page. WHY? Help Me!!! The log: Starting WebLogic Server... <1 ao¹t 03 16:02:53 CEST> <140005> <1 ao¹t 03 16:02:58 CEST> <090082> <1 ao¹t 03 16:02:58 CEST> <000327> <1 ao¹t 03 16:03:28 CEST> <141052> 0 [Thread-11] INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 0 [Thread-11] INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', retur nNull=true 312 [Thread-11] INFO util.PropertyMessageResources - Initializing, config='Resources', returnNull=true 328 [Thread-11] INFO filter.SignOnFilter - init() 328 [Thread-11] INFO filter.SignOnFilter - ...signon.action=/signon.jspa 328 [Thread-11] INFO filter.SignOnFilter - ...Adding URI to protect: checkout.jspa 328 [Thread-11] INFO filter.SignOnFilter - ...Adding URI to protect: order.jspa <1 ao¹t 03 16:03:29 CEST> <090092> <1 ao¹t 03 16:03:30 CEST> <000355> <1 ao¹t 03 16:03:30 CEST> <000355> <1 ao¹t 03 16:03:30 CEST> <141030> <1 ao¹t 03 16:03:30 CEST> <000331> <1 ao¹t 03 16:03:30 CEST> <000365> <1 ao¹t 03 16:03:30 CEST> <000360> 13687 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.bean.LocalStrings',returnNull=true 13687 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 13687 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true 13687 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.st ruts.taglib.html.LocalStrings', returnNull=true 16359 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.st ruts.taglib.html.LocalStrings', returnNull=true 16359 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.st ruts.taglib.logic.LocalStrings', returnNull=true 16375 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.st ruts.taglib.html.LocalStrings', returnNull=true 16375 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.st ruts.taglib.html.LocalStrings', returnNull=true 16406 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.st ruts.taglib.html.LocalStrings', returnNull=true 16406 [ExecuteThread: '12' for queue: 'default'] INFO util.PropertyMessageResources - Initializing, config='org.apache.st ruts.taglib.html.LocalStrings', returnNull=true - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Repost: Clicking "Submit" returns a blank page
BTW, to debug have you tried to do mapping.findForward("success") and mapping.findForward("fail") to see what happends? -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 5:35 PM To: 'Struts Users Mailing List' Subject: RE: Repost: Clicking "Submit" returns a blank page A couple of observations: 1. Not that it is the solution but could you do ? Only because Logon.do is a forward (action anyway). 2. Again, probably not necessary but add method="post" to the form tag. 3. I doubt it is a problem but I am so used to seeing the action attributes on the same line you could move all the attributes like name="logonForm" onto their own line. You just never know when things should work and aren't. You already verified that LogonSuccess.jsp exists and isn't blank. I agree though with the post about verifying that the constant is the right value. I have seen the blank page problem when I changed the name of my forward in the struts config and didn't rename it in my action. There is no null pointer exceptions or other exceptions being thrown in your container output window? I have exhausted everything I could think of for now. -Original Message- From: todd thorner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:40 PM To: [EMAIL PROTECTED] Subject: Repost: Clicking "Submit" returns a blank page I have reached this far in my debut logon page development... The first JSP page comes up fine, showing me a form with a rendered tag for each required field (username and password), plus a "Reset" and a "Submit" button. Code sample below comes from my struts-config.xml file: ** struts-config.xml code above ** I can enter data into the fields and they will erase if I click "Reset" I can click "Submit" with nothing filled in (passing nulls with the request), and the proper are displayed. However... If I enter any values for the "username" and "password" fields, then click "Submit," a blank page is always returned (neither "LogonSuccess.jsp" nor "LogonFail.jsp" are blank). What's up with that? The browser says it's trying to display results from "LogonSubmit.do" (which is what I expect). I have a file called "users.properties" in the directory "WEB-INF/classes" and in my LogonAction.java code: public final class LogonAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { String username = ( ( LogonForm ) form ).getUsername(); String password = ( ( LogonForm ) form ).getPassword(); boolean validated = false; try { validated = isUserLoggedOn( username, password ); } catch ( SimpleUserDirectoryException sudexc ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( "error.logon.connect" ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } if ( !validated ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( "error.logon.invalid" ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } HttpSession session = request.getSession(); session.setAttribute( Constants.USER_KEY, form ); return ( mapping.findForward( Constants.SUCCESS ) ); } public boolean isUserLoggedOn( String username, String password ) throws SimpleUserDirectoryException { return ( SimpleUserDirectory.getInstance().passwordIsValid( username, password ) ); } } ** mystrutsactions.LogonAction.java code above ** Note: The LogonAction.java file above makes use of the following SimpleUserDirectory.java code: private static final String SimpleUserDirectoryFilepath = "users.properties"; InputStream ips = this.getClass().getClassLoader().getResourceAsStream( SimpleUserDirectoryFilepath ); ** mystrutsforms.LogonForm.java code above ** Also, my web.xml file has: application application ** web.xml code above ** Any suggestions or guesses are appreciated. Get advanced S
RE: Repost: Clicking "Submit" returns a blank page
A couple of observations: 1. Not that it is the solution but could you do ? Only because Logon.do is a forward (action anyway). 2. Again, probably not necessary but add method="post" to the form tag. 3. I doubt it is a problem but I am so used to seeing the action attributes on the same line you could move all the attributes like name="logonForm" onto their own line. You just never know when things should work and aren't. You already verified that LogonSuccess.jsp exists and isn't blank. I agree though with the post about verifying that the constant is the right value. I have seen the blank page problem when I changed the name of my forward in the struts config and didn't rename it in my action. There is no null pointer exceptions or other exceptions being thrown in your container output window? I have exhausted everything I could think of for now. -Original Message- From: todd thorner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:40 PM To: [EMAIL PROTECTED] Subject: Repost: Clicking "Submit" returns a blank page I have reached this far in my debut logon page development... The first JSP page comes up fine, showing me a form with a rendered tag for each required field (username and password), plus a "Reset" and a "Submit" button. Code sample below comes from my struts-config.xml file: ** struts-config.xml code above ** I can enter data into the fields and they will erase if I click "Reset" I can click "Submit" with nothing filled in (passing nulls with the request), and the proper are displayed. However... If I enter any values for the "username" and "password" fields, then click "Submit," a blank page is always returned (neither "LogonSuccess.jsp" nor "LogonFail.jsp" are blank). What's up with that? The browser says it's trying to display results from "LogonSubmit.do" (which is what I expect). I have a file called "users.properties" in the directory "WEB-INF/classes" and in my LogonAction.java code: public final class LogonAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { String username = ( ( LogonForm ) form ).getUsername(); String password = ( ( LogonForm ) form ).getPassword(); boolean validated = false; try { validated = isUserLoggedOn( username, password ); } catch ( SimpleUserDirectoryException sudexc ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( "error.logon.connect" ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } if ( !validated ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( "error.logon.invalid" ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } HttpSession session = request.getSession(); session.setAttribute( Constants.USER_KEY, form ); return ( mapping.findForward( Constants.SUCCESS ) ); } public boolean isUserLoggedOn( String username, String password ) throws SimpleUserDirectoryException { return ( SimpleUserDirectory.getInstance().passwordIsValid( username, password ) ); } } ** mystrutsactions.LogonAction.java code above ** Note: The LogonAction.java file above makes use of the following SimpleUserDirectory.java code: private static final String SimpleUserDirectoryFilepath = "users.properties"; InputStream ips = this.getClass().getClassLoader().getResourceAsStream( SimpleUserDirectoryFilepath ); ** mystrutsforms.LogonForm.java code above ** Also, my web.xml file has: application application ** web.xml code above ** Any suggestions or guesses are appreciated. Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repost: Clicking "Submit" returns a blank page
Thanks for the suggestion, I'll give it my newbie best. -- - Original Message - DATE: Thu, 31 Jul 2003 14:04:57 From: Michael Ruppin <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]>,[EMAIL PROTECTED] Cc: >Check that > >Constants.SUCCESS=success > >m > >--- todd thorner <[EMAIL PROTECTED]> wrote: >> I have reached this far in my debut logon page >> development... >> >> The first JSP page comes up fine, showing me a form >> with a rendered >> tag for each required field (username >> and password), plus a "Reset" and a "Submit" button. >> Code sample below comes from my struts-config.xml >> file: >> >> >> > type="mystrutsforms.LogonForm"/> >> >> >> >> >> >> >> >> > type="org.apache.struts.actions.ForwardAction" >> parameter="/pages/Logon.jsp"/> >> > type="mystrutsactions.LogonAction" >> name="logonForm" >> scope="request" validate="true" >> input="/pages/Logon.jsp"> >> > path="/pages/LogonSuccess.jsp"/> >> > path="/pages/LogonFail.jsp"/> >> >> >> >> ****** struts-config.xml code above >> ** >> >> I can enter data into the fields and >> they will erase if I click "Reset" >> I can click "Submit" with nothing filled in (passing >> nulls with the request), and the proper >> are displayed. >> >> However... >> >> If I enter any values for the "username" and >> "password" fields, then click "Submit," a blank page >> is always returned (neither "LogonSuccess.jsp" nor >> "LogonFail.jsp" are blank). >> >> What's up with that? The browser says it's trying >> to display results from "LogonSubmit.do" (which is >> what I expect). I have a file called >> "users.properties" in the directory >> "WEB-INF/classes" and in my LogonAction.java code: >> >> public final class LogonAction extends Action { >> >>public ActionForward execute( ActionMapping >> mapping, >> ActionForm form, >> HttpServletRequest request, >> HttpServletResponse response ) >> throws Exception { >> >> String username = ( ( LogonForm ) form >> ).getUsername(); >> String password = ( ( LogonForm ) form >> ).getPassword(); >> boolean validated = false; >> >> try { >> >> validated = isUserLoggedOn( username, >> password ); >> } >> catch ( SimpleUserDirectoryException >> sudexc ) { >> ActionErrors errors = new >> ActionErrors(); >> errors.add( ActionErrors.GLOBAL_ERROR, >> new ActionError( >> "error.logon.connect" ) ); >> saveErrors( request, errors ); >> return ( new ActionForward( >> mapping.getInput() ) ); >> } >> >> if ( !validated ) { >> >> ActionErrors errors = new >> ActionErrors(); >> errors.add( ActionErrors.GLOBAL_ERROR, >> new ActionError( >> "error.logon.invalid" ) ); >> saveErrors( request, errors ); >> return ( new ActionForward( >> mapping.getInput() ) ); >> } >> >> HttpSession session = >> request.getSession(); >> session.setAttribute( Constants.USER_KEY, >> form ); >> >> return ( mapping.findForward( >> Constants.SUCCESS ) ); >> } >> >> public boolean isUserLoggedOn( String >> username, >> String password ) throws >> SimpleUserDirectoryException { >> >> return ( >> SimpleUserDirectory.getInstance().passwordIsValid( >> username, password ) ); >> } >> } >> >> ** mystrutsactions.LogonAction.java >> code above ** >> >> Note: The LogonAction.java file above makes use of >> the following SimpleUserDirectory.java code: >> >> private static final String >> SimpleUserDirectoryFilepath = "users.properties&qu
Re: Repost: Clicking "Submit" returns a blank page
Check that Constants.SUCCESS=success m --- todd thorner <[EMAIL PROTECTED]> wrote: > I have reached this far in my debut logon page > development... > > The first JSP page comes up fine, showing me a form > with a rendered > tag for each required field (username > and password), plus a "Reset" and a "Submit" button. > Code sample below comes from my struts-config.xml > file: > > > type="mystrutsforms.LogonForm"/> > > > > > > > > type="org.apache.struts.actions.ForwardAction" > parameter="/pages/Logon.jsp"/> > type="mystrutsactions.LogonAction" > name="logonForm" > scope="request" validate="true" > input="/pages/Logon.jsp"> >path="/pages/LogonSuccess.jsp"/> >path="/pages/LogonFail.jsp"/> > > > > ** struts-config.xml code above > ** > > I can enter data into the fields and > they will erase if I click "Reset" > I can click "Submit" with nothing filled in (passing > nulls with the request), and the proper > are displayed. > > However... > > If I enter any values for the "username" and > "password" fields, then click "Submit," a blank page > is always returned (neither "LogonSuccess.jsp" nor > "LogonFail.jsp" are blank). > > What's up with that? The browser says it's trying > to display results from "LogonSubmit.do" (which is > what I expect). I have a file called > "users.properties" in the directory > "WEB-INF/classes" and in my LogonAction.java code: > > public final class LogonAction extends Action { > >public ActionForward execute( ActionMapping > mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response ) > throws Exception { > > String username = ( ( LogonForm ) form > ).getUsername(); > String password = ( ( LogonForm ) form > ).getPassword(); > boolean validated = false; > > try { > > validated = isUserLoggedOn( username, > password ); > } > catch ( SimpleUserDirectoryException > sudexc ) { > ActionErrors errors = new > ActionErrors(); > errors.add( ActionErrors.GLOBAL_ERROR, > new ActionError( > "error.logon.connect" ) ); > saveErrors( request, errors ); > return ( new ActionForward( > mapping.getInput() ) ); > } > > if ( !validated ) { > > ActionErrors errors = new > ActionErrors(); > errors.add( ActionErrors.GLOBAL_ERROR, > new ActionError( > "error.logon.invalid" ) ); > saveErrors( request, errors ); > return ( new ActionForward( > mapping.getInput() ) ); > } > > HttpSession session = > request.getSession(); > session.setAttribute( Constants.USER_KEY, > form ); > > return ( mapping.findForward( > Constants.SUCCESS ) ); > } > > public boolean isUserLoggedOn( String > username, > String password ) throws > SimpleUserDirectoryException { > > return ( > SimpleUserDirectory.getInstance().passwordIsValid( > username, password ) ); > } > } > > ** mystrutsactions.LogonAction.java > code above ** > > Note: The LogonAction.java file above makes use of > the following SimpleUserDirectory.java code: > > private static final String > SimpleUserDirectoryFilepath = "users.properties"; > InputStream ips = > this.getClass().getClassLoader().getResourceAsStream( > SimpleUserDirectoryFilepath ); > > ** mystrutsforms.LogonForm.java code > above ** > > Also, my web.xml file has: > > > application > application > > > ** web.xml code above > ** > > Any suggestions or guesses are appreciated. > > > > > Get advanced SPAM filtering on Webmail or POP Mail > ... Get Lycos Mail! > http://login.mail.lycos.com/r/referral?aid=27005 > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Repost: Clicking "Submit" returns a blank page
I have reached this far in my debut logon page development... The first JSP page comes up fine, showing me a form with a rendered tag for each required field (username and password), plus a "Reset" and a "Submit" button. Code sample below comes from my struts-config.xml file: ** struts-config.xml code above ** I can enter data into the fields and they will erase if I click "Reset" I can click "Submit" with nothing filled in (passing nulls with the request), and the proper are displayed. However... If I enter any values for the "username" and "password" fields, then click "Submit," a blank page is always returned (neither "LogonSuccess.jsp" nor "LogonFail.jsp" are blank). What's up with that? The browser says it's trying to display results from "LogonSubmit.do" (which is what I expect). I have a file called "users.properties" in the directory "WEB-INF/classes" and in my LogonAction.java code: public final class LogonAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { String username = ( ( LogonForm ) form ).getUsername(); String password = ( ( LogonForm ) form ).getPassword(); boolean validated = false; try { validated = isUserLoggedOn( username, password ); } catch ( SimpleUserDirectoryException sudexc ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( "error.logon.connect" ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } if ( !validated ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( "error.logon.invalid" ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } HttpSession session = request.getSession(); session.setAttribute( Constants.USER_KEY, form ); return ( mapping.findForward( Constants.SUCCESS ) ); } public boolean isUserLoggedOn( String username, String password ) throws SimpleUserDirectoryException { return ( SimpleUserDirectory.getInstance().passwordIsValid( username, password ) ); } } ** mystrutsactions.LogonAction.java code above ** Note: The LogonAction.java file above makes use of the following SimpleUserDirectory.java code: private static final String SimpleUserDirectoryFilepath = "users.properties"; InputStream ips = this.getClass().getClassLoader().getResourceAsStream( SimpleUserDirectoryFilepath ); ** mystrutsforms.LogonForm.java code above ** Also, my web.xml file has: application application ** web.xml code above ** Any suggestions or guesses are appreciated. Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logon "Submit" returns a blank page
What is in the log file? Log files records errors. There may be a clue. --- todd thorner <[EMAIL PROTECTED]> wrote: > Hi and thanks, > > Ok, I have reached this far in my logon page > development... > > The first JSP page comes up fine, showing me a form > with a rendered > tag for each required field (username > and password), plus a "Reset" and a "Submit" button. > Code sample below comes from my struts-config.xml > file: > > > type="mystrutsforms.LogonForm"/> > > > > > > > > type="org.apache.struts.actions.ForwardAction" > parameter="/pages/Logon.jsp"/> > type="mystrutsactions.LogonAction" name="logonForm" > scope="request" validate="true" > input="/pages/Logon.jsp"> > path="/pages/LogonSuccess.jsp"/> > path="/pages/LogonFail.jsp"/> > > > > ** struts-config.xml code above > ** > > I can enter data into the fields and > they will erase if I click "Reset" > I can click "Submit" with nothing filled in (passing > nulls with the request), and the proper > are displayed > However, > > If I enter any values for the "username" and > "password" fields, then click "Submit," a blank page > is always returned. > > What's up with that? The browser says it's trying > to display results from "LogonSubmit.do" (which is > what I expect). I have a file called > "users.properties" in the directory > "WEB-INF/classes" and in my LogonAction.java code: > > public final class LogonAction extends Action { > > public ActionForward execute( ActionMapping > mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response ) > throws Exception { > > String username = ( ( LogonForm ) form > ).getUsername(); > String password = ( ( LogonForm ) form > ).getPassword(); > boolean validated = false; > > try { > > validated = isUserLoggedOn( username, > password ); > } > catch ( SimpleUserDirectoryException sudexc > ) { > ActionErrors errors = new > ActionErrors(); > errors.add( ActionErrors.GLOBAL_ERROR, > new ActionError( "error.logon.connect" ) > ); > saveErrors( request, errors ); > return ( new ActionForward( > mapping.getInput() ) ); > } > > if ( !validated ) { > > ActionErrors errors = new > ActionErrors(); > errors.add( ActionErrors.GLOBAL_ERROR, > new ActionError( "error.logon.invalid" ) > ); > saveErrors( request, errors ); > return ( new ActionForward( > mapping.getInput() ) ); > } > > HttpSession session = request.getSession(); > session.setAttribute( Constants.USER_KEY, > form ); > > return ( mapping.findForward( > Constants.SUCCESS ) ); > } > > public boolean isUserLoggedOn( String username, > String password ) throws > SimpleUserDirectoryException { > > return ( > SimpleUserDirectory.getInstance().passwordIsValid( > username, password ) ); > } > } > > ** mystrutsactions.LogonAction.java > code above ** > > Note: The LogonAction.java file above makes use of > the following SimpleUserDirectory.java code: > > private static final String > SimpleUserDirectoryFilepath = "users.properties"; > InputStream ips = > this.getClass().getClassLoader().getResourceAsStream( > SimpleUserDirectoryFilepath ); > > ** mystrutsforms.LogonForm.java code > above ** > > Also, my web.xml file has: > > > application > application > > > ** web.xml code above > ** > > Any suggestions or guesses are appreciated. > > > > Get advanced SPAM filtering on Webmail or POP Mail > ... Get Lycos Mail! > http://login.mail.lycos.com/r/referral?aid=27005 > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logon "Submit" returns a blank page
Hi and thanks, Ok, I have reached this far in my logon page development... The first JSP page comes up fine, showing me a form with a rendered tag for each required field (username and password), plus a "Reset" and a "Submit" button. Code sample below comes from my struts-config.xml file: ** struts-config.xml code above ** I can enter data into the fields and they will erase if I click "Reset" I can click "Submit" with nothing filled in (passing nulls with the request), and the proper are displayed However, If I enter any values for the "username" and "password" fields, then click "Submit," a blank page is always returned. What's up with that? The browser says it's trying to display results from "LogonSubmit.do" (which is what I expect). I have a file called "users.properties" in the directory "WEB-INF/classes" and in my LogonAction.java code: public final class LogonAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { String username = ( ( LogonForm ) form ).getUsername(); String password = ( ( LogonForm ) form ).getPassword(); boolean validated = false; try { validated = isUserLoggedOn( username, password ); } catch ( SimpleUserDirectoryException sudexc ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( "error.logon.connect" ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } if ( !validated ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( "error.logon.invalid" ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } HttpSession session = request.getSession(); session.setAttribute( Constants.USER_KEY, form ); return ( mapping.findForward( Constants.SUCCESS ) ); } public boolean isUserLoggedOn( String username, String password ) throws SimpleUserDirectoryException { return ( SimpleUserDirectory.getInstance().passwordIsValid( username, password ) ); } } ** mystrutsactions.LogonAction.java code above ** Note: The LogonAction.java file above makes use of the following SimpleUserDirectory.java code: private static final String SimpleUserDirectoryFilepath = "users.properties"; InputStream ips = this.getClass().getClassLoader().getResourceAsStream( SimpleUserDirectoryFilepath ); ** mystrutsforms.LogonForm.java code above ** Also, my web.xml file has: application application ** web.xml code above ** Any suggestions or guesses are appreciated. Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My LogonView.jsp Displays A Blank Page
>>>>> "Caroline" == Caroline Jen <[EMAIL PROTECTED]> writes: Caroline> My LogonView.jsp displays a blank page. I have no idea Caroline> why nothing is written while the Caroline> MessageResources.properties file is found. Caroline> I would have gotton HTTP Status 500 if the Caroline> MessageResources.properties is not found or the value Caroline> of the corresponding key in the bean:message tag Caroline> cannot be picked up. I did not get any error message. Caroline> I cannot figure out the reason. Please help. Did you check your server log file? -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP; SCWCD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My LogonView.jsp Displays A Blank Page
I can't see anything wrong, I'll ask some questions :) How are you accessing the logonView.jsp? Requesting it directly or through an Struts Action? Where is the MessageResources.properties file? I see you use resources.version1.MessageResources which means it should be somewhere like /WEB-INF/classes/resources/version1/MessageResources.properties If you went through an action, does the action actually forward to logonView.jsp? What is in your struts-config.xml? Perhaps your log files will show what Struts did with the request? --jason Caroline Jen wrote: 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: --- http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Struts Application action org.apache.struts.action.ActionServlet application resources.version1.MessageResources mapping org.apache.struts.action.RequestActionMapping config /WEB-INF/struts-config.xml debug 2 detail 2 2 action *.do index.jsp /WEB-INF/struts-bean.tld /WEB-INF/struts-bean.tld /WEB-INF/struts-html.tld /WEB-INF/struts-html.tld /WEB-INF/struts-logic.tld /WEB-INF/struts-logic.tld /WEB-INF/struts-nested.tld /WEB-INF/struts-nested.tld /WEB-INF/struts-tiles.tld /WEB-INF/struts-tiles.tld /WEB-INF/struts-template.tld /WEB-INF/struts-template.tld --- 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=Enter your user information title.logon=Logon Screen error.invalid.logon=The User ID and/or Password are invalid. Please try again. errors.header=Validation ErrorYou must correct the following error(s) before proceeding: title.mainmenu=Welcome heading.mainmenu=Welcome! label.userType=You are authorized to use this system as a errors.prefix= errors.suffix= errors.footer= errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. errors.byte={0} must be an byte. errors.date={0} is not a date. errors.double={0} must be an double. errors.float={0} must be an float. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.short={0} must be an short. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. errors.cancel=Operation cancelled. errors.detail={0} errors.general=The process did not complete. Details should follow. errors.token=Request could not be completed. Operation is not in sequence. welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's "webapp" folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.) --- Here is my LogonView.jsp: code: --- <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %
My LogonView.jsp Displays A Blank Page
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: --- http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Struts Application action org.apache.struts.action.ActionServlet application resources.version1.MessageResources mapping org.apache.struts.action.RequestActionMapping config /WEB-INF/struts-config.xml debug 2 detail 2 2 action *.do index.jsp /WEB-INF/struts-bean.tld /WEB-INF/struts-bean.tld /WEB-INF/struts-html.tld /WEB-INF/struts-html.tld /WEB-INF/struts-logic.tld /WEB-INF/struts-logic.tld /WEB-INF/struts-nested.tld /WEB-INF/struts-nested.tld /WEB-INF/struts-tiles.tld /WEB-INF/struts-tiles.tld /WEB-INF/struts-template.tld /WEB-INF/struts-template.tld --- 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=Enter your user information title.logon=Logon Screen error.invalid.logon=The User ID and/or Password are invalid. Please try again. errors.header=Validation ErrorYou must correct the following error(s) before proceeding: title.mainmenu=Welcome heading.mainmenu=Welcome! label.userType=You are authorized to use this system as a errors.prefix= errors.suffix= errors.footer= errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. errors.byte={0} must be an byte. errors.date={0} is not a date. errors.double={0} must be an double. errors.float={0} must be an float. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.short={0} must be an short. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. errors.cancel=Operation cancelled. errors.detail={0} errors.general=The process did not complete. Details should follow. errors.token=Request could not be completed. Operation is not in sequence. welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's "webapp" folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.) --- Here is my LogonView.jsp: code: --- <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> : : --- __ 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]
My LoginView.jsp Displays A Blank Page
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
RE: findForward() goes to a blank page!!
Thanks for your reply Tim I figured the problem as u mentioned in the changewelmsg.do action class itself...i had not mapped "displayMain" in this action class :) Works fine now!! -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 9:02 PM To: 'Struts Users Mailing List' Subject: RE: findForward() goes to a blank page!! Are you sure its not the displayMain action that is not showing anything? From a brief glance, it looks like your code forwards okay. What does ur changewelmsg.do action do? -Tim -Original Message- From: Sandhya Sasidharan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 10:29 AM To: Struts Users Mailing List Cc: Sandhya Sasidharan Subject: findForward() goes to a blank page!! Hi everyone, I have a problem with returning to the previous page using findForward(). In my Action class, depending on the action which has to be performed, I am forwarding it to a certain jsp. The code looks like this else if(strAction.equals("cancel")) { ((ChangeWelForm) form).setTheMessage(strMsgPrev); return mapping.findForward("displayMain"); I have set ("displayMain") in my struts-config file : But i get a blank page on performing this action!! Can anyone please let me know if i'm missing something here since i'm new to struts!! Thanks & Regds Sandhya **Disclaimer** Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: findForward() goes to a blank page!!
Are you sure its not the displayMain action that is not showing anything? >From a brief glance, it looks like your code forwards okay. What does ur changewelmsg.do action do? -Tim -Original Message- From: Sandhya Sasidharan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 10:29 AM To: Struts Users Mailing List Cc: Sandhya Sasidharan Subject: findForward() goes to a blank page!! Hi everyone, I have a problem with returning to the previous page using findForward(). In my Action class, depending on the action which has to be performed, I am forwarding it to a certain jsp. The code looks like this else if(strAction.equals("cancel")) { ((ChangeWelForm) form).setTheMessage(strMsgPrev); return mapping.findForward("displayMain"); I have set ("displayMain") in my struts-config file : But i get a blank page on performing this action!! Can anyone please let me know if i'm missing something here since i'm new to struts!! Thanks & Regds Sandhya
findForward() goes to a blank page!!
Title: Message Hi everyone, I have a problem with returning to the previous page using findForward(). In my Action class, depending on the action which has to be performed, I am forwarding it to a certain jsp. The code looks like this else if(strAction.equals("cancel")) { ((ChangeWelForm) form).setTheMessage(strMsgPrev); return mapping.findForward("displayMain"); I have set ("displayMain") in my struts-config file : type="com.dweb.action.ChangeWelPrevAction" name="ChangeWelForm" scope="request"input="/jsp/admin/admChangeWelPrev.jsp"> But i get a blank page on performing this action!! Can anyone please let me know if i'm missing something here since i'm new to struts!! Thanks & Regds Sandhya **Disclaimer** Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using Frameset within Struts - displayed a blank page
Hi Brian, Thanks for your response! I tried to define a forward within the /selectTab action, but I still see a blank page. The new action mapping is below Read the Struts archive, it seems that using tiles/template is a better choice than calling in action in the frame src attribute. Also, it would be much appreciated if some one can share a sample code and configuration on how to develop tabs functionality with frame and tiles. I'm going through tiles-documentation tutorial. The layout that we have for our application is below Top frame: Tab labels Middle frame: content body Bottom frame: other data and footer. Thanks! Tuan -Original Message- From: Brian DeLuca [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 1:28 PM To: [EMAIL PROTECTED] Subject: RE: Using Frameset within Struts - displayed a blank page Interesting. Never tried calling in action in a SRC attribute. Seems like it works since you are getting a blank page, and not a HTTP: 404 error ( Page not found ). When I see blank white pages it is usually a problem with your forwards. I don't see a forward defined in the selectTab action definition in the Struts-config file. Is it a Global forward? is it misspelled in your code? Keeping in mind that the input attribute doesn't get checked for forwards, that is used for validation. hth b- --- On Mon 10/07, Tuan H. Le wrote: From: Tuan H. Le [mailto: [EMAIL PROTECTED]] To: [EMAIL PROTECTED] Date: Mon, 7 Oct 2002 12:08:44 -0700 Subject: Using Frameset within Struts - displayed a blank page > I have searched through the struts archive, but couldn't find a solution to > my problem below. > > if I specified , it found and > displayed the Top.jsp fine. > id="top" frameborder="0" scrolling="no" > noresize marginwidth="0" marginheight="0" > framespacing="0"> > However, after I changed to , > then it displayed a blank page in the top frame. > > Do you know what I'm missing? > > Thanks in advance > Tuan > > Here are my settings and code. > > struts-config.xml (a partial file) -- > > type="com.phs.ezhr.presentation.form.LoginForm" /> > type="com.phs.ezhr.presentation.form.MainMenuForm" /> > > > > type="com.phs.ezhr.presentation.action.MainMenuAction" > validate="false" > input="/Top.jsp" > name="mainMenuForm" > scope="request" > > > > > MainMenu.jsp - > > > prefix="html" %> > prefix="bean" %> > > > > > > /> > > > framespacing="0"> > id="top" frameborder="0" scrolling="no" > noresize marginwidth="0" marginheight="0" > framespacing="0"> > > marginwidth="0" marginheight="0" > scrolling="yes" frameborder="0" noresize > framespacing="0"> > marginwidth="10" marginheight="10" > scrolling="no" frameborder="0" noresize > framespacing="0"> > > id="btm" frameborder="0" scrolling="no" > marginwidth="0" marginheight="0" noresize > framespacing="0"> > > > > > > > Top.jsp - > > > prefix="html" %> > prefix="bean" %> > prefix="logic" %> > > > > Transitional//EN"> > > href="stylesheets/styleTop.css"> > > >/> > > > // get the passed in request parameter > String value = request.getParameter( IConstants.USER_SEL_TAB_KEY ); > // set the request attribute to be used within the JSP > tag > request.setAttribute( IConstants.USER_SEL_TAB_KEY, value ); > %> > >name="mainMenuForm" > type="com.phs.ezhr.presentation.form.MainMenuForm" > method="POST"> > cellspacing="0" cellpadding="0"> > > > > > > > > > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > Changed your e-mail? Keep your contacts! Use this free e-mail change of address service from Return Path. Register now! -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Using Frameset within Struts - displayed a blank page
Interesting. Never tried calling in action in a SRC attribute. Seems like it works since you are getting a blank page, and not a HTTP: 404 error ( Page not found ). When I see blank white pages it is usually a problem with your forwards. I don't see a forward defined in the selectTab action definition in the Struts-config file. Is it a Global forward? is it misspelled in your code? Keeping in mind that the input attribute doesn't get checked for forwards, that is used for validation. hth b- --- On Mon 10/07, Tuan H. Le wrote: From: Tuan H. Le [mailto: [EMAIL PROTECTED]] To: [EMAIL PROTECTED] Date: Mon, 7 Oct 2002 12:08:44 -0700 Subject: Using Frameset within Struts - displayed a blank page > I have searched through the struts archive, but couldn't find a solution to > my problem below. > > if I specified , it found and > displayed the Top.jsp fine. > id="top" frameborder="0" scrolling="no" > noresize marginwidth="0" marginheight="0" > framespacing="0"> > However, after I changed to , > then it displayed a blank page in the top frame. > > Do you know what I'm missing? > > Thanks in advance > Tuan > > Here are my settings and code. > > struts-config.xml (a partial file) -- > > type="com.phs.ezhr.presentation.form.LoginForm" /> > type="com.phs.ezhr.presentation.form.MainMenuForm" /> > > > > type="com.phs.ezhr.presentation.action.MainMenuAction" > validate="false" > input="/Top.jsp" > name="mainMenuForm" > scope="request" > > > > > MainMenu.jsp - > > > prefix="html" %> > prefix="bean" %> > > > > > > /> > > > framespacing="0"> > id="top" frameborder="0" scrolling="no" > noresize marginwidth="0" marginheight="0" > framespacing="0"> > > marginwidth="0" marginheight="0" > scrolling="yes" frameborder="0" noresize > framespacing="0"> > marginwidth="10" marginheight="10" > scrolling="no" frameborder="0" noresize > framespacing="0"> > > id="btm" frameborder="0" scrolling="no" > marginwidth="0" marginheight="0" noresize > framespacing="0"> > > > > > > > Top.jsp - > > > prefix="html" %> > prefix="bean" %> > prefix="logic" %> > > > > Transitional//EN"> > > href="stylesheets/styleTop.css"> > > >/> > > > // get the passed in request parameter > String value = request.getParameter( IConstants.USER_SEL_TAB_KEY ); > // set the request attribute to be used within the JSP > tag > request.setAttribute( IConstants.USER_SEL_TAB_KEY, value ); > %> > >name="mainMenuForm" > type="com.phs.ezhr.presentation.form.MainMenuForm" > method="POST"> > cellspacing="0" cellpadding="0"> > > > > > > > > > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > Changed your e-mail? Keep your contacts! Use this free e-mail change of address service from Return Path. Register now! -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Using Frameset within Struts - displayed a blank page
I have searched through the struts archive, but couldn't find a solution to my problem below. if I specified , it found and displayed the Top.jsp fine. However, after I changed to , then it displayed a blank page in the top frame. Do you know what I'm missing? Thanks in advance Tuan Here are my settings and code. struts-config.xml (a partial file) -- MainMenu.jsp - <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> Top.jsp - <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ page import="com.phs.ezhr.constant.IConstants" %> <% // get the passed in request parameter String value = request.getParameter( IConstants.USER_SEL_TAB_KEY ); // set the request attribute to be used within the JSP tag request.setAttribute( IConstants.USER_SEL_TAB_KEY, value ); %> <> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: I try again... My action is not being called -I just get a blank page!
Vilya Harvey writes: > > If I write /do/acceptanstest/accDatabase I get the same result -a blank > > page. And if I remove the form tag, I will get a servlet error: Cannot > find > > bean databaseForm in scope null. I don't get it.. Did you remember to remove the form part of the action mapping? ie -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: I try again... My action is not being called -I just get a blank page!
Sorry, that was my mistake earlier: your HTML was correct. I thought you were using the page="" attribute, rather than forward="", on the HTML link. I don't know what else could be causing the problem; I can't see anything obviously wrong. Good luck sorting it out though! Vil. -- Vilya Harvey, Consultant [EMAIL PROTECTED] / digital steps / (W) +44 (0)1483 469 480 (M) +44 (0)7816 678 457 http://www.digitalsteps.com/ - Original Message - From: "Ulrika Nordström" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 11:35 AM Subject: Re: I try again... My action is not being called -I just get a blank page! > If I write /do/acceptanstest/accDatabase I get the same result -a blank > page. And if I remove the form tag, I will get a servlet error: Cannot find > bean databaseForm in scope null. I don't get it.. > > >Both the action specified in your form, and the href for the link inside > >the > >form are invalid. If you have mapped /do/* to the ActionServlet, then the > >href should be /do/acceptanstest/accDatabase. Give that a try and see if it > >helps. > > > >As a side note, the tag is not necessary here. > > > >Good luck! > >Vil. > >-- > >Vilya Harvey, Consultant > >[EMAIL PROTECTED] / digital steps / > >(W) +44 (0)1483 469 480 > >(M) +44 (0)7816 678 457 http://www.digitalsteps.com/ > > > > > > > >- Original Message - > >From: "Ulrika Nordström" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Tuesday, September 24, 2002 7:19 AM > >Subject: Re: I try again... My action is not being called -I just get a > >blank page! > > > > > > > >My struts-config.xml: > > > > > > > > > > > > > > > > > > > > > > > > > > >type="se.amfpension.admin.action.AccDatabaseAction" > > > > name="databaseForm" > > > > scope="request" > > > > validate="false"> > > > > > > >path="/acceptanstest.jsp" redirect="false" /> > > > > > > > > > > > > > > > > > > > >index.jsp > > > > > > > > > > > >Här kan du greja med databaser > > > > > > > > > > > > >forward="accDatabase">Acceptanstest >t > > > >r> > > > > > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: I try again... My action is not being called -I just get a blank page!
If I write /do/acceptanstest/accDatabase I get the same result -a blank page. And if I remove the form tag, I will get a servlet error: Cannot find bean databaseForm in scope null. I don't get it.. >Both the action specified in your form, and the href for the link inside >the >form are invalid. If you have mapped /do/* to the ActionServlet, then the >href should be /do/acceptanstest/accDatabase. Give that a try and see if it >helps. > >As a side note, the tag is not necessary here. > >Good luck! >Vil. >-- >Vilya Harvey, Consultant >[EMAIL PROTECTED] / digital steps / >(W) +44 (0)1483 469 480 >(M) +44 (0)7816 678 457 http://www.digitalsteps.com/ > > > >- Original Message - >From: "Ulrika Nordström" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, September 24, 2002 7:19 AM >Subject: Re: I try again... My action is not being called -I just get a >blank page! > > > > >My struts-config.xml: > > > > > > > > > > > > > > > > > > > >type="se.amfpension.admin.action.AccDatabaseAction" > > > name="databaseForm" > > > scope="request" > > > validate="false"> > > > > >path="/acceptanstest.jsp" redirect="false" /> > > > > > > > > > > > > > > >index.jsp > > > > > > > > >Här kan du greja med databaser > > > > > > > > >forward="accDatabase">Acceptanstest t > > >r> > > > > > > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _ Med MSN Foto kan du enkelt dela med dig av dina fotografier och beställa kopior: http://photos.msn.se -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: I try again... My action is not being called -I just get a blank page!
Both the action specified in your form, and the href for the link inside the form are invalid. If you have mapped /do/* to the ActionServlet, then the href should be /do/acceptanstest/accDatabase. Give that a try and see if it helps. As a side note, the tag is not necessary here. Good luck! Vil. -- Vilya Harvey, Consultant [EMAIL PROTECTED] / digital steps / (W) +44 (0)1483 469 480 (M) +44 (0)7816 678 457 http://www.digitalsteps.com/ - Original Message - From: "Ulrika Nordström" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 7:19 AM Subject: Re: I try again... My action is not being called -I just get a blank page! > >My struts-config.xml: > > > > > > > > > > > > >type="se.amfpension.admin.action.AccDatabaseAction" > > name="databaseForm" > > scope="request" > > validate="false"> > > >path="/acceptanstest.jsp" redirect="false" /> > > > > > > > > > >index.jsp > > > > > >Här kan du greja med databaser > > > > >forward="accDatabase">Acceptanstest >r> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Réf. : I try again... My action is not beingcalled -I just get a blank page!
I don't know what is wrong with your webapp, but I'm using Struts with WebSphere developer studio as well and it works fine. Try it with a simple blank webapp. The only thing that is a bit unusual is the servlet-mapping, and also I nerver specify the type in the action-mappings. _ Alexandre Albert Ulrika Nordström <[EMAIL PROTECTED]> 09/24/02 07:51 AM Veuillez répondre à "Struts Users Mailing List" Pour : [EMAIL PROTECTED] cc : Objet : I try again... My action is not being called -I just get a blank page! No, look at my execute method: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { System.out.println("AccDatabaseAction :: execute"); return (mapping.findForward("success")); } Nothing is written in the console and an exeption is not being thrown. Nothin happens in the console! Nothing is printed, no error message. The action is not being valled, just a blank page shows up. My struts-config.xml: *** AccDatabaseAction.java: public class AccDatabaseAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { System.out.println("AccDatabaseAction :: execute"); return (mapping.findForward("success")); } } *** DatabaseForm.java: public final class DatabaseForm extends org.apache.struts.action.ActionForm { public String iName; public String getName() { return this.iName; } public void setName(String aValue) { this.iName = aValue; } } index.jsp %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> Här kan du greja med databaser Acceptanstest >From: Eddie Bush <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: Struts Users Mailing List <[EMAIL PROTECTED]> >Subject: Re: My action is not being called -I just get a blank page! >Date: Mon, 23 Sep 2002 10:35:37 -0500 > >... or your action returned null and Struts thought there was nothing left >to do (that's what a null ActionForward indicates). I've seen it then too. > >David Graham wrote: > >> >>Normally, when you get a blank page there was an exception thrown. Check >>you server logs for the exception. >> >>Dave > > >-- >Eddie Bush > > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _ MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig ett eget konto du också: http://www.hotmail.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: I try again... My action is not being called -I just get a blank page!
No, I am using WebSphere Applicatio Developer Studio, I have checked all its logs... >Are you using Tomcat? Check the Tomcat log -- some exceptions >get sent to the Tomcat log instead of the browser or console log >window. The path will be something like: > > C:\tomcat\logs\localhost_log.2002-09-24.txt > >You will have to scroll to the bottom of the file to see the latest >entries. > >Bryan > >- Original Message - >From: "Ulrika Nordström" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, September 23, 2002 11:51 PM >Subject: I try again... My action is not being called -I just get a blank >page! > > >No, look at my execute method: >public ActionForward execute( ActionMapping mapping, ActionForm form, >HttpServletRequest request, HttpServletResponse response) { >System.out.println("AccDatabaseAction :: execute"); >return (mapping.findForward("success")); >} > >Nothing is written in the console and an exeption is not being thrown. >Nothin happens in the console! Nothing is printed, no error message. The >action is not being valled, just a blank page shows up. > >My struts-config.xml: > > > > > > > type="se.amfpension.admin.form.DatabaseForm"> > type="java.lang.String"/> > > > > > > > > > /> > > > > > >type="se.amfpension.admin.action.AccDatabaseAction" > name="databaseForm" > scope="request" > validate="false"> > path="/acceptanstest.jsp" redirect="false" /> > > > > >*** >AccDatabaseAction.java: > >public class AccDatabaseAction extends Action { > public ActionForward execute( ActionMapping mapping, > >ActionForm >form, > >HttpServletRequest request, > >HttpServletResponse response) { > System.out.println("AccDatabaseAction :: execute"); > return (mapping.findForward("success")); > } >} > >*** >DatabaseForm.java: >public final class DatabaseForm extends org.apache.struts.action.ActionForm >{ > > public String iName; > > public String getName() { > return this.iName; > } > > public void setName(String aValue) { > this.iName = aValue; > } >} > > >index.jsp > >%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> ><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> ><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > > > > > > >Här kan du greja med databaser > > forward="accDatabase">Acceptanstest r> > > > > > > > > >From: Eddie Bush <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: Struts Users Mailing List <[EMAIL PROTECTED]> > >Subject: Re: My action is not being called -I just get a blank page! > >Date: Mon, 23 Sep 2002 10:35:37 -0500 > > > >... or your action returned null and Struts thought there was nothing >left > >to do (that's what a null ActionForward indicates). I've seen it then >too. > > > >David Graham wrote: > > > >> > >>Normally, when you get a blank page there was an exception thrown. >Check > >>you server logs for the exception. > >> > >>Dave > > > > > >-- > >Eddie Bush > > > > > > > > > >-- > >To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > > > > >_ >MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig ett eget konto >du också: http://www.hotmail.com > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _ Med MSN Foto kan du enkelt dela med dig av dina fotografier och beställa kopior: http://photos.msn.se -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: I try again... My action is not being called -I just get a blank page!
Are you using Tomcat? Check the Tomcat log -- some exceptions get sent to the Tomcat log instead of the browser or console log window. The path will be something like: C:\tomcat\logs\localhost_log.2002-09-24.txt You will have to scroll to the bottom of the file to see the latest entries. Bryan - Original Message - From: "Ulrika Nordström" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 23, 2002 11:51 PM Subject: I try again... My action is not being called -I just get a blank page! No, look at my execute method: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { System.out.println("AccDatabaseAction :: execute"); return (mapping.findForward("success")); } Nothing is written in the console and an exeption is not being thrown. Nothin happens in the console! Nothing is printed, no error message. The action is not being valled, just a blank page shows up. My struts-config.xml: *** AccDatabaseAction.java: public class AccDatabaseAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { System.out.println("AccDatabaseAction :: execute"); return (mapping.findForward("success")); } } *** DatabaseForm.java: public final class DatabaseForm extends org.apache.struts.action.ActionForm { public String iName; public String getName() { return this.iName; } public void setName(String aValue) { this.iName = aValue; } } index.jsp %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> Här kan du greja med databaser Acceptanstest >From: Eddie Bush <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: Struts Users Mailing List <[EMAIL PROTECTED]> >Subject: Re: My action is not being called -I just get a blank page! >Date: Mon, 23 Sep 2002 10:35:37 -0500 > >... or your action returned null and Struts thought there was nothing left >to do (that's what a null ActionForward indicates). I've seen it then too. > >David Graham wrote: > >> >>Normally, when you get a blank page there was an exception thrown. Check >>you server logs for the exception. >> >>Dave > > >-- >Eddie Bush > > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _ MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig ett eget konto du också: http://www.hotmail.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: I try again... My action is not being called -I just get a blank page!
Thanks but my mapping in web.xml is ControlServlet /do/* >From: René Eigenheer <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> >Subject: RE: I try again... My action is not being called -I just get a >blank page! >Date: Tue, 24 Sep 2002 08:05:44 +0200 > >try with > >did you map *.do to struts? > > > -Original Message- > > From: Ulrika Nordström [mailto:[EMAIL PROTECTED]] > > Sent: Dienstag, 24. September 2002 07:52 > > To: [EMAIL PROTECTED] > > Subject: I try again... My action is not being called -I just get a > > blank page! > > > > > > No, look at my execute method: > > public ActionForward execute( ActionMapping mapping, > > ActionForm form, > > HttpServletRequest request, HttpServletResponse response) { > > System.out.println("AccDatabaseAction :: execute"); > > return (mapping.findForward("success")); > > } > > > > Nothing is written in the console and an exeption is not > > being thrown. > > Nothin happens in the console! Nothing is printed, no error > > message. The > > action is not being valled, just a blank page shows up. > > > > My struts-config.xml: > > > > > > > > > > > > > > > type="se.amfpension.admin.form.DatabaseForm"> > > > type="java.lang.String"/> > > > > > > > > > > > > > > > > > >> path="/do/acceptanstest/accDatabase" > > /> > > > > > > > > > > > > > type="se.amfpension.admin.action.AccDatabaseAction" > > name="databaseForm" > > scope="request" > > validate="false"> > > > path="/acceptanstest.jsp" redirect="false" /> > > > > > > > > ** > > * > > AccDatabaseAction.java: > > > > public class AccDatabaseAction extends Action { > > public ActionForward execute( ActionMapping mapping, > > > > > > ActionForm > > form, > > > > HttpServletRequest request, > > > > HttpServletResponse response) { > > System.out.println("AccDatabaseAction :: execute"); > > return (mapping.findForward("success")); > > } > > } > > ** > > * > > DatabaseForm.java: > > public final class DatabaseForm extends > > org.apache.struts.action.ActionForm > > { > > > > public String iName; > > > > public String getName() { > > return this.iName; > > } > > > > public void setName(String aValue) { > > this.iName = aValue; > > } > > } > > > > > > index.jsp > > > > %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > > > > > > > > > > > > > > > Här kan du greja med databaser > > > > > forward="accDatabase">Acceptanstest > > > > > > > > > > > > > > > > > > >From: Eddie Bush <[EMAIL PROTECTED]> > > >Reply-To: "Struts Users Mailing List" > > <[EMAIL PROTECTED]> > > >To: Struts Users Mailing List <[EMAIL PROTECTED]> > > >Subject: Re: My action is not being called -I just get a blank page! > > >Date: Mon, 23 Sep 2002 10:35:37 -0500 > > > > > >... or your action returned null and Struts thought there > > was nothing left > > >to do (that's what a null ActionForward indicates). I've > > seen it then too. > > > > > >David Graham wrote: > > > > > >> > > >>Normally, when you get a blank page there was an exception > > thrown. Check > > >>you server logs for the exception. > > >> > > >>Dave > > > > > > > > >-- > > >Eddie Bush > > > > > > > > > > > > > > >-- > > >To unsubscribe, e-mail: > > ><mailto:[EMAIL PROTECTED]> > > >For additional commands, e-mail: > > ><mailto:[EMAIL PROTECTED]> > > > > > > > > > > _ > > MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig > > ett eget konto > > du också: http://www.hotmail.com > > > > > > -- > > To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _ Skicka snabbmeddelanden till dina vänner online med MSN Messenger: http://messenger.msn.se -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: I try again... My action is not being called -I just get a blank page!
try with did you map *.do to struts? > -Original Message- > From: Ulrika Nordström [mailto:[EMAIL PROTECTED]] > Sent: Dienstag, 24. September 2002 07:52 > To: [EMAIL PROTECTED] > Subject: I try again... My action is not being called -I just get a > blank page! > > > No, look at my execute method: > public ActionForward execute( ActionMapping mapping, > ActionForm form, > HttpServletRequest request, HttpServletResponse response) { > System.out.println("AccDatabaseAction :: execute"); > return (mapping.findForward("success")); > } > > Nothing is written in the console and an exeption is not > being thrown. > Nothin happens in the console! Nothing is printed, no error > message. The > action is not being valled, just a blank page shows up. > > My struts-config.xml: > > > > > > > type="se.amfpension.admin.form.DatabaseForm"> > type="java.lang.String"/> > > > > > > > > >path="/do/acceptanstest/accDatabase" > /> > > > > > > type="se.amfpension.admin.action.AccDatabaseAction" > name="databaseForm" > scope="request" > validate="false"> > path="/acceptanstest.jsp" redirect="false" /> > > > > ** > * > AccDatabaseAction.java: > > public class AccDatabaseAction extends Action { > public ActionForward execute( ActionMapping mapping, > > > ActionForm > form, > > HttpServletRequest request, > > HttpServletResponse response) { > System.out.println("AccDatabaseAction :: execute"); > return (mapping.findForward("success")); > } > } > ** > * > DatabaseForm.java: > public final class DatabaseForm extends > org.apache.struts.action.ActionForm > { > > public String iName; > > public String getName() { > return this.iName; > } > > public void setName(String aValue) { > this.iName = aValue; > } > } > > > index.jsp > > %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > > > > > > > Här kan du greja med databaser > > forward="accDatabase">Acceptanstest > > > > > > > > > >From: Eddie Bush <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >To: Struts Users Mailing List <[EMAIL PROTECTED]> > >Subject: Re: My action is not being called -I just get a blank page! > >Date: Mon, 23 Sep 2002 10:35:37 -0500 > > > >... or your action returned null and Struts thought there > was nothing left > >to do (that's what a null ActionForward indicates). I've > seen it then too. > > > >David Graham wrote: > > > >> > >>Normally, when you get a blank page there was an exception > thrown. Check > >>you server logs for the exception. > >> > >>Dave > > > > > >-- > >Eddie Bush > > > > > > > > > >-- > >To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > > > > > _ > MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig > ett eget konto > du också: http://www.hotmail.com > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
I try again... My action is not being called -I just get a blank page!
No, look at my execute method: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { System.out.println("AccDatabaseAction :: execute"); return (mapping.findForward("success")); } Nothing is written in the console and an exeption is not being thrown. Nothin happens in the console! Nothing is printed, no error message. The action is not being valled, just a blank page shows up. My struts-config.xml: *** AccDatabaseAction.java: public class AccDatabaseAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { System.out.println("AccDatabaseAction :: execute"); return (mapping.findForward("success")); } } *** DatabaseForm.java: public final class DatabaseForm extends org.apache.struts.action.ActionForm { public String iName; public String getName() { return this.iName; } public void setName(String aValue) { this.iName = aValue; } } index.jsp %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> Här kan du greja med databaser Acceptanstest >From: Eddie Bush <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: Struts Users Mailing List <[EMAIL PROTECTED]> >Subject: Re: My action is not being called -I just get a blank page! >Date: Mon, 23 Sep 2002 10:35:37 -0500 > >... or your action returned null and Struts thought there was nothing left >to do (that's what a null ActionForward indicates). I've seen it then too. > >David Graham wrote: > >> >>Normally, when you get a blank page there was an exception thrown. Check >>you server logs for the exception. >> >>Dave > > >-- >Eddie Bush > > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _ MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig ett eget konto du också: http://www.hotmail.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: My action is not being called -I just get a blank page!
... or your collection/array you are using in a logic:iterate is null. Struts 1.02 gets confused and sends back part of the header and nothing else. Bryan - Original Message - From: "Eddie Bush" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, September 23, 2002 9:35 AM Subject: Re: My action is not being called -I just get a blank page! ... or your action returned null and Struts thought there was nothing left to do (that's what a null ActionForward indicates). I've seen it then too. David Graham wrote: > > Normally, when you get a blank page there was an exception thrown. > Check you server logs for the exception. > > Dave -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: My action is not being called -I just get a blank page!
... or your action returned null and Struts thought there was nothing left to do (that's what a null ActionForward indicates). I've seen it then too. David Graham wrote: > > Normally, when you get a blank page there was an exception thrown. > Check you server logs for the exception. > > Dave -- Eddie Bush -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: My action is not being called -I just get a blank page!
Normally, when you get a blank page there was an exception thrown. Check you server logs for the exception. Dave >From: Ulrika Nordström <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: My action is not being called -I just get a blank page! >Date: Mon, 23 Sep 2002 16:28:00 +0200 > >Hi! > >I am trying to access an action but it is not being called. Nothing is >happening in the console. In the execute()-metgod I write >"AccDatabaseAction :: execute" but nothing is being printed. The only thing >that is happening is that I get a blank page. The URL of the first index >page looks like: http://localhost:8080/servlet/index.jsp and when I click >the name the blank page will show up at >http://localhost:8080/servlet/do/acceptanstest/accDatabase I can't see what >I have missed and I have tried everything! I using IBM WebSphere Studio >Application Developer and I have just downloaded the latest version of >Struts 1.1b. > >Please, I really need help with this. >Thanks, Ulrika > >Here are my files: > >My struts-config.xml: > > > > > > > type="se.amfpension.admin.form.DatabaseForm"> > > > > > > > > > > > > > > > type="se.amfpension.admin.action.AccDatabaseAction" > name="databaseForm" > scope="request" > validate="false"> > path="/acceptanstest.jsp" redirect="false" >/> > > > >*** >AccDatabaseAction.java: > >public class AccDatabaseAction extends Action { > public ActionForward execute( ActionMapping mapping, > ActionForm >form, > >HttpServletRequest request, > >HttpServletResponse response) { > System.out.println("AccDatabaseAction :: execute"); > return (mapping.findForward("success")); > } >} >*** >DatabaseForm.java: >public final class DatabaseForm extends org.apache.struts.action.ActionForm >{ > > public String iName; > > public String getName() { > return this.iName; > } > > public void setName(String aValue) { > this.iName = aValue; > } >} > > >index.jsp > >%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> ><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> ><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > > > > > > >Här kan du greja med databaser > > forward="accDatabase">Acceptanstest > > > > > > > > > >_ >Skicka snabbmeddelanden till dina vänner online med MSN Messenger: >http://messenger.msn.se > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
My action is not being called -I just get a blank page!
Hi! I am trying to access an action but it is not being called. Nothing is happening in the console. In the execute()-metgod I write "AccDatabaseAction :: execute" but nothing is being printed. The only thing that is happening is that I get a blank page. The URL of the first index page looks like: http://localhost:8080/servlet/index.jsp and when I click the name the blank page will show up at http://localhost:8080/servlet/do/acceptanstest/accDatabase I can't see what I have missed and I have tried everything! I using IBM WebSphere Studio Application Developer and I have just downloaded the latest version of Struts 1.1b. Please, I really need help with this. Thanks, Ulrika Here are my files: My struts-config.xml: *** AccDatabaseAction.java: public class AccDatabaseAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { System.out.println("AccDatabaseAction :: execute"); return (mapping.findForward("success")); } } *** DatabaseForm.java: public final class DatabaseForm extends org.apache.struts.action.ActionForm { public String iName; public String getName() { return this.iName; } public void setName(String aValue) { this.iName = aValue; } } index.jsp %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> Här kan du greja med databaser Acceptanstest _ Skicka snabbmeddelanden till dina vänner online med MSN Messenger: http://messenger.msn.se -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: blank page
- Original Message - From: "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> Subject: RE: blank page > Next time you're not sure if the Action got hit, it's easy to test it by > putting a System.out.println in the class. Watch for the message in the > server console. It's a good thing to try before posting a question, because > you'll be more sure of what's going wrong. > > ~ Keith > In addition in shows that you have made an effort to resolve your problem yourself, rather than expecting someone else to do your work for you. Dave -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: blank page
Next time you're not sure if the Action got hit, it's easy to test it by putting a System.out.println in the class. Watch for the message in the server console. It's a good thing to try before posting a question, because you'll be more sure of what's going wrong. ~ Keith -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 7:36 PM To: Struts Users Mailing List Subject: blank page I did the , but I got a blank page after I hit the submit button. I have a feeling the Action object is not being hit. What did I do worng? Billy Ng -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: blank page
My wrong. I have a typo in the method name. Sorry Billy Ng - Original Message - From: "Billy Ng" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, June 20, 2002 4:36 PM Subject: blank page I did the , but I got a blank page after I hit the submit button. I have a feeling the Action object is not being hit. What did I do worng? Billy Ng -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: blank page
please post your action mapping in config file and the form tag used in view component. a. make sure u have the action attribute of form tag and path attribute of action tag in action mappings are exaclty the same. b. if u are forwarding non existing mapping in ur Action class. -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 7:36 PM To: Struts Users Mailing List Subject: blank page I did the , but I got a blank page after I hit the submit button. I have a feeling the Action object is not being hit. What did I do worng? Billy Ng -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
blank page
I did the , but I got a blank page after I hit the submit button. I have a feeling the Action object is not being hit. What did I do worng? Billy Ng
Re: findForward() returning a blank page
Sorry, i was using the deprecated perform method and it was not being called. Michael Gluckman wrote: > Hi all > > After my action class is instantiated the method findForward("admin") > returns a blank html page instead of the admin-frame page. > If I type the full URL path to the admin-frame it works. > I have included the in the admin-frame page. > Any ideas > > Thanks > Michael > > > path="/logon" > type="test.LogonAction" > name="logonForm" > scope="request" > input="/logon.jsp"> > >
findForward() returning a blank page
Hi all After my action class is instantiated the method findForward("admin") returns a blank html page instead of the admin-frame page. If I type the full URL path to the admin-frame it works. I have included the in the admin-frame page. Any ideas Thanks Michael