Validator for Given Date ?
Hi There is some way to use a declarative validator for a specific date or date rank ? for example validates dates since today ? TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
forward question
Hi. How I can invoke a login action from any pages thats require user be logged, and after valid logon, return to the page that the user was. TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SCAFFOLD] How get session in ProcessActionHelp class
Ted, I try to follow your advice, but arrise some questions: - If is needed to define all form-beans properties, validation rules, reset rules, is like go back to Struts 1.0 ? - There is another way to get a session object, and use scaffold package to query a persistant layer (SQL DB) and return a Bean Object to show in a View Layer ? TIA LFung - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 4:09 PM Subject: Re: [SCAFFOLD] How get session in ProcessActionHelp class The ProcessAction is designed to pass the ActionForm object down to the business layer. The simplest thing is to make the object part of the ActionForm. The best place to do something like that is the reset method. It is passed the HttpServletRequest, so you have access to just about everything public in the application. Just put a bookId property on your ActionForm and populate it through reset. For examples, see the reset method of the BaseForm in the same package. HTH, Ted. Lázaro Miguel Fung wrote: Hi. How I can get a session object in a ProcessActionHelp class, I have this session object: bookId How I can use this session inside a ProcessAction. TIA LFung - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SCAFFOLD] How get session in ProcessActionHelp class
I will check that. Thanks Ted. - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 4:09 PM Subject: Re: [SCAFFOLD] How get session in ProcessActionHelp class The ProcessAction is designed to pass the ActionForm object down to the business layer. The simplest thing is to make the object part of the ActionForm. The best place to do something like that is the reset method. It is passed the HttpServletRequest, so you have access to just about everything public in the application. Just put a bookId property on your ActionForm and populate it through reset. For examples, see the reset method of the BaseForm in the same package. HTH, Ted. Lázaro Miguel Fung wrote: Hi. How I can get a session object in a ProcessActionHelp class, I have this session object: bookId How I can use this session inside a ProcessAction. TIA LFung - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SCAFFOLD] How get application context path
Hi. How I can get my application's path to use it inside a ProcessAction. TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SCAFFOLD] How get application context path
Thanks for your quick reply Ted. - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:45 PM Subject: Re: [SCAFFOLD] How get application context path If you need the application's path, then I wouldn't recommend using a ProcessAction. These are meant to be a fast lane to the business layer. The business layer shouldn't need to know the application's path. If you need to load a resource into application scope, then use a plug-in or another servlet to load it under a known key. Then it can be accessed through the servlet context like anything else. -Ted. Lázaro Miguel Fung wrote: Hi. How I can get my application's path to use it inside a ProcessAction. TIA LFung - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SCAFFOLD] How get session in ProcessActionHelp class
Hi. How I can get a session object in a ProcessActionHelp class, I have this session object: bookId How I can use this session inside a ProcessAction. TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[scaffold] session object
Hi Can any body tips me about get session object value inside a ProcessAction. I will appretiate any help. Thanks LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How get session Bean from ProcessAction Scaffold
Hi. How I can get a session bean from a ProcessAction Help class ? TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RemoveAttributeAction always failure
Hi. I can't make org.apache.struts.scaffold.RemoveAttributeAction works. this is my action config, action path=/logoff parameter=clientData type=org.apache.struts.scaffold.RemoveAttributeAction forward name=success path=/login.vm redirect=false/ /action Thanks LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
remover seesion objetc in Scaffold
Hi, How I can remover a session object using scaffold package. Any help will be highly apretiated. TIA Miguel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HELP] how passing in list sql statement parameter using scaffold
Hi. I'm using scaffold, how I can pass a numeric list in this sql statement select * from table_name where key in (?) key is an integer. When I try to pass a list like this: 8,2,5,10 the select only return the record related to the first item (8). Any help will be highly apretiated. TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]