RE: Proper place for validation

2004-09-08 Thread Janne Mattila
I guess this is heading more towards the direction of general exception handling and less struts-specific matters now... The problem I have with that is, that with most applications I have been involved with, exceptions that get passed all the way up (meaning they are not caught somewhere in be

Re: tiles ForwardAction

2004-09-08 Thread brenmcguire
Sorry I made a mistake. I should have written this way: --- Wrong, you can ALSO (besides a Tiles definition) forward to a JSP page or to a servlet (used in StrutsCX) or to another action or to nothing at all (e.g. if you build the HttpServletResponse manually). --- That is, you can build the respon

found difficult in displaying hashtable in view

2004-09-08 Thread babu
herewith i enclosed the file which contains the actionclass,form bean,view part in this enclosed file the attachment and url are KEY and VALUE pairs in hashtable ie) which i got from DB. and i've to display these value in textfiled[url] based on the key selected in the html:options. i need h

Re: Gracefully handling invalid paths

2004-09-08 Thread Yves Sy
You can specify it in your web.xml: 404 /error_404.jsp -Yves- On Wed, 8 Sep 2004 20:36:38 -0700 (PDT), Andy Engle <[EMAIL PROTECTED]> wrote: > Hi all, > > I am wondering how I should handle invalid path situations within my > Struts application. I want to be able to have a "

Gracefully handling invalid paths

2004-09-08 Thread Andy Engle
Hi all, I am wondering how I should handle invalid path situations within my Struts application. I want to be able to have a "catch-all" page whenever someone enters an invalid path so that they don't see that ugly Tomcat 404 page. How might I go about doing something like that? Thanks very muc

Re: [OT] Setting up a struts project in IDEA

2004-09-08 Thread Rick Reumann
David Durham wrote: Now you're forced into choosing from their "modules." You can basically almost always just choose the "java module" and then do as you say add what you need.. very easy. So you aren't really 'forced' into anything and can always do things like you were used to. The advantage

Re: Validator exception

2004-09-08 Thread Niall Pemberton
My guess is that you haven't upgraded the validator-rules.xml - the method signature changed with ActionMessages replacing ActionErrors Niall - Original Message - From: "Betty Koon" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, September 09, 20

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
That's because you don't know for how many hours i've been sitting in from of my computer and screamming at it, haha!!! --- Bryce Fischer <[EMAIL PROTECTED]> escreveu: > Then you are doing better than I did. It took me > several iterations to > figure it out. I ended up testing with two differ

Validator exception

2004-09-08 Thread Betty Koon
Hi All, I am getting the following exception from validator by doing a simple check on required field (using struts 1.2.3). I have no clue why this is happening and the stack trace didn't give me any useful info. Please help. Thanks. -Betty 18:28:50,864 ERROR [ValidatorForm] org.apache.struts

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
My appology to the list. Outlook Express and a weak wireless connection confused me and I sent this message multiple times. Langdon > Hi Bill > > Indeed I do have scope set to "session" in struts-config.xml. - To unsubscribe,

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bryce Fischer
Then you are doing better than I did. It took me several iterations to figure it out. I ended up testing with two differnt forms, putting breakpoints in my Converters to figure out what was going on... Leandro Melo wrote: I almost understand it in the other way, haha... Now things are clear!!! -

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
I almost understand it in the other way, haha... Now things are clear!!! --- Bryce Fischer <[EMAIL PROTECTED]> escreveu: > Leandro Melo wrote: > > >I got one doubt in your code when used in a > situation > >that i mentioned (transforming data from action > form > >to dto). > >When date comes

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bryce Fischer
Leandro Melo wrote: I got one doubt in your code when used in a situation that i mentioned (transforming data from action form to dto). When date comes from action form, they usually come in Strings, but in your method you verify value instanceof Date... This will never happen, as the value comes

RE: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
I was taking a look at bean utils source and could see myself how this is done. Then i understood that acutally you use the value instanceof SOMETHING However, the BeanUtilsBean class is quite complex and i didn't have the patience (and the brains) to try to understand it. Anyway, it seems to me

Moving a data object into a map inside a form?

2004-09-08 Thread David Erickson
Hi I've got a custom javabean that I want to move all of its public properties directly into a map held in a form. I've tried BeanUtils.copyProperties(myMap, myObject); as well as PropertyUtils.copyProperties(myMap, myObject); neither seem to do what I want, however if I reverse it for moving data

RE: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
--- Jim Barrows <[EMAIL PROTECTED]> escreveu: > > > > -Original Message- > > From: Leandro Melo > [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 4:28 PM > > To: Struts Users Mailing List > > Subject: Re: ActionForm data type X BeanUtils -> > using Dates > > > > > >

Re: [OT] is strut a good choice in my case.

2004-09-08 Thread James Mitchell
What do you mean? It works just fine as long as you are running Windows 3.1.1 SP8002. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Bill Siggelkow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wed

RE: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 4:28 PM > To: Struts Users Mailing List > Subject: Re: ActionForm data type X BeanUtils -> using Dates > > > I got one doubt in your code when used in a situation > that i mentioned

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
I got one doubt in your code when used in a situation that i mentioned (transforming data from action form to dto). When date comes from action form, they usually come in Strings, but in your method you verify value instanceof Date... This will never happen, as the value comes in String. Am i s

Re: Easy Struts

2004-09-08 Thread Bill Siggelkow
My apologies -- I wasn't aware of the problem. -Bill Siggelkow Darryl Pierce wrote: On Tuesday 07 September 2004 09:39 am, Bill Siggelkow wrote: Darryl Pierce wrote: On Monday 06 September 2004 07:49 am, James Holmes wrote: As far as I know, Easy Struts does not work with Eclipse 3. Struts Console

Re: is strut a good choice in my case.

2004-09-08 Thread Bill Siggelkow
You are the master -- BTW, how come Struts doesn't work with Flex? ;) James Mitchell wrote: You are such a smart ace!!! Are you taking lessons from me? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Bill

Re: is strut a good choice in my case.

2004-09-08 Thread James Mitchell
You are such a smart ace!!! Are you taking lessons from me? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Bill Siggelkow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 08, 200

RE: Preventing Page Caching

2004-09-08 Thread Jim Barrows
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Irfandhy Franciscus > Sent: Tuesday, September 07, 2004 8:18 AM > To: [EMAIL PROTECTED] > Subject: Preventing Page Caching > > > Hi All, > > I am developing some pages with struts. When I was testing my > pages, I

Preventing Page Caching

2004-09-08 Thread Irfandhy Franciscus
Hi All, I am developing some pages with struts. When I was testing my pages, I realize that if I click the back and forward button, my browser (IE or Firefox) will load the cached page, instead of retrieving the latest data from the database. Is there anyway to prevent this caching, or is there

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Bean tag and session data issue

2004-09-08 Thread Langdon Stevenson
Hi Bill Indeed I do have scope set to "session" in struts-config.xml. When unit testing in debug through IDEA I can see the object in the session being populated step by step, however when I run the compiled web app under Struts with JWebUnit, or a browser, I get the problem. I am up against my

Re: Easy Struts

2004-09-08 Thread Darryl Pierce
On Tuesday 07 September 2004 09:39 am, Bill Siggelkow wrote: > Darryl Pierce wrote: > > On Monday 06 September 2004 07:49 am, James Holmes wrote: > >>As far as I know, Easy Struts does not work with Eclipse 3. Struts > >> Console does though. It provides similar functionality (Easy Struts is > >>

RE: is strut a good choice in my case.

2004-09-08 Thread Jim Barrows
> -Original Message- > From: David Durham [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 2:00 PM > To: Struts Users Mailing List > Subject: Re: is strut a good choice in my case. > > > Bill Siggelkow wrote: > > > Brain spouts sludge > > Mouth obeys brain > > White coat

RE: is strut a good choice in my case.

2004-09-08 Thread Jim Barrows
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow > Sent: Wednesday, September 08, 2004 1:56 PM > To: [EMAIL PROTECTED] > Subject: Re: is strut a good choice in my case. > > > Jim, > If you know what I am saying then we're both in trouble. I am never

Re: is strut a good choice in my case.

2004-09-08 Thread David Durham
Bill Siggelkow wrote: Brain spouts sludge Mouth obeys brain White coats come. I was going to post something about stress testing ... - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 1:51 PM > To: Struts Users Mailing List > Subject: RE: Action Mapping From a JSP to Another JSP (In Trouble > Again!!!) > > > Jim, > > Sorry for bothering so much. My code, m

Re: is strut a good choice in my case.

2004-09-08 Thread Bill Siggelkow
Jim, If you know what I am saying then we're both in trouble. Primarily, I am just being weird. Comes from a combination too much overexposurer to the wild life when I was younger and too much exposure to the family life now that I am older -- in other words, stick a fork in me -- I'm done :)

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
Jim, Sorry for bothering so much. My code, mapping, path, ., etc. are correct. Problem is with the Tomcat server. CJen --- Caroline Jen <[EMAIL PROTECTED]> wrote: > OKay, I see what you mean now. I am a kind of dumb. > > Before I clicked on the link, it shows: > > Manage the > Cont

RE: is strut a good choice in my case.

2004-09-08 Thread Jim Barrows
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow > Sent: Wednesday, September 08, 2004 1:28 PM > To: [EMAIL PROTECTED] > Subject: Re: is strut a good choice in my case. > > > Well, make sure you use more than one Strut -- you will want to scale > the

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 1:28 PM > To: Struts Users Mailing List > Subject: RE: Action Mapping From a JSP to Another JSP (In Trouble > Again!!!) > > > OKay, I see what you mean now. I am a kind of dumb. No

RE: is strut a good choice in my case.

2004-09-08 Thread David G. Friedman
So THAT is how we REALLY setup STRUTS! Duh! (slaps his own forehead). -David -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow Sent: Wednesday, September 08, 2004 4:28 PM To: [EMAIL PROTECTED] Subject: Re: is strut a good choice in my case. Well, make su

RE: Date format woes

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 1:23 PM > To: 'Struts Users Mailing List' > Subject: RE: Date format woes > > > > From a pure JavaBean perspective, a class like: > > > > package com.dotech; > > > > import

Re: is strut a good choice in my case.

2004-09-08 Thread Bill Siggelkow
Well, make sure you use more than one Strut -- you will want to scale the number of Struts to the number of users. For each request, you will have one Strut. Does this make sense? ;) Vitalii wrote: I have a question about struts. I know Strut is good framework for designing a large website. It

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
OKay, I see what you mean now. I am a kind of dumb. Before I clicked on the link, it shows: Manage the Content in the browser. DHSInfo is the name of my application in the $TOMCAT/webapps directory. --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caro

RE: Date format woes

2004-09-08 Thread Slattery, Tim - BLS
> From a pure JavaBean perspective, a class like: > > package com.dotech; > > import java.io.Serializable; > import java.util.Date; > > public class ConfusedBean implements Serializable { > public void setDate(String s) {} > public Date getDate() { return null; } > } > > is seen by Intr

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 1:18 PM > To: Struts Users Mailing List > Subject: RE: Action Mapping From a JSP to Another JSP (In Trouble > Again!!!) > > > The > None of my tiles or content is displayed. I on

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
The wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 1:09 PM > > To: Struts Users Mailing List > > Subject: RE: Action Mapping From a JSP to Another > JSP (In Trouble > > Again!!!) > > > > > > I do not fully und

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 1:09 PM > To: Struts Users Mailing List > Subject: RE: Action Mapping From a JSP to Another JSP (In Trouble > Again!!!) > > > I do not fully understand. Do you want me to actually

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
I do not fully understand. Do you want me to actually code instead of Manage the Content in my links.jsp file? --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 12:45 PM > >

RE: Date format woes

2004-09-08 Thread Kris Schneider
>From a pure JavaBean perspective, a class like: package com.dotech; import java.io.Serializable; import java.util.Date; public class ConfusedBean implements Serializable { public void setDate(String s) {} public Date getDate() { return null; } } is seen by Introspector as (Sun JDK 1.4.

RE: is strut a good choice in my case.

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Vitalii [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 12:52 PM > To: [EMAIL PROTECTED] > Subject: is strut a good choice in my case. > > > I have a question about struts. I know Strut is good > framework for designing a large website. It

RE: Date format woes

2004-09-08 Thread Slattery, Tim - BLS
> You wouldn't happen to have another setter method that > accepts a different type (e.g. Date) would you? > > for example: > > ... > ... > > public void setExpirationDate(Date expirationDate){ > > ... > ... No, only what I posted. -- Tim Slattery [EMAIL PROTECTED] --

is strut a good choice in my case.

2004-09-08 Thread Vitalii
I have a question about struts. I know Strut is good framework for designing a large website. It has a lot of classes that help to design well scaled websites. What about performance? Does it slow the processing of request. if speed is the main issue is it good idea to use strut?if website needs t

RE: Date format woes

2004-09-08 Thread Jim Barrows
> -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 12:46 PM > To: Struts Users Mailing List > Subject: Re: Date format woes > > > You wouldn't happen to have another setter method that > accepts a different > type (e.g. Date) wou

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 12:45 PM > To: Struts Users Mailing List > Subject: RE: Action Mapping From a JSP to Another JSP (In Trouble > Again!!!) > > > I have tried both > > action="/ContentMgmt" and >

Re: Date format woes

2004-09-08 Thread James Mitchell
You wouldn't happen to have another setter method that accepts a different type (e.g. Date) would you? for example: ... ... public void setExpirationDate(Date expirationDate){ ... ... -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
I have tried both action="/ContentMgmt" and action="/ContentMgmt.do"> They do not make any difference. Error message is the same. And it is HTTP Status 400. Nothing gets displayed in the browser but the error message. I tried right-click "View Source". None of my code appears in the "View

Date format woes

2004-09-08 Thread Slattery, Tim - BLS
I've got a page in my Struts web app that displays a date. It uses to read a date from the form bean and format it for display. I also want to put that date into a field so that it can be reloaded when the page is submitted and redisplayed. The getter returns a Date. The tag retrieves also retr

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 11:54 AM > To: Struts Users Mailing List > Subject: RE: Action Mapping From a JSP to Another JSP (In Trouble > Again!!!) > > > Hi, I am in trouble again. > > I am using tiles. I

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
Hi, I am in trouble again. I am using tiles. I have three piece of tiles: upperbar, sidelinks, and lowerbar. All three tiles are displayed with contents shown in the center (toward right hand side) of the web page. Now, I click on one of the links provided in the 'sidelinks' tile and I got th

RE: Action Mapping From a JSP to Another JSP (How to Do Global Forward)

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 10:56 AM > To: Struts Users Mailing List > Subject: RE: Action Mapping From a JSP to Another JSP (How to > Do Global > Forward) > > > Thanks a lot for being around and helping us.

RE: ActionForm with all application attributes

2004-09-08 Thread Leandro Melo
Thanks, i`ll take a look at that in the next days!! --- Jim Barrows <[EMAIL PROTECTED]> escreveu: > > > > -Original Message- > > From: Leandro Melo > [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 10:25 AM > > To: Struts Users Mailing List > > Subject: RE: ActionFor

RE: Action Mapping From a JSP to Another JSP (How to Do Global Forward)

2004-09-08 Thread Caroline Jen
Thanks a lot for being around and helping us. -CJen --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 10:34 AM > > To: Struts Users Mailing List > > Subject: RE: Action Mapping F

RE: Action Mapping From a JSP to Another JSP (How to Do Global Forward)

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 10:34 AM > To: Struts Users Mailing List > Subject: RE: Action Mapping From a JSP to Another JSP (How to > Do Global > Forward) > > > Thanks for your reply and help. > > if I have

RE: ActionForm with all application attributes

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 10:25 AM > To: Struts Users Mailing List > Subject: RE: ActionForm with all application attributes > > > --- Jim Barrows <[EMAIL PROTECTED]> escreveu: > > > > > > > -Origina

RE: Action Mapping From a JSP to Another JSP (How to Do Global Forward)

2004-09-08 Thread Caroline Jen
Thanks for your reply and help. if I have Register In my struts.config.xml file, I should have action mapping like this: What if I do a global forward: Register what kind of mapping should I specify in the struts-config.xml file? --- Caroline Jen <[EMAIL PROTECTED]> wrote: > Thanks

RE: ActionForm with all application attributes

2004-09-08 Thread Leandro Melo
--- Jim Barrows <[EMAIL PROTECTED]> escreveu: > > > > -Original Message- > > From: Leandro Melo > [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 9:48 AM > > To: Struts Users Mailing List > > Subject: RE: ActionForm with all application > attributes > > > > > > Jim,

Re: [OT] How to sort with ?

2004-09-08 Thread Bill Siggelkow
Do it in the business layer that fetches the collection -- or in the database -- or store the data in a sorted collection (like SortedTreeMap or some similar animal). Craig Dickson wrote: Hi, Is there an easy way to have the JSTL forEach tag sort the collection of items before looping through th

RE: strange random problem

2004-09-08 Thread David G. Friedman
How are you doing the database interactions with your MS SQL Server? JDBC with some ODBC connectivity kit or some other way? Regards, David -Original Message- From: calandraca [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 1:04 PM To: Struts Users Mailing List Subject: stra

RE: strange random problem

2004-09-08 Thread Jim Barrows
> -Original Message- > From: calandraca [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 10:04 AM > To: Struts Users Mailing List > Subject: strange random problem > > > Since I have rewrited an important part of my application using struts > I've had this problem several

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bryce Fischer
The custom converter is done independently of the action, form or DTO. First step is to implement the interface org.apache.commons.beanutils.Converter. Keep in mind that the converter you are writing uses the appropriate converter for the original class. So, if you were converting from a String

strange random problem

2004-09-08 Thread calandraca
Since I have rewrited an important part of my application using struts I've had this problem several times. It didn't happen in development environment, with only one or two users using the application at the same time. It happends in production with 20 or 30 users. * Development environment: Debi

RE: [OT] How to sort with ?

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Craig Dickson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 9:51 AM > To: Struts List > Subject: [OT] How to sort with ? > > > Hi, > > Is there an easy way to have the JSTL forEach tag sort the > collection of > items before looping throu

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bill Siggelkow
http://jakarta.apache.org/commons/beanutils/api/index.html Leandro Melo wrote: I also would like to see this "converter" code and how to use it!!! --- Jason King <[EMAIL PROTECTED]> escreveu: Could you point us at some code that does this? Do you customize in the action, the form or the DTO? B

RE: ActionForm with all application attributes

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 9:48 AM > To: Struts Users Mailing List > Subject: RE: ActionForm with all application attributes > > > Jim, all the code i`m talking about is inside a Base > Action Form. It seems

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bill Siggelkow
Kind of being picky here, but I wouldn't switch the property name like that -- instead; since the form field would be a String I would use String getPaymentDateString() {...} in the ActionForm and Date getPaymentDate() {...} in the domain object. Desai, Sunny wrote: BeanUtils.copyProperties() met

[OT] How to sort with ?

2004-09-08 Thread Craig Dickson
Hi, Is there an easy way to have the JSTL forEach tag sort the collection of items before looping through them? Currently I have a scriptlet doing it before the loop tag, but this is pretty ugly. Thanks - To unsubscribe, e-mai

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
I also would like to see this "converter" code and how to use it!!! --- Jason King <[EMAIL PROTECTED]> escreveu: > Could you point us at some code that does this? Do > you customize in the > action, the form or the DTO? > Bryce Fischer wrote: > > > You can register a different converter that

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Jason King
Could you point us at some code that does this? Do you customize in the action, the form or the DTO? Bryce Fischer wrote: You can register a different converter that BeanUtils uses to copy from a string to a date. Write your own converter, using the date format you need, then use ConvertUtils.

RE: ActionForm with all application attributes

2004-09-08 Thread Leandro Melo
Jim, all the code i`m talking about is inside a Base Action Form. It seems the you`re thinking that my code is inside a action, aren`t you?? Maybe a misundertanding, maybe mine, maybe yours. So, i agree with some of your comments, but not on all of thems. In fact, i`m gonna to take a look about th

Re: Proper place for validation

2004-09-08 Thread Michael McGrady
Jim Barrows wrote: -Original Message- From: Janne Mattila [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 3:49 AM To: [EMAIL PROTECTED] Subject: RE: Proper place for validation Hmm, not a lot of comments on this. I guess there is a consensus on the matter (that, or no-one

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bryce Fischer
You can register a different converter that BeanUtils uses to copy from a string to a date. Write your own converter, using the date format you need, then use ConvertUtils.register(...) to register it. That's what I do anyhow. -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTE

RE: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Desai, Sunny
BeanUtils.copyProperties() method does not work with date fields. One needs to copy it manually using DateFormatter ot something. To avoid garbage getting into date variable in domain object, one should name it other way. For example, if domain object has : Date paymentDate; you should rename the

RE: Proper place for validation

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 6:39 AM > To: Struts Users Mailing List > Subject: Re: Proper place for validation > > > Maybe there weren't a lot of comments because people agreed > with Robert. :) > > For yo

Re: Struts XDoclet examples

2004-09-08 Thread David Durham
I should probably post this stuff on XDoclet's list ... David Durham wrote: That's good information; I read it with vigor... As you can tell, I'm excited by the prospects of using XDoclet instead of . And, I think I get the gist of Struts related support provided in XDoclet, but I have a couple

RE: ActionForm with all application attributes

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 5:40 AM > To: Struts Users Mailing List > Subject: Re: ActionForm with all application attributes > > > Bill, wait a minute, i just thought on something. > I wouldn't matter if a ha

RE: Proper place for validation

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Janne Mattila [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 3:49 AM > To: [EMAIL PROTECTED] > Subject: RE: Proper place for validation > > > Hmm, not a lot of comments on this. I guess there is a > consensus on the > matter (that, or no-o

RE: ActionForm with all application attributes

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 5:48 PM > To: struts jakarta > Subject: ActionForm with all application attributes > > > Hi, > i sent this question yesterday, but as nowbody > answered me, i trying it again with a

Re: Struts XDoclet examples

2004-09-08 Thread David Durham
That's good information; I read it with vigor... As you can tell, I'm excited by the prospects of using XDoclet instead of . And, I think I get the gist of Struts related support provided in XDoclet, but I have a couple of questions. 1 -- How good is the DynaValidatorForm support? I saw the

RE: 500 Internal Server Error java.lang.NoSuchMethodError

2004-09-08 Thread Viral_Thakkar
Method exists both in BD and EJB still this error is coming... Below is the stack trace.. 500 Internal Server Error java.lang.NoSuchMethodError at com.tropics.web.commonservices.services.batch.B

Re: 500 Internal Server Error java.lang.NoSuchMethodError

2004-09-08 Thread James Mitchell
I have your solution: Find out which method is being called and do not call that method, it does not exist. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Viral_Thakkar" <[EMAIL PROTECTED]> To: "Struts

500 Internal Server Error java.lang.NoSuchMethodError

2004-09-08 Thread Viral_Thakkar
Hi All, I am trying to call a method on ejb through business delegate which in turn is called by struts action class. I have created a project in Jdeveloper and this is working fine. When I created an ear file using ant script and deployed this in oc4j903 then I got following error

Re: Bean tag and session data issue

2004-09-08 Thread Bill Siggelkow
Are you setting scope="session" for the actions in your struts-config.xml? If so, I'd take it through a debugger. - Bill Siggelkow Langdon Stevenson wrote: Having overcome my validation problem with help from the list (thanks Bill) I now find myself banging my head against another wall. I now

Re: ActionForm with all application attributes

2004-09-08 Thread Bill Siggelkow
True -- some people use bulk property setters like those provided by BeanUtils to move data from the ActionForm to the DTO -- I think that is primarily where you would need to be careful. Personally, I am not fond of the use of an uber form; it doesn't seem very object-oriented; however, I can

Re: Validating single fields in multi-page forms

2004-09-08 Thread Bill Siggelkow
Well, if I recall from your original post you only wanted to validate the fields on the current page only. Validator provides support for a page attribute that you can use for wizard-style forms. Validator will use that attribute to validate form fields on the current page and any previous page

ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
Hi, i believe that a lot of developers use BeanUtils to copy the data from ActionForms to the specific DTOs. I've used this approach, but right now i'm facing a problem, not a big one. I've allways been confused about working with dates in Java. I got a jsp where the user must input a date in the

Re: How to resolve label in ActionMessage?

2004-09-08 Thread Hubert Rabago
You might be able to. Action.getResources() is actually implemented as return ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)); So try that to get the message resources, then call getMessage() on that. On Wed, 8 Sep 2004 09:59:03 -0400, White, Joshua A (HTSC, CASD) <[EMAIL PROT

Re: Adding Tags Dynamically

2004-09-08 Thread Henrique VIECILI
Ok, then you have to define a Form with an array field: private String[] values; setValues(String[] values) ... getValues() ... then you will define the input tag in your jsp (you may use or not Struts HTML tag): you should place it inside some HTML container, like or setting its id attri

RE: How to resolve label in ActionMessage?

2004-09-08 Thread White, Joshua A (HTSC, CASD)
Hubert, Are you unable to do this from an ActionForms validate method? Joshua -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:50 AM To: Struts Users Mailing List Subject: Re: How to resolve label in ActionMessage? The first param

Re: How to resolve label in ActionMessage?

2004-09-08 Thread Hubert Rabago
The first parameter of the ActionMessage constructor is the message key. The rest (which are optional), are the actual parameters to the message. If your parameter is itself in need of evaluation, you'll need to do that yourself before you pass that on to ActionMessage. For that, you can call ge

  1   2   >