Re: NPE accessing Resources

2003-03-22 Thread Adam Sherman
On Saturday, March 22, 2003 21:21:14 -0800 "David M. Karr" <[EMAIL PROTECTED]> wrote: >> Ok, try doing this with plain Struts (to remove variables), let's see a >> page that demonstrates this problem, and perhaps your struts-config.xml >> file. If you can set this up in your debugger

Re: NPE accessing Resources

2003-03-22 Thread Adam Sherman
On Saturday, March 22, 2003 12:26:45 -0800 "David M. Karr" <[EMAIL PROTECTED]> wrote: Ok, try doing this with plain Struts (to remove variables), let's see a page that demonstrates this problem, and perhaps your struts-config.xml file. If you can set this up in your debugger, trace the setting an

Re: NPE accessing Resources

2003-03-22 Thread David M. Karr
> "Adam" == Adam Sherman <[EMAIL PROTECTED]> writes: Adam> --On Saturday, March 22, 2003 12:26:45 -0800 "David M. Karr" Adam> <[EMAIL PROTECTED]> wrote: >> Ok, try doing this with plain Struts (to remove variables), let's see a >> page that demonstrates this problem, and perh

Re: Internationalization of string with embedded link?

2003-03-22 Thread Dolf Starreveld
In a mail from 13:44 +1200 3/23/03 Jason Lea wrote: Dolf pointed out this doesn't solve the problem due to the use of the on his jsp page. After looking around I have learnt something new :) and have found a solution (using Java Servlet 2.3 and JavaServer Pages 1.2 eg Tomcat 4+.) You can use

Re: NPE accessing Resources

2003-03-22 Thread Adam Sherman
--On Saturday, March 22, 2003 12:26:45 -0800 "David M. Karr" <[EMAIL PROTECTED]> wrote: Ok, try doing this with plain Struts (to remove variables), let's see a page that demonstrates this problem, and perhaps your struts-config.xml file. If you can set this up in your debugger, trace the setti

Re: Validation - Require One of Multiple Fields

2003-03-22 Thread Jeff Kyser
I think the requiredIf is still your best bet. I think based on other recent posts, that the variable names have been changed to support javascript, but that code may still be up to you to write. -jeff On Saturday, March 22, 2003, at 09:11 PM, Joey Ebright wrote: Thanks, but that is for makin

Re: Validation - Require One of Multiple Fields

2003-03-22 Thread Joey Ebright
Thanks, but that is for making sure two fields are the same - I have mastered that one... What I am after is making sure at least 1 of a group of fields has a value filled in. I don't care which one so long as at least one field is filled in... Dan Tran wrote: http://jakarta.apache.org/strut

Re: Internationalization of string with embedded link?

2003-03-22 Thread Jason Lea
Dolf pointed out this doesn't solve the problem due to the use of the on his jsp page. After looking around I have learnt something new :) and have found a solution (using Java Servlet 2.3 and JavaServer Pages 1.2 eg Tomcat 4+.) You can use the JSTL & Struts-EL (expression language)... You c

Re: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Dan Allen
Marco Tedone ([EMAIL PROTECTED]) wrote: > Thank you Dan, your suggestions are inviting...In which cases can you use > BeanUtils.copyProperties? Sorry for that question, I hadn't time to go > trough the documentation, so If you can give me some insights, otherwise > I'll wait until I'll have some

RE: [TILES] Inserting a definition in an other definition ?

2003-03-22 Thread Tai Nguyen
Lionel, The short answer to your question is yes. Not only is this possible, but I can't imagine a good design that doesn't do this. Nesting of definitions is one of the most powerful features of Tiles. However, you have a small syntax error in that your default definition refers to the content

RE: images in html buttons

2003-03-22 Thread Tai Nguyen
Wayne, You can use standard HTML to render your button, but you lose the advantages of automatic context path maintenance. Is there a specific reason you don't want to use buttons? Tai -Original Message- From: Wayne A Christian [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 1

RE: Nesting tile definitions

2003-03-22 Thread Tai Nguyen
Kevin, To make an attribute available to a nested tile you need to pass it along when you call the tile. For example: Where beanName is the name of the attribute you want to pass and name is what you want to pass it as and scope is tile context. In your case, you would also

RE: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Marco Tedone
Thank you Dan, your suggestions are inviting...In which cases can you use BeanUtils.copyProperties? Sorry for that question, I hadn't time to go trough the documentation, so If you can give me some insights, otherwise I'll wait until I'll have some more time and will investigate on the BeanUtils.co

RE: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Marco Tedone
Thank you Robert, I tried and it works. Marco > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 22, 2003 11:19 AM > To: Struts Users Mailing List > Subject: RE: Retrieving properties from a DynaValidatorForm > > > Marco, you should be able to

RE: Searching the Struts Mail List Archive

2003-03-22 Thread Tai Nguyen
Occasionally I do. -Original Message- From: Cruz, Edward J. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:50 AM To: Struts Users Mailing List Subject: RE: Searching the Struts Mail List Archive Has anyone been getting a Bad Gateway Error when trying to use the second search

RE: struts-config.xml

2003-03-22 Thread Tai Nguyen
Tell me about it! ClearCase XML merges are completely useless. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 2:23 AM To: [EMAIL PROTECTED] Subject: RE: struts-config.xml I work with ClearCase and WSAD 4.0.3 and can tell you that mergin

RE: Validation and Reset

2003-03-22 Thread Tai Nguyen
Jeremy, This is because your image button is a submit button, regardless of what the text on it may say. The link you provided didn't say anything about reset methodology so I'm not sure what you are referring to there, but the easiest way to avoid triggering the validate method is to not submit

Re: Internationalization of string with embedded link?

2003-03-22 Thread Jason Lea
This can be done in Struts using the MessageResources: Struts Tip #4 - Formatting output with MessageResources http://husted.com/struts/tips/004.html also have a look at the Java Internationalization Tutorial's page http://java.sun.com/docs/books/tutorial/i18n/format/messageFormat.html You can use

Re: Internationalization of string with embedded link?

2003-03-22 Thread David M. Karr
> "Dolf" == Dolf Starreveld <[EMAIL PROTECTED]> writes: Dolf> On a struts based JSP is need to output something like: Dolf> To do x, click Dolf> means that words needs to be a link. Without using resource (and Dolf> internationalization), it would look like: Dolf> To do

Internationalization of string with embedded link?

2003-03-22 Thread Dolf Starreveld
On a struts based JSP is need to output something like: To do x, click means that words needs to be a link. Without using resource (and internationalization), it would look like: To do x, click here Without internationalization 100% OK, it would become: here click=To do x, click The pro

Re: NPE accessing Resources

2003-03-22 Thread David M. Karr
> "Adam" == Adam Sherman <[EMAIL PROTECTED]> writes: Adam> --On Friday, March 21, 2003 21:53:10 -0800 "David M. Karr" Adam> <[EMAIL PROTECTED]> wrote: >> What version of Struts are you using? If you're not using the nightly >> build, try that. There is a known bug with "html

Re: JSTL Question

2003-03-22 Thread David Graham
This is not a JSTL list. Please post your question to http://forum.java.sun.com/forum.jsp?forum=45 David From: "Navjot Singh" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users List" <[EMAIL PROTECTED]> Subject: JSTL Question Date: Sat, 22 Mar 2003

Re: [TILES] Inserting a definition in an other definition ?

2003-03-22 Thread Thomas CORNET
You can also check out this URL : http://jakarta.apache.org/struts/userGuide/struts-tiles.html#put Thomas At 18:31 22/03/2003, you wrote: Subject: Re: [TILES] Inserting a definition in an other definition ? > > > > I think this is the right place to extends the definition.

Re: [TILES] Inserting a definition in an other definition ?

2003-03-22 Thread Thomas CORNET
If you look at the DTD of the tiles-def.xml (http://jakarta.apache.org/struts/dtds/tiles-config.dtd), you can see this portion : --- -- so accordingly to the DTD, what you can put as attribute can be a string (implied if type is not defined), page, template or definition. Thus

Re: [TILES] Inserting a definition in an other definition ?

2003-03-22 Thread Lionel Roux
Subject: Re: [TILES] Inserting a definition in an other definition ? > > > > I think this is the right place to extends the definition. It's > working just like Java Classes, your 'content' definition inherits all > 'default' definition's attribute. Have you already tried something like this

Re: [TILES] Inserting a definition in an other definition ?

2003-03-22 Thread Thomas CORNET
I think this is the right place to extends the definition. It's working just like Java Classes, your 'content' definition inherits all 'default' definition's attribute. Have you already tried something like this ?? Thomas At 17:45 22/03/2003, you

Re: NPE accessing Resources

2003-03-22 Thread Adam Sherman
--On Friday, March 21, 2003 21:53:10 -0800 "David M. Karr" <[EMAIL PROTECTED]> wrote: What version of Struts are you using? If you're not using the nightly build, try that. There is a known bug with "html-el:errors" in RC1, that might cause this. Yeah, I noticed this in previous threads and tri

[TILES] Inserting a definition in an other definition ?

2003-03-22 Thread Lionel Roux
Is it possible to insert a definition in an other definition ? Is this possible? Is ther an other better solution ?__ Lionel Roux mail: [EMAIL PROTECTED] cell: +33 6 60 51 49 83 __ This mes

Re: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Dan Allen
> The alternative is to use the request.getParameter("..") method, > which is what I'm doing at present. You definitly don't want to be doing this. First cast your form to a DynaValidatorForm and then case each property as appropriate: String name = (String) form.get("name"); ...however, I hav

Re: tab problem

2003-03-22 Thread Dan Allen
struts struts ([EMAIL PROTECTED]) wrote: > Hi, > Has any one used tabs .As they are client side Javascript . > How does structs which is a server side framework deal with it . > ? > > -thanx for ur inputs Look at the tiles-documentation.war for an example. Dan -- - - - - - - - - - - - -

Passing arguments to Action Class

2003-03-22 Thread Gerrit
Is it bad practice to pass a variable to an Action Class as follows: doSomething.do?var1=x Gerrit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem in invoking Action Class

2003-03-22 Thread Divyanand_Gupta
Hi All , I am getting problem in instantiating FormBean. My UI is having one select box and when user select somthing and press continue it invoke an action . But it is not going to action . Here is my struts-config.xml setting . Error is 2003-03-22

StrutsTest issue: java.lang.VerifyError/Signature ( not able to fix this)

2003-03-22 Thread karthik Guru
All, Am not able to fix this error. It occurs only if i try to access any StrutsTest specific methods. ( eg: setRequestPathInfo("/logon");) in my test method. It works just fine in normal cases. thanks, karthik Original Message- From: karthik Guru [mailto:[EMAIL PROTECTED] Sent: Th

Re: tab problem

2003-03-22 Thread struts struts
Hi, Has any one used tabs .As they are client side Javascript . How does structs which is a server side framework deal with it . ? -thanx for ur inputs On Sat, 22 Mar 2003 struts struts wrote : Hello , I have a problem . I have created a sample application in struts and would lik

RE: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Robert Taylor
Marco, you should be able to use the get(). String name = (String)form.get("name"); robert > -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 22, 2003 3:54 AM > To: Struts-user-list > Subject: Retrieving properties from a DynaValidatorForm > > > H

tab problem

2003-03-22 Thread struts struts
Hello , I have a problem . I have created a sample application in struts and would like to include "tabs" in my struts page is there any way I can do this. The problem Iam facing is I have to use struts 1.0 which did not support this can any one help me in telling me what do I need to in

RE: problem with NTLM and ActionForm (including from struts examples), solved

2003-03-22 Thread Budi Rostiarso
solved my own problem, using http://jcifs.samba.org/ -Original Message- From: Budi Rostiarso Sent: Saturday, March 22, 2003 1:56 PM To: Struts Users Mailing List Subject: problem with NTLM and ActionForm (including from struts examples), continued I've also tried in in resin, same probl

Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Marco Tedone
Hi, I'm dealing with DynaValidatorForm. Everything works fine, until I come in the Action after the validation and I need to retrieve my properties. With the standard ActionForm I had simply to cast the right ActionForm type for the parameter 'form' and then access the get/set methods in order to r