Re: advice on building front-end rapidly

2009-11-09 Thread Terry Gardner
http://netbeans.org On Nov 8, 2009, at 4:32 PM, Farshad Rabbani wrote: Hi Dave, Why?! At the very least why wouldn't you use something that can edit and understand JSP, custom tags, etc.? So, what would your recommend as something to edit and understand JSP, custom tags etc.? T

Re: Proccessing parameters inside Struts action

2009-10-12 Thread Terry Gardner
In the commons classes at http://kenai.com/projects/commons, there is a class ServletUtils with the following code to extract parameters and place them into a Collection from a servlet request (which can be obtained via ServletActionContext.getRequest()): public static Collection getP

Re: action class is a part of controller or model; and what about formBean

2009-10-12 Thread Terry Gardner
Broadly speaking, the Controller is the filter, the Model is the action, and the result leads to the View. On Oct 12, 2009, at 5:58 AM, Arindam Rajbanshi wrote: i am doing struts 1.2 . Please tell me action is a part of controller or model. and formbean is a part of controller or model. eve

SLAMD conversion to Struts

2009-06-19 Thread Terry Gardner
SLAMD (http://slamd2.dev.java.net) is being converted to use MVC via Struts. I've posted a blog entry describing the functionality with emphasis on Struts and interceptors at http://blogs.sun.com/terrygardner/entry/slamd_internals_functional . -- terry.gard...@sun.com Blog: http://blogs.sun.c

Re: SQL Optimization Tools and Procedures

2009-06-19 Thread Terry Gardner
If you have the code in a workable configuration, you can test it easily with a SQL query job using SLAMD (http://slamd2.dev.java.net). This generate load that may point to indexing problems and other performance-related problems. On Jun 19, 2009, at 11:16 AM, Edward Song wrote: Here's a

Re: Struts 2 dispatcher does not see namespace and action in URL

2009-05-26 Thread Terry Gardner
I vaguely remember something about WebSphere and Apache commons logging ... will try to dig it up. On May 26, 2009, at 9:22 AM, Mitchell, Steven wrote: I have a Struts 2 application that runs fine under Tomcat 5.5 that will not run on a fully patched version of WebSphere 6.1. The applicati

Re: How do I get a request parameter

2009-05-13 Thread Terry Gardner
One way is via the ServletActionContext, for example, ServletActionContext.getRequest().getParameter(String); On May 13, 2009, at 3:16 PM, Jim Collings wrote: It isn't in the value stack but I need to snag it. Can't find any examples of how to do this. Clue anyone? Jim C. smime.p7s D

Re: Date/time formatting

2009-05-06 Thread Terry Gardner
java.text.SimpleDateFormat formats a java.util.Date according to a locale and a patter specified by the client. On May 6, 2009, at 1:10 PM, Jon Pearson wrote: If I wanted to output a date/time value in the user's locale, is there a simple way to do that? I see there is a tag which would be

Re: [S2] how to use multiple resource files in struts2

2009-05-06 Thread Terry Gardner
Set multiple resource per line in your struts.xml file, separated by commas, for example: value="globalMessages,Resources1,Resources2" /> On May 6, 2009, at 4:53 AM, Sonu S wrote: Hi, I am trying to use two or more resource files in struts2, like this struts.custom.i18n.resources=Resou

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread Terry Gardner
iling list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org ====== Terry Gardner terry.gard...@sun.com Skype: Terry_J_Gardner &qu

Re: Struts2 localization

2009-04-24 Thread Terry Gardner
les. That's about it; if you can provide some feedback as to what was confusing we'll update the docs. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-

Re: Display action errors above the field

2009-04-17 Thread Terry Gardner
esn't found. i've to use some library? thanks. On Fri, Apr 17, 2009 at 20:37, Terry Gardner wrote: use addFieldError("fieldName","message"); like: addFieldError("email",surname + ": invalid email address"); The infrastructure marrie

Re: Display action errors above the field

2009-04-17 Thread Terry Gardner
use addFieldError("fieldName","message"); like: addFieldError("email",surname + ": invalid email address"); The infrastructure marries this with the field named "email". On Apr 17, 2009, at 2:31 PM, Stefano Tranquillini wrote: On Fri, Apr 17, 2009 at 20:29, Security Management < list-subscr

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Terry Gardner
try On Apr 17, 2009, at 1:58 PM, Russell Neufeld wrote: Hi all, I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help me understand this. I have a request parameter "status" set to "invalid" which I'd

Re: Struts.properties question

2009-04-17 Thread Terry Gardner
the two letter code for the language. I only speak English - and that badly - so mine are all "_en" for the moment. Thanks!! On Fri, Apr 17, 2009 at 10:44 AM, Terry Gardner wrote: The resource bundles can also be in files named after the Action, for example, SlamdStartServerRes

Re: Struts.properties question

2009-04-17 Thread Terry Gardner
The resource bundles can also be in files named after the Action, for example, SlamdStartServerResultAction_en.properties, which contains keys and values (English) for the Action SlamdStartServerResultAction.java On Apr 17, 2009, at 10:36 AM, Bhaarat Sharma wrote: I know we can a propert

Re: Struts2 select tag with multiple enabled

2009-04-16 Thread Terry Gardner
fmrTenant.getTerminationReason should return a String, not an array? On a different subject, consider using generics: public List getRejectionReasons() { return this.rejectionReasons; } private List rejectionReasons; On Apr 16, 2009, at 9:45 AM, Bhaarat Sharma wrote: I am using a select ta

Re: hi,guys! I wonder the validation framework is ok in the Struts 2.1.6 .

2009-04-14 Thread Terry Gardner
yes. On Apr 13, 2009, at 1:15 AM, 白鹏 wrote: Has anyone use the validation framework of struts 2.1.6?? ?? == terry.gard...@sun.com Blog: http://blogs.sun.com/terrygardner Blog: http://dtfar.blogspot.com Twitter: http://twitter.com/tgardner SLAMD: http://slamd2.dev.java.net Skype: Terry

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Terry Gardner
no tool to do that, It has to be manually split into different properties file based on either package or action class as specified by Terry.. ~Muthu Terry Gardner-2 wrote: .properties file can be looked up based on the current Action, or a hierarchy is used to search for a key. If the Action

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Terry Gardner
.properties file can be looked up based on the current Action, or a hierarchy is used to search for a key. If the Action is named EnterEmployeeAction, then the .properties files are all preceded by EnterEmployeeAction, viz, EnterEmployeeAction_en.properties, and so forth. There is also a pa

Re: create personal interceptor

2009-04-08 Thread Terry Gardner
classes names should begin with upper-case letters, like "public class ConvMese". - Java "ifs" should have braces, even if they are only one-liners On Apr 8, 2009, at 5:52 AM, PEGASUS84 wrote: ok but i must use personal interceptor for my project Terry Gardner-2 wrote:

Re: create personal interceptor

2009-04-07 Thread Terry Gardner
I think you can use date formatters in java.text to accomplish this with no coding. On Apr 7, 2009, at 6:36 PM, PEGASUS84 wrote: I want create an interceptors wich converts the list of select tag mese in another string:1,2... i make this: package bean; import com.opensymphony.xwork2.Act

Re: OGNL Debug?

2009-04-07 Thread Terry Gardner
OGNL should catch the underlying log levels, try setting that to debug or DEBUG or whatever. On Apr 7, 2009, at 9:03 AM, Security Management wrote: Is there a way to turn on debugging for OGNL for struts 2? I have a form field that is not getting set on my action's object, and one that wo

Re: [Help] How to pass the parameter of an Interceptor to the Action??

2009-04-06 Thread Terry Gardner
); System.out.println("Intercept() ok!"); * return Action.LOGIN; // Login.action , I want to pass the redirectUrl to the Login.action. How to do ???* } } == Terry Gardner terry.gard...@sun.com "Vulcans never bluff." -- Spock ---

Re: Configuration reloading problem

2009-04-05 Thread Terry Gardner
From org.apache.struts2.dispatcher.Dispatcher. On Apr 3, 2009, at 12:39 AM, vishalj wrote: How to i get access to ConfigurationManager in action class -- View this message in context: http://www.nabble.com/Configuration-reloading-problem-tp22861783p22861783.html Sent from the Struts - User