Or I think maybe many project would meet this kind of quesition. Just want to know how to deal with it when you need to display some information loaded from db in you first page.
On 2/21/06, Joey Watson <[EMAIL PROTECTED]> wrote: > yes. I think it is a good idea. but I don't know to do it. I can make > a jsp page as welcome page, but how could I make it can forward to > Login.jsp automatically. user don't need to click a link or a button. > > On 2/21/06, Bryan LaPlante <[EMAIL PROTECTED]> wrote: > > Could you make you welcome page different than login.jsp and have it forward > > to login.jsp? If login is your front door, maybe all of your welcome pages > > could forward to it. > > > > ----- Original Message ----- > > From: "Joey Watson" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <user@struts.apache.org> > > Sent: Monday, February 20, 2006 12:14 PM > > Subject: Problem about first page. > > > > > > > Hi everybody. > > > > > > I want to write a login module. > > > login.jsp -----display userId , userName, password, company > > > infomation (a drop down box) > > > LoginAction.java ----check login information > > > LoginForm.java -- > > > some command class. ----one of them will load company information from > > db. > > > > > > When user open web site. the login page will be displayed. user need > > > to fill name, id, password and select a company from a drop down box. > > > So I need to load company list from before login page displayed. I > > > want to do this in Action class (it will call a command class). but my > > > problem is login.jsp is defined as <welcome-file-list> in web.xml . > > > So before it is been created . onliy ActionForm would be create, the > > > Action Class doesn't be created. and I don't want to do the load > > > comany actions in ActionForm. So my question is how could I can make > > > Action class to be create and do load actions before the login.jsp be > > > displayed. > > > > > > Thanks.. > > > Joey > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]