RE: Action input

2003-02-26 Thread du Plessis, Corneil C
Create an action that has no input and validate is false. In this action you call validate on the form and check the return value. Then create a forward using request.getRequestURI() if is fails otherwise go to a forward you have defined that matches the request.getRequestURI() or some you can eas

indexed property

2003-02-26 Thread Mohan Radhakrishnan
Hi, Can

Re: CRUD crud using DynaValidatorActionForms?

2003-02-26 Thread Dave Newton
I swear, I'm not stupid, really. I had left out the name attribute in the action configuration so it didn't know what kind of form to create. Duh. Fear not, I'm declaring a moratorium on asking questions for awhile, mostly to save what remaining dignity I have left :) (Well, I am kind of wonderi

RE: Nested:Checkbox

2003-02-26 Thread Arron Bates
nested tags don't like the "name" attribute, becuase they're getting the bean from their parent. In the example, the check is working off the product of the iterate tag anyway. I'm betting the following is what you're after... ...(there was also the closing slash in the checkbox tag, a

Re: struts banking example

2003-02-26 Thread David Graham
I've read online pieces of Ted Husted's book and it seems pretty good. I got plenty of hits on google for "struts tutorial" and there's always the Struts users guide. David From: "joni santoso" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Ma

Re: struts banking example

2003-02-26 Thread Richard Raquepo
http://examples.oreilly.com/jakarta/ - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 12:55 PM Subject: RE: struts banking example > Ive not seen this example myself. Can give us the url? > >

Re: struts banking example

2003-02-26 Thread Richard Raquepo
actually the struts banking example is from a book from oreilly , "Programming Jakarta Struts". - Original Message - From: "joni santoso" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 12:44 PM Subject: Re: struts banking example

Re: struts banking example

2003-02-26 Thread joni santoso
that' the problem :(. i don't even remember where i downloaded it :(. too many tutorials :). try google "struts banking". btw, is there any good tutorials about struts? i read some in developer.com, husted.com, etc. the problem is i think the beginners need to know the skeletons of actionfor

RE: struts banking example

2003-02-26 Thread Andrew Hill
Ive not seen this example myself. Can give us the url? -Original Message- From: joni santoso [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 February 2003 12:44 To: Struts Users Mailing List Subject: Re: struts banking example nope. someone on the list told me already. but, now i wonder w

Re: struts banking example

2003-02-26 Thread David Graham
You mean 123 456 was actually the username/password? I thought they were joking :-). David From: "joni santoso" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: struts banking example Date: Thu, 27 F

Re: struts banking example

2003-02-26 Thread joni santoso
nope. someone on the list told me already. but, now i wonder what the example wants to show? i only see it shows list. nothing like adding, updating, deleting, etc. On Wed, 26 Feb 2003 21:41:25 -0700 "David Graham" <[EMAIL PROTECTED]> wrote: Struts does not supply a banking example app. It's

Re: struts banking example

2003-02-26 Thread David Graham
Struts does not supply a banking example app. It's highly unlikely that anyone on this list will know your username and password to an app we've never seen. David From: "joni santoso" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List"

Re: struts banking example

2003-02-26 Thread joni santoso
ok. thx. On Thu, 27 Feb 2003 12:41:52 +0800 "Richard Raquepo" <[EMAIL PROTECTED]> wrote: 123 456 - Original Message - From: "joni santoso" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 12:10 PM Subject: struts banking example h

Re: struts banking example

2003-02-26 Thread Richard Raquepo
123 456 - Original Message - From: "joni santoso" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 12:10 PM Subject: struts banking example > hi, > > i got a struts banking app example. however, i dont know > the user id and passwor

Re: struts banking example

2003-02-26 Thread joni santoso
i thougt the example already puts the default ones something like oracle's default userid/password. so how do i know the userid/password then? On Wed, 26 Feb 2003 21:26:57 -0700 "David Graham" <[EMAIL PROTECTED]> wrote: No one on this list knows your username and password. David =

Re: struts banking example

2003-02-26 Thread David Graham
No one on this list knows your username and password. David From: "joni santoso" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: struts banking example Date: Thu, 27 Feb 2003 11:10:47 +0700 hi, i got a s

CRUD crud using DynaValidatorActionForms?

2003-02-26 Thread Dave Newton
Hola, I'm playing around with the DynaValidatorActionForm and attempting (perhaps foolishly) to use them to perform CRUD functions using a DispatchAction. I have a DispatchAction that has doCreate, doUpdate, etc. methods in it. I turn off validation in the action's struts-config definition and ca

struts banking example

2003-02-26 Thread joni santoso
hi, i got a struts banking app example. however, i dont know the user id and password. could anyone tell me? regards, === Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui http://toko.pla

RE: checkbox and iterate problem

2003-02-26 Thread Neal
I got it working..Thank you for your assistance. I completely rewrote my code, and instead of using indexed=true, I constructed the property inline using <%= blah %> I'm not sure why I couldn;t get it working the first way, but now it works. Neal > Mine is Collection, so I iterate thru the coll

RE: [Q] can I use ArrayList type for property ?

2003-02-26 Thread Sri Sankaran
Quoting the docs ..Renders an HTML element of type checkbox, whose "checked" status is initialized based on whether the specified value matches one of the elements of the underlying property's array of current values... I'd guess it must be an Object[]. I have used it only with String[]s. Sr

Re: Action input

2003-02-26 Thread Ivan N. Zhidov
I actualy had a similar question before and the answer I came up with was to describe that universal action in struts-config w/o input and forwards, then define the views/jsp pages this action will be called from as global forwards and then use the global forwards aliases as a value passed as param

RE: Nested:Checkbox

2003-02-26 Thread Sri Sankaran
Nothing obvious jumps out. However, have you tried the updated nested jar that Arron made available a few days ago? See http://marc.theaimsgroup.com/?l=struts-user&m=104600916205585&w=2. Sri -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 20

RE: Action input

2003-02-26 Thread Sri Sankaran
If your intent is to re-use the same action class you can simply create an action mapping for each usage. The only thing that has to be unique is the path. Each action mapping can, of course, define it's own input attribute; effectively providing the dynamism you seek. Sri -Original Mess

Re: Internal-only paths

2003-02-26 Thread Kris Schneider
Another thought is to try a security constraint in your web.xml: Private /private/* So if you had an action mapping: Then a client making a request for /app/private/funk.do should receive an error from the container. Or maybe use a servlet filter (requires a Servlet 2.3 con

RE: Action input

2003-02-26 Thread Todd Pierce
Or you could have a custom action for each screen, all exactly the same except for the defined success forward and the input screen -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 February 2003 12:48 PM To: Struts Users Mailing List Subject: Re: Action in

Re: Action input

2003-02-26 Thread Geeta Ramani
Well you could fake it maybe? In one.jsp point your form to action1, in two.jsp point it to action2. However in struts-config.xml just map action1 and action2 both to the same action class with appropriate input fields. This ought to work I think. (And if it doesn't, I already have an excuse..;))

Action input

2003-02-26 Thread harish krishnaswamy
Is there a way of providing the action input in a dynamic fashion? In other words, if I had the same action being submitted from multiple pages/forms, how would I go back to the page/form I came from? __ Do you Yahoo!? Yahoo! Tax Center - forms, calc

Nested:Checkbox

2003-02-26 Thread Chen, Gin
1.1b3 Bug? I have Where associates is the collection in my formbean with each bean in something like: //interface only AssociateVO private boolean selected; public boolean getSelected(); public void setSelected( boolean selected ); And I k

RE: Internal-only paths

2003-02-26 Thread Joe Barefoot
If that doesn't work for ya, I have a really hacky way to do it, but it relies on your using an abstract action superclass that all other actions extend. If you have this, then all you need to do in the superclass's perform method is use an Integer request attribute: check if Integer attrib ex

RE: Internal-only paths

2003-02-26 Thread Karr, David
Gee, I wonder if specifying a "roles" value of "dummy" (a nonexistent role name) would do this. I don't know if a non-redirect forward from an action to an action would go through the RequestProcessor. I have a feeling it wouldn't. If this works, I have a feeling it's a fortunate accident. > --

Internal-only paths

2003-02-26 Thread John Brayton
I am trying to find a way to specify that an Action can only be accessed as a forward from another action. I want to avoid web clients access those actions directly. Does anyone know of a way to do this from, say, the "struts-config.xml" file? John ---

Re: FW: Running unit tests for Validator used with Struts

2003-02-26 Thread otisg
Hello Edgar, I already am using StrutsTestCase to tests Actions I write. I see how that could be used to test whether validation works, but unless I'm missing something testing of custom validators this way would really be just a side-effect of testing Actions. So imagine you have an Action A th

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Marco Tedone
I'm using Jboss connection pooling and access it from a session bean. Marco > -Original Message- > From: David Haynes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 10:12 PM > To: 'Struts Users Mailing List' > Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are peopl

Re: Show or hide fields according to an other field value.

2003-02-26 Thread Paul Thomas
On 25/02/2003 13:09 Heligon Sandra wrote: I would like to know how is it possible to show or hide fields in a Tiles/JSP page according to the check or not of a radio button ? For example at the top of the page I have a radio button with two values:one or more. If the mor

Re: websites that use Struts..

2003-02-26 Thread Daniel Ritchey
A little birdy told me Vignette 7.0 uses Struts. - Original Message - From: "James Prance" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 26, 2003 10:42 AM Subject: websites that use Struts.. > The list on the Apache website, half the links dont work... > does anyo

Tiles: dynamically adding definitions

2003-02-26 Thread John Nikolai
Is it possible to define a few base tiles definitions (loaded using TilesPlugin) and, during runtime, read in other definitions which extend these base definitions? Here is an example use: We have an XML file which defines a web site and used to generate the web site navigation. If we add a ne

Re: Help with optionsCollection error

2003-02-26 Thread Peng Tuck Kwok
Ok here goes : The original method for the attribute recipients was : public void setRecipients(Vector input) That caused the errors of the type mismatch , So I tried changing it to take to array of strings, like this public void setRecipients(String [] one, String [] two) It doesn't compl

Re: websites that use Struts..

2003-02-26 Thread Michael Mok
Try this. It is 100% STRUTS. Other open source technologies used are itext (PDF generator) and castor (Persistance and caching layer to the database). http://www.teatimej.com Logon: guest password: guest Regards Michael Dennis Muhlestein wrote: http://www.datemate.com On Wed, 2003-02-26 a

FW: Running unit tests for Validator used with Struts

2003-02-26 Thread Edgar P. Dollin
> Use StrutsTestCase, http://strutstestcase.sourceforge.net. > It does the whole struts cycle and allows test of all struts > components. > > Edgar > > > -Original Message- > > From: otisg [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, February 26, 2003 4:51 PM > > To: '[EMAIL PROTEC

Re: More Than Form On A JSP

2003-02-26 Thread Andrew Shirk
One method would be to encode the form info into the urls of the next and previous button links. Then in your action, get the request parameters and populate the form. At 02:38 PM 2/26/2003 -0800, you wrote: I am developing an architecture for the rest of my development staff to use on a new J2E

Re: Action Class singleton -- throw away option?

2003-02-26 Thread David Graham
AFAIK, Struts holds onto the instance for the life of the app. You might be able to subclass RequestProcessor and somehow get rid of the instance. David From: "Shackelford, John-Mason" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EM

RE: checkbox and iterate problem

2003-02-26 Thread Neal
I'm afraid you've lost me, I thought the propery HAD to be boolean for a checkbox. Can you please send me a code snippet of what you have working (even if its different then what I am trying to do). High level: I just want to read a list a of strings items from a DB, and then populate a form with

RE: More Than Form On A JSP

2003-02-26 Thread Raible, Matt
Maybe a tiles controller for the form information at the top? > -Original Message- > From: Art Vandalay [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 3:39 PM > To: Struts Mailing List > Subject: More Than Form On A JSP > > > I am developing an architecture for the rest o

More Than Form On A JSP

2003-02-26 Thread Art Vandalay
I am developing an architecture for the rest of my development staff to use on a new J2EE project starting next month. I have the following situation: A JSP contains a form which allows the user to lookup a list of information. For example, if you enter an SSN the JSP will display some demographi

[Q] can I use ArrayList type for property ?

2003-02-26 Thread michael . korolyov
Hello, what types allowed for property ? Best Regards. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Action Class singleton -- throw away option?

2003-02-26 Thread Shackelford, John-Mason
Does Stuts provide a mechanism to instantiate & throw away instances of an action class rather than keeping them around singleton style? I assume the logic for this is part of the Action Servlet. Are there multiple implemenations available. Are other Struts users using a throw-away style action cla

Re: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Vic Cekvenich
My DAO's DBCP-standalone works with Tomcat; and you can switch to JNDI pool. Source: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/src/basicWebLib/org/apache/basicWebLib/DAO/BasicDAOImpl.java .V David Haynes wrote: After working on this for most of the day, I have discovere

RE: checkbox and iterate problem

2003-02-26 Thread pqin
Mine is Collection, so I iterate thru the collection and set "false" (String) to each checked. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Neal [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 5:20 PM To: [

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
Sorry, make sure top use commons-dbcp and pooling in tomcat's common/lib. Since Tomcat JNDI is tomcat's not struts'. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: F

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Raible, Matt
I use Tomcat's JNDI database, not struts - my config is below. Make sure that classes12.jar is in common/lib. Matt web.xml DB Connection jdbc/mydb javax.sql.DataSource Container webapps/mycontext.xml factory o

RE: checkbox and iterate problem

2003-02-26 Thread Neal
I changed everything from boolean (primative) to Boolean (Object type), no difference I still see the same behavior. After submit my setter function is not called. but for a non-indexed checkbox it is called. However the getter() is always called. Neal > try Boolean.FALSE (Object) instead of fal

Re: JUnit Error

2003-02-26 Thread otisg
I don't have a solution, but I saw this, too, but only when running JUnit tests from Eclipse. When I run them from Ant I did not see this problem. Otis On Wed, 26 Feb 2003, Curtney Jacobs ([EMAIL PROTECTED]) wrote: > Greetings everyone!! > > I don't understand why I am receiving the foll

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
Make sure commons-dbcp and pooling are not in your common/lib, use tomcat's. Besides, I don't use struts datasource, I use Tomcat JNDI datasource and pooling. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Davi

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread David Haynes
I'm setting up named data sources with the following: In my Action, I reference this as: DataSource ds = getDataSource(req, "eha"); Tomcat re

RE: monkey tree - must be session-based?

2003-02-26 Thread Edgar Dollin
> Question about session access. No idea... > > Question about multiple browsers in a single session: > > Put a sequence number in your form and your jsp. Similar to > the one struts puts in the session. I don't like that one > since it really restricts the user movement, i.e. they can't >

FW: websites that use Struts..

2003-02-26 Thread Edgar Dollin
> -Original Message- > From: Edgar Dollin > Sent: Wednesday, February 26, 2003 5:01 PM > To: 'Raible, Matt' > Subject: RE: websites that use Struts.. > > > They are going to have to switch to extension mapping when > they upgrade :-}... > > > -Original Message- > > From: Raib

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Raible, Matt
I'm working fine with: Tomcat 4.1.18 (+ DBCP Connection Pool) Struts 1.1-rc1 Oracle 9i Servers: Win2K, Red Hat 8, Solaris 8 What's the bug you're referring too? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 2:55 PM > To: [E

RE: jstl and collection sizes

2003-02-26 Thread David Graham
The spec doesn't require empty to work for Collections but the jakarta implementation seems to work with them. David From: "Jerome Jacobsen" <[EMAIL PROTECTED]> Reply-To: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: jstl and colle

Nested tags

2003-02-26 Thread Sloan Seaman
How do I pull this off? I'm guessing I have to do something with nested tags but I'm not sure what. Thanks! -- Sloan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
What is the bug that you discovered? Mine works just fine. Tomcat 4.1.18 Struts 1.1-rc1 Oracle 8i Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: David Haynes [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 4

JUnit Error

2003-02-26 Thread Curtney Jacobs
Greetings everyone!! I don't understand why I am receiving the following failure from JUnit. I am pretty sure that my log4j.xml file is properly constructed. I have checked the archive and someone did post a similiar question, however, there was no reply. If you know the cause and solution to

Re: Struts and Portlets

2003-02-26 Thread Jim Bonanno
I am glad to see the interest in supporting Struts applications in a Portal Server. I worked on adding support for Struts in WebSphere Portal, which added the ability to create Struts applications that can be deployed in WebSphere Portal. We encountered some relatively minor changes that could be m

Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread David Haynes
After working on this for most of the day, I have discovered that Tomcat 4.1.18 and DBCP do not play well together. There is a bug against Tomcat for this (I have *got* to remember to check the bugs databases sooner ;-) ), but no analysis or corrective action has been recorded to date. So, my que

RE: jstl and collection sizes

2003-02-26 Thread Jerome Jacobsen
Woops. In addition to java.util.List it works on java.util.Map and arrays and java.lang.String. But still not on other java.util.Collection types :( > -Original Message- > From: Jerome Jacobsen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 4:21 PM > To: Struts Users Mail

RE: jstl and collection sizes

2003-02-26 Thread Jerome Jacobsen
That only works if the Collection is a List. If it isn't a List you can do ${myCollection["empty"]}. Not allowing ${empty myCollection} for non-Lists is odd, but that's what the spec says. There's a thread about this oddity in taglibs-user. http://shorl.com/dapofrypragragu > -Original Me

Re: jstl and collection sizes

2003-02-26 Thread John Thorhauer
On Wed, 2003-02-26 at 16:07, David Graham wrote: > I've created a simple wrapper to get the exact size but if you just want to > know if the collection has an item in it you can do this: > > ... > bingo!! that is what i was looking for. thanks, john -

Re: posible remove ![CDATA[]] from validator-rules?

2003-02-26 Thread David Graham
Why can't you use the CDATA section? David From: "Adolfo Miguelez" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: posible remove ![CDATA[]] from validator-rules? Date: Wed, 26 Feb 2003 20:13:49 + Hi All, I am trying to implement

Re: jstl and collection sizes

2003-02-26 Thread David Graham
I've created a simple wrapper to get the exact size but if you just want to know if the collection has an item in it you can do this: ... David From: John Thorhauer <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]>

RE: jstl and collection sizes

2003-02-26 Thread Raible, Matt
A workaround that I've used (b/c I don't think you can get the size) is to add a getter to a form that contains the collection. public String getCollectionSize() { return collection.size(); } > -Original Message- > From: John Thorhauer [mailto:[EMAIL PROTECTED] > Sent: Wednesday,

RE: jstl and collection sizes

2003-02-26 Thread Jerome Jacobsen
You can't AFAIK. Some people do this: Or this: If you want to set a scoped variable to the size of the collection I'd recommend the bean:size approach. > -Original Message- > From: John Thorhauer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 3:51 PM > To: Struts Use

Re: Netscape 4.7x and Struts performance problems

2003-02-26 Thread Steve Stair
Another problem I've seen that occurs using Netscape 4.7x (and possibly later versions as well) but does NOT occur using IE: Netscape, while waiting for a server response, does a busy wait. So if you are doing development on a box running both the web/app server and the browser, Netscape will use

RE: [Q] how to know which one? java.lang.IllegalArgumentException : argument type mismatch

2003-02-26 Thread michael . korolyov
Hello, I think that problem is - multibox in my jsp: in my Form: public ArrayList getGuaranteeItems() { return guaranteeItems; } public void setGuaranteeItems(ArrayList guaranteeItems) { this.guaranteeItems = guaranteeItems; } private ArrayList guaranteeItem

RE: [OT] DTD URL in web.xml

2003-02-26 Thread Sri Sankaran
Well, I just had a D'Oh-moment! While upgrading to Struts 1.1, I had upgraded my web.xml gleefully using the example apps as inspiration. Therein lies the rub -- the example apps assume that you are on a Servlet 2.3 container. However JRun 3.1 is not; it is downright prehistoric. (I have sinc

jstl and collection sizes

2003-02-26 Thread John Thorhauer
I am trying to figure out how to get the size of a collection using the JSTL Expression Language. Is this possible? I have read the lists and it appears that you can not do it without some kind of collection wrapper. Is this correct. Thanks, John -- ** John Tho

RE: [Q] how to know which one? java.lang.IllegalArgumentException : argument type mismatch

2003-02-26 Thread Jarnot Voytek Contr AU HQ/SC
What does your ReportForm look like? -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 2:47 PM > To: [EMAIL PROTECTED] > Subject: RE: [Q] how to know which one? > java.

RE: [Q] how to know which one? java.lang.IllegalArgumentException: argument type mismatch

2003-02-26 Thread michael . korolyov
Hello, based on stack trace - I don't see any calls to my classes at all. I use ReportForm extends ValidatorForm. java.lang.IllegalArgumentException: argument type mismatch at java.lang.reflect.Method.invoke(Native Method) at org.apache.commons.beanutils.PropertyUtils.setSimplePro

RE: [OT] DTD URL in web.xml

2003-02-26 Thread Wendy Smoak
Geeta wrote: > You know I *vaguely* remember an error like this and I *think* we resolved it by > changing 2_3.dtd to 2_2.dtd or some such > thing.. So maybe you may want to check that..? Long shot, i agree..;) This doesn't seem to be just Struts... all of the sudden as I work on my Struts webap

Re: [OT] DTD URL in web.xml

2003-02-26 Thread Craig R. McClanahan
On Wed, 26 Feb 2003, Sri Sankaran wrote: > Date: Wed, 26 Feb 2003 15:17:17 -0500 > From: Sri Sankaran <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts-User <[EMAIL PROTECTED]> > Subject: [OT] DTD URL in web.xml > > Does the servlet container actually acc

Re: [OT] DTD URL in web.xml

2003-02-26 Thread Geeta Ramani
You know I *vaguely* remember an error like this and I *think* we resolved it by changing 2_3.dtd to 2_2.dtd or some such thing.. So maybe you may want to check that..? Long shot, i agree..;) Geeta Sri Sankaran wrote: > Does the servlet container actually access the location specified for the D

RE: [Q] how to know which one? java.lang.IllegalArgumentException: argument type mismatch

2003-02-26 Thread James Mitchell
Can you provide more details? Specifically, your DynaActionForm declaration. If you've subclassed, can you show that as well? -- James Mitchell Software Developer Struts Technical Support A division of The Apache Software Foundation (ok, not really ;) http://www.apache.org/struts > -O

[OT] DTD URL in web.xml

2003-02-26 Thread Sri Sankaran
Does the servlet container actually access the location specified for the DTD in the DOCTYPE statement of the web.xml? Couple of reasons for this question: * JRun 3.1 is having heartache with my app that I just ported to Struts 1.1. It throws a ServletException with the message External ent

[Q] how to know which one? java.lang.IllegalArgumentException: argument type mismatch

2003-02-26 Thread michael . korolyov
hello, I'm getting: Root cause of ServletException java.lang.IllegalArgumentException: argument type mismatch at java.lang.reflect.Method.invoke(Native Method) at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property Utils.java:1789) at org.apache.commons.

posible remove ![CDATA[]] from validator-rules?

2003-02-26 Thread Adolfo Miguelez
Hi All, I am trying to implement customized validator. In validator-rules.xml XML file, we need to define the validator and its assigned javascript validation code for the JSP. The tag is defined as a PCDATA element in the DTD: so we need enclose the function in a CDATASection as ![CDATA[..

Adding parameters dynamically in DispatchAction

2003-02-26 Thread Rick Ashley
Hello, I have a own Action class that is derived from DispatchAction. I have overriden execute method to do some extra tasks. I like to know if it is possible to add couple of new parameters and values inside that execute method so that they will be effective in next forwarded target? e.g. URL b

RE: Action without FormBean

2003-02-26 Thread James Mitchell
Good, sounds like you've got a good start. Let us know if you need further assistance. -- James Mitchell Software Engineer/Struts Evangelist > -Original Message- > From: Chen, Gin [mailto:[EMAIL PROTECTED] > Sent: mercredi 26 février 2003 14:57 > To: 'Struts Users Mailing List' > Sub

RE: Struts and Portlets

2003-02-26 Thread Craig R. McClanahan
On Wed, 26 Feb 2003, Mete Kural wrote: > Date: Wed, 26 Feb 2003 11:08:59 -0800 (PST) > From: Mete Kural <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: Struts and Portlets > > > JSR168 has not yet go

Re: Upload and BeanUtils problem

2003-02-26 Thread Geeta Ramani
Ok, so remove the jar from the tomcat/server/lib, rebuild and restart.. I'm not sure if this is the best solution (if indeed it is one) but see if this at least gets you going.. Good luck! Geeta Sébastien Col wrote: > I have the beanutils.jar in the tomcat/server/lib, and in the WEB-INF/lib of >

RE: Action without FormBean

2003-02-26 Thread Chen, Gin
Yea JavaScript is the only way to go right now. I invoke a javascript function to populate hidden fields during the onclick. If you have a better id (other than going away from struts for this page :-/) plz let me know. -Tim -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]

RE: Upload and BeanUtils problem

2003-02-26 Thread Sébastien Col
I have the beanutils.jar in the tomcat/server/lib, and in the WEB-INF/lib of my application.war file. If I don't have it in my war file, I have an exception when I try to access my index.jsp page. It can't find the Bean Message (application resources file for internationalization). I don't know wh

RE: checkbox and iterate problem

2003-02-26 Thread pqin
try Boolean.FALSE (Object) instead of false (which is a primitive type). Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 2:04 PM To: [EMAIL PRO

RE: Action without FormBean

2003-02-26 Thread Dennis Muhlestein
Use an image instead of a form button?? ie: -Dennis On Wed, 2003-02-26 at 11:48, Chen, Gin wrote: > *This message was transferred with a trial version of CommuniGate(tm) Pro* > Hi James, > I did use links before. But they want to see buttons instead of href > links. > D*mn users. ;P > -Ti

Re: Upload and BeanUtils problem

2003-02-26 Thread Geeta Ramani
Ok, so you are now sure that beanutils.jar is in just one place? If you are, rebuild everything (make sure the old compiled classes are thrown away), restart tomcat and try again. Geeta Sébastien Col wrote: > Thanks for your answer. I re-installed Tomcat, effectively I had the > beanutils jar tw

RE: Upload and BeanUtils problem

2003-02-26 Thread Sébastien Col
Thanks for your answer. I re-installed Tomcat, effectively I had the beanutils jar twice in the tomcat directories. Then I still have the same problem. I have the beanutils jar in my .war otherwise I have an exception when I try to access my web application. Any idea? Sebastien -Message d'or

Re: [OT] database access philosophy

2003-02-26 Thread Kirby Vandivort
I've been looking into ResultSetDynaClass as well as something that Ted posted a while back: http://www.mail-archive.com/[EMAIL PROTECTED]/msg14919.html where he makes a collection out of a result set. My problem, though, is that some code that we've got that accesses result sets uses the colum

Re: websites that use Struts..

2003-02-26 Thread Dennis Muhlestein
http://www.datemate.com On Wed, 2003-02-26 at 08:42, James Prance wrote: > *This message was transferred with a trial version of CommuniGate(tm) Pro* > The list on the Apache website, half the links dont work... > does anyone know of some websites out there on the old 'interweb' that are > current

RE: Running example app on Websphere 4.0

2003-02-26 Thread Hajratwala, Nayan (N.)
I'm not sure that it matters, but does "lib" have to be lowercase, i.e. /WEB-INF/lib? --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: Shkolnik, Mike [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 6:02 PM To: 'Struts Users Maili

Re: Upload and BeanUtils problem

2003-02-26 Thread Geeta Ramani
Hi Sébastien: A "NoClassDefFoundError" is different from a "ClassNotFoundError". The time I got an error similar to yours was when I had placed one of the required jars in more than one place. So check your classpath and every place where a compiler would look for classes/jars and make sure your

RE: Struts and Portlets

2003-02-26 Thread Mete Kural
> JSR168 has not yet gone to community draft, so the > only folks who would > have such a document are EG members. You can get > the current status of > the JSR at: > http://jcp.org/en/jsr/detail?id=168 On this page, it says that the public draft is scheduled for March 2003 and the final draf

Decoupling custom Validators from Struts

2003-02-26 Thread otisg
Hello, All the Validator examples that I have seen seem to be tightly couples with Struts. For instance, most validateXXX(...) methods takes the following types as parameters: Object ValidatorAction Field ActionErrors HttpServletRequest Because of presence of ActionErrors, this is tight

RE: checkbox and iterate problem

2003-02-26 Thread nkstruts
I have a Reset method, and I am calling mFolders[i].setChecked(false) for each item in my array. Is that what you mean by setting the default value ? If so, it hasn't fixed my problem. Thanx > Have to set default value in reset method. > > Regards, > > > PQ > > "This Guy Thinks He Knows Everythi

  1   2   3   >