RE: Server detection of Javascript enabled?

2003-02-14 Thread Alvarado, Juan (c)
There is a getJavaScriptEnabled method in that component that will tell you if javascript is enabled or not. It definetely does have to send some javascript to the browser in order to perform some tests and detect if it is enabled. But the bottom line is it tells you if javascript is enabled or

RE: Cache

2003-02-13 Thread Alvarado, Juan (c)
We have used the following as a means of expiring pages. This way when the user hits the back button they will get a page has expired message. controller locale=true nocache=true processorClass=your.processor.subclass -Original Message- From: Gus Delgado [mailto:[EMAIL PROTECTED]] Sent:

RE: Cache

2003-02-13 Thread Alvarado, Juan (c)
11:55 AM To: Struts Users Mailing List Subject: Re: Cache Juan Could you be a little more specific... I'm not familiar with controller Where does it actually go and what would my processor subclass be? Thanks... Alvarado, Juan (c) wrote: We have used the following as a means

RE: Cache

2003-02-13 Thread Alvarado, Juan (c)
using Struts 1.0.2, and the RequestProcessor is not part of that version. -Gus Alvarado, Juan (c) wrote: Yeah sure I apologize for not being more detailed. It goes in your struts-config file. I have mine right after the action mappings, but it might not matter where you put it. Your subclass would

RE: How to link to an Action which has no Form.

2003-02-13 Thread Alvarado, Juan (c)
1.1 B3 does take a definition name in the parameter attribute. We've tested and it worked for us. -Original Message- From: Peterkofsky, Don [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 2:37 PM To: 'Struts Users Mailing List' Subject: RE: How to link to an Action which has

RE: Server detection of Javascript enabled?

2003-02-13 Thread Alvarado, Juan (c)
These people http://www.browserhawk.com/ have some products that will do what you want. I'm not sure if you're willing to fork out the $$$, but I thought I'd run it by you anyways. If you don't want to spend the dough, I think the suggestion James Childers gave you might be an approach to take.

RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
I would suggest you read up on the usage of the LookupDispatchAction again. It was not designed to to be used in the way you are trying to use them. Take a look at this site http://husted.com/struts/index.html. It has some good suggestions on the correct usage of the action classes that come with

RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
without either having a plain .html page as the inital page or having 2 .jsp pages. Niether solution is good. Alvarado, Juan (c) [EMAIL PROTECTED] wrote:I would suggest you read up on the usage of the LookupDispatchAction again. It was not designed to to be used in the way you are trying to use them

RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
of the submit buttons yet -- they haven't even seen the page. How do I get the page to display initially? Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay can you please tell me what exactly it is you're trying to accomplish??? I don't quite get what your ultimate goal is. Thanks -Original Message

RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
login IS NOT a LookupDispatchAction. It is an Action. It is the page that login forwards to that is a LookupDispatchAction. But that page never displays because there is no value for the submit parameter in this case. Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay this is one way of doing

RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 1:33 PM To: 'Struts Users Mailing List' Subject: RE: LookupDispatchAction Question Can you show me

RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
: LookupDispatchAction Question Alvarado, Juan (c) wrote: From a design point of view, forwarding from one action to another action should be examined closely. It should be the exception rather than the rule. -1. You allways do that, like I have processed this page, go to another page. .V I would

RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
. But, there are those out there that do find need for it. Until I am in there shoes I'll say, To each his own. Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]] Sent

RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 2:54 PM To: 'Struts Users Mailing List' Subject: RE: LookupDispatchAction Question Yeah I've never chained

RE: Where should database select go for select dropdown

2003-02-04 Thread Alvarado, Juan (c)
Be careful about putting database access code right in your action. This would not constitute a proper design of an application. If you are new to struts and are in the process of learning, then you should get in the habit of doing things right from the get go. A more correct approach is to have

Use of multiple struts-config files -- HELP

2003-01-23 Thread Alvarado, Juan (c)
I have the following configuration in my web.xml: servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name

Multiple struts-config files

2003-01-23 Thread Alvarado, Juan (c)
Folks: I am trying to take advantage of using multiple configuration files and I can't get past this simple step. -- Below is a snippet of web.xml servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class

RE: Making a Form non-editable

2003-01-21 Thread Alvarado, Juan (c)
No as far as I know the form tag doesn't have that type of attribute. Be careful using the disabled attribute on the other html tags because I believe that any form element with disabled=true will not be submitted with the form submission. I have used javascript in the past to accomplish this

RE: server side validation

2003-01-16 Thread Alvarado, Juan (c)
http://home.earthlink.net/~dwinterfeldt/ -- Read the very first sentence. One word of advise: Before you post to this list, make sure that you do some research into what you are looking for and that you are not looking to be spoon fed the answers to your questions. If you bother to do a search

RE: LookupDispatchAction

2003-01-15 Thread Alvarado, Juan (c)
This is something I have done from an onchange event in my forms: function loadCompanyInfoByContract(objForm){ objForm.userAction.value = bean:message key='prompt.load.contracts'/; objForm.action = %= request.getContextPath()

RE: LookupDispatchAction

2003-01-15 Thread Alvarado, Juan (c)
in my jsp's Any ideas guys From: Alvarado, Juan (c) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: LookupDispatchAction Date: Wed, 15 Jan 2003 12:01:50 -0500 This is something I have done from

RE: LookupDispatchAction

2003-01-15 Thread Alvarado, Juan (c)
to its relevant method in getKeyMethodMap(). I send a paramter and map it in this method??? From: Alvarado, Juan (c) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: LookupDispatchAction Date: Wed, 15 Jan 2003

RE: LookupDispatchAction

2003-01-15 Thread Alvarado, Juan (c)
To: [EMAIL PROTECTED] Subject: RE: LookupDispatchAction Ok so how do i map the href submit to its relevant method in getKeyMethodMap(). I send a paramter and map it in this method??? From: Alvarado, Juan (c) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts

Validator

2003-01-14 Thread Alvarado, Juan (c)
Can anyone explain to me what this regular expression means: ^\d{5}\d*$ -- Zip validation that comes with the validator I thought it meant you could only type in a five digit zip code. Ex: 33634 However, I am allowed to type: 3363455 and that works. Of course, since I am no expert on regular

RE: Validator

2003-01-14 Thread Alvarado, Juan (c)
: Validator Forgot second part, try something like ^\d{5}(-\d{4})?$ -Original Message- From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:49 AM To: 'Struts Users Mailing List' Subject: Validator Can anyone explain to me what this regular

RE: LookupDispatchAction

2003-01-14 Thread Alvarado, Juan (c)
Yes I've done it that way many times and it works. -Original Message- From: Pat Quinn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 3:42 PM To: [EMAIL PROTECTED] Subject: LookupDispatchAction Hi Guys, Can i submit a page using a html HREF (i.e. myLookupAction.do?offset=10)

RE: LookupDispatchAction

2003-01-14 Thread Alvarado, Juan (c)
: Alvarado, Juan (c) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: LookupDispatchAction Date: Tue, 14 Jan 2003 15:42:58 -0500 Yes I've done it that way many times and it works. -Original Message- From: Pat

RE: It lives....

2003-01-13 Thread Alvarado, Juan (c)
I had already wondered a few times what happened to you. Glad to have you back... -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 11:36 AM To: 'Struts Users Mailing List' Subject: It lives Hey guys! Been away from the list for

RE: Validator and LookupDispatchAction

2003-01-10 Thread Alvarado, Juan (c)
What exactly is your problem??? -Original Message- From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 1:05 PM To: Struts User List Subject: Validator and LookupDispatchAction Has anyone got Validator to work with LookupDispatchActions? I don't see

RE: ActionErrors question

2003-01-10 Thread Alvarado, Juan (c)
It sounds to me like the keys that you are using in your action errors are in the non-default message resource file in your application; the one with the key defined. If you don't want to use the bundle attribute in your call to html:errors... I suggest you move those keys to the default message

RE: ActionErrors question

2003-01-10 Thread Alvarado, Juan (c)
? (that design seems out-of-line with the rest of Struts which usually has good separation of functionality) thx -Original Message- From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 15:32 To: 'Struts Users Mailing List' Subject: RE: ActionErrors question

RE: Model Layer question.. where to put BeanUtils.copyProperties (sort of long)

2003-01-08 Thread Alvarado, Juan (c)
Can you register the exceptions that beanutils throws in the struts config??? -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:57 PM To: Struts List Cc: model struts Subject: Model Layer question.. where to put BeanUtils.copyProperties

RE: How does LookupDispatchAction lookup.

2002-12-20 Thread Alvarado, Juan (c)
take a look at this posting. It explains to you how it works. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg51209.html -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 9:28 AM To: '[EMAIL PROTECTED]' Subject: How does

RE: How does LookupDispatchAction lookup.

2002-12-20 Thread Alvarado, Juan (c)
I have had the same issues you are having, and I just went with LookupDispatchAction. I'm not 100% sure if the way I do my apps is the 100% correct way, but what I do is for any button that has white space as its value, I store a key in my ApplicationResources.properties and use that key in

RE: Can you change the form action??

2002-12-20 Thread Alvarado, Juan (c)
You are a perfect candidate for either DispatchAction or LookupDispatchAction. LookupDispatchAction will allow you to avoid javascript. I suggest you take a look at Ted's site http://husted.com (I think) and review his tips on the two actions mentioned above. This post will also help you:

RE: LookupDispatchAction onchange

2002-12-10 Thread Alvarado, Juan (c)
If I remember correctly the LookupDispatchAction does a reverse lookup on your resource bundle in order to determine which method to call in the class. Example: if you have a key in your ApplicationResources.properties called: textfield.changed=submit form then you would obviously need

RE: LookupDispatchAction onchange

2002-12-10 Thread Alvarado, Juan (c)
bean:message key=button.savedetails/ /html:submit obviously theres no Javascript there, shame there isnt some way of doing this with a tag rather than having javascript code to do the submit. Thanks you for your help. -Original Message- From: Alvarado, Juan (c) [mailto:[EMAIL

RE: DynaActionForm problem - IllegalArgumentException: No bean specified

2002-12-10 Thread Alvarado, Juan (c)
I don't believe DynaActionForm supports java.util.Collection. Please correct me if I'm wrong. Thanks -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 11:27 AM To: Struts User Subject: DynaActionForm problem - IllegalArgumentException:

Controller class in tiles

2002-11-26 Thread Alvarado, Juan (c)
My definition looks as follows: definition name=add.application.page extends=layout.page controllerClass=com.nielsenmedia.nam.ui.action.GetApplications put name=body value=/jsps/addApplication.jsp/put put name=page.title value=add.application.title/put /definition my controller class

HELP with controller class please!!!!

2002-11-26 Thread Alvarado, Juan (c)
I've looked all over the archives and cannot find any help with the following and the tiles documentation...well there is really no documentation. I have a controller url class that does the following: public void perform(ComponentContext context,

ApplicationResources.properties not reloading added keys

2002-11-26 Thread Alvarado, Juan (c)
Hi: I am using jboss-3.03 with tomcat 4.05 and I cannot get my ApplicationResources.properties to display newly added keys. I have restarted jboss and still no luck. All I get is a message like this: ???en_US.prompt.application.url??? I know that the file ApplicationResources.properties is under

RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread Alvarado, Juan (c)
use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 4:04 PM To: '[EMAIL PROTECTED]' Subject: ApplicationResources.properties not reloading

RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread Alvarado, Juan (c)
/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26

Help with custom validation please

2002-11-21 Thread Alvarado, Juan (c)
I've written a simple custom validator that is working just fine. However, when the validation returns back to the page to display the error message to the user, all I get is the following: ???en_US.errors.ordersearch??? I know that key errors.ordersearch is in the

RE: How to use bean:write for arrays (String[]) ?

2002-11-18 Thread Alvarado, Juan (c)
have you looked at the struts-el stuff.I think that has everything you need. If not look at the JSTL stuff. That for sure has it -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 7:07 PM To: Struts Users Mailing List Subject: Re: How to

RE: JSP Debug / IDE's

2002-11-14 Thread Alvarado, Juan (c)
Why would you ever want to debug a JSP. I see the need to debug action classes and back end components, but not JSPs. -Original Message- From: edgar [mailto:edgar;blue-moose.net] Sent: Thursday, November 14, 2002 12:58 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's If