Programmatic Security

2003-03-10 Thread Renato Romano
I'm going to use the servlet security capability for enabling users to authenticate and work on my application, that is defining roles and secuirty constraints in web.xml. In some cases i'd want to show some links based on this security info, that is accessible via the request.isUserInRole()

Re: [OT]Re: quick log4j question

2003-03-10 Thread Manfred Wolff
No, Rick, I don't. I have said: Put it in ANY directory, that contains to the classpath. It is a good Idea to build a group of property-files e.g. in WEB-INF/classes/ressources or any other directory. But I don't know why evrybody will have a configuration in web.xml and a initialisation in

Re: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Jin Bal
If you don't wnat to be tied to the DynaBean api either you could defin your own custom DTO interface that defines the data that your model layer requires. then you could have your ActionForm implement your custom interface. Then you could just pass the action forms into the layer as the custom

Re: [Announce] OJBMessageResources available on SourceForge.net

2003-03-10 Thread Dirk Markert
Hello James, I tried to download the zip and the rar files from several mirrors. Both archive types are corrupt. Is this a sourceforge error or are the original files coruppted? Saturday, March 8, 2003, 6:44:30 AM, you wrote: JM OJBMessageResources is an implementation of MessageResources that

bean:define and el tags

2003-03-10 Thread Mohan Radhakrishnan
Hi I am trying to use simple if-else logic here. Date formatter - jsp:useBean id=now class=java.util.Date / fmt:formatDate var=currentdate value=${now} pattern=dd/MM// If my indexed property in the form returns null, I use the current date. c:choose c:when

parsing xml that contains hebrew using xerces

2003-03-10 Thread Yaron Sela
Hi all. Does someone know about parsing xml that contains hebrew, using xerces? I tried the encode: windows-1255, Cp1255 and it still returned question marks. my method: protected static Document readXmlFile(String fileName) throws XmlManagerException{ DOMParser p = new DOMParser();

Scrollable pop-up query list

2003-03-10 Thread Richard Mixon
Some of our forms have reference fields that deal with very large domains - far too many to populate a html:select with, performance would suck. I've seen something similar before - a button that when pressed pops up a new window that lets you scroll through items a page at a time. When you select

Re: [Tiles] Design - Overriding putList items

2003-03-10 Thread Cedric Dumoulin
Hi, Affan Qureshi wrote: I have divided the modules(logical) in my application in a Tab layout. I want to show different pages under the same tab at various points in the application. It means the putList items change all the time. If I want to extend and override the values inside the putList

Re: [Tiles] Localization Using Extended Tiles Definitions

2003-03-10 Thread Cedric Dumoulin
Hi, Paul Hodgetts wrote: Should I be able to do the following localization using extended tiles definitions? In tiles-defs.xml: tiles-definitions definition name=.page.base page=/default-layout.jsp put name=header value=/header.jsp/ put name=footer value=/footer.jsp/

Re: how to catch exception using tiles thrown by e.g. org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude

2003-03-10 Thread Cedric Dumoulin
Hi, This design have been chosen in order to not penalize an entire page when only one tile fail. With this design, the page is shown correctly, and the faulty tile report an error. What is missing in this design is a way to customize what should happen in case of error. This is an

struts database application

2003-03-10 Thread Pgdbvu
I have recently written a Struts application which allows the viewing of any JDBC compliant database. It may be downloaded from my website http://members.aol.com/pgdbvu/ I am interested in any feedback on the application. If it is deemed worthy how do I go about getting it added to the

Re: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Puneet Agarwal
Yeah I am going to adopt this. I am not very sure of how exactly am I going to do that(at the moment). But yes it sounds too good. Thanks Puneet Agarwal - Struts...Action...Struts in Action...Action in Struts...[possibly]Action with Struts...? - Original Message

RE: bean:define and el tags

2003-03-10 Thread Mohan Radhakrishnan
Hi, Answering my own question. The code to check if an indexed property is null or not in Struts 1.0.2/JSTL seems to be so long. I am just using two date checks here. This seems to be so even if we use JSTL. I think that this type of logic is quite commonplace in web projects. Should it

RE: [Announce] OJBMessageResources available on SourceForge.net

2003-03-10 Thread James Mitchell
They may have been corrupted when I uploaded them. I'll fix it and you should be able to download good copies in an hour or two. -- James Mitchell Software Developer/Struts Evangelist http://jakarta.apache.org/struts People demand freedom of speech to make up for the freedom of thought which

problems with logger

2003-03-10 Thread Michal Postupalski
hi ! In my struts application sometimes I get errors as below. They are in catalina.out file. I don't know what is the reason beacuse they come casually ;((( Any idea ??? catalina.out org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException:

struts-menu

2003-03-10 Thread Edgar Dollin
Does anyone know how to suppress the leading '/' in strutsmenu. Does anyone know how to get the menu to remember it's position if the target page, i.e. tiles, has the same menu. Thanks in advance Edgar

RE: [Announce] OJBMessageResources available on SourceForge.net

2003-03-10 Thread James Mitchell
Ok, it's ready. -- James Mitchell Software Developer/Struts Evangelist http://jakarta.apache.org/struts People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: James Mitchell

how to get values of the text field from dynamically generated form

2003-03-10 Thread Chonalal, Anil (Contractor)
I have problem in that I have a form with text fields that are dynamically generated depending on a list, for example: table logic:iterate id=fromAttribute name=fromAttrList tr bordercolor tdbean:write name=fromAttribute property=name/:/td

Re: editable list using nested:iterate and lazyList

2003-03-10 Thread William Salvucci
This is exactly what I am doing. It must be a version issue. I am using struts 1.0.2 with nested_tags_10.jar. I'll give struts 1.1 a try. Thanks [EMAIL PROTECTED] 03/06/03 05:45PM Alex, The JSP wasn't shown probably because it's like all other Struts table creation using the iterate tag.

RE: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Robert Taylor
Is being tied to the DynaBean API that bad. Seems like it, along with the entire beanutils package, is a great tool. Why write custom DTO interfaces when you could simply leverage DynaActionForm or DynaValidatorActionForm which both implement the DynaBean interface. Then use the beanutils package

RE: [OT] Simulating Concurrent Users

2003-03-10 Thread Kola Oyedeji
Slightly more OT, but is one complete html page considered a request or can a html page consist of multiple requests i.e. are images etc. downloaded in separate requests? Thanks Kola -Original Message- From: Jim Krygowski [mailto:[EMAIL PROTECTED] Sent: 06 March 2003 12:38 To:

Re: [OT] Simulating Concurrent Users

2003-03-10 Thread Nicolas De Loof
All scr= HTML tags does submit a new request (images, link to css or included javascript). With servlet API you will get a new request object (and context) for every request. For into, HTTP 1.1 browser can ask server to keep the connection alive, so that it can reuse the 1st connection for a new

Dynamic javascript confirmation

2003-03-10 Thread Renato Romano
I'm trying to write a confirmation alert on a field of a table; I have a delete button (or image) and what I'd want to do is ask confirmation to the user via a confirm() javascript call after which (if user confirms) I have to redirect to something like deleteObj.do?id=6 page, where 6 is the id of

Re: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Jin Bal
- Original Message - From: Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 10, 2003 2:09 PM Subject: RE: [Design Pattern]FormBean in Model Layer Is being tied to the DynaBean API that bad. Seems like it, along with the entire

RE: struts-menu

2003-03-10 Thread Raible, Matt
Edgar, I'm a committer on struts-menu, so hopefully I can help you out. I believe using the location attribute vs. page attribute will strip out your context and use the exact value you specify in location rather than pre-pending the context. As for remembering the position - which layout are

RE: [HK] struts-faces.war problem

2003-03-10 Thread Raible, Matt
I removed commons-logging.jar from WEB-INF/lib and it works fine for me on Tomcat 4.1.18 on Windows and Linux. HTH, Matt -Original Message- From: harish krishnaswamy [mailto:[EMAIL PROTECTED] Sent: Sunday, March 09, 2003 2:12 PM To: Struts Users Mailing List Subject: [HK]

Re: struts-menu

2003-03-10 Thread Stephen Smithstone
what is this struts-menu and where can i find some examples / downloads ? please On Monday 10 March 2003 3:22 pm, Raible, Matt wrote: Edgar, I'm a committer on struts-menu, so hopefully I can help you out. I believe using the location attribute vs. page attribute will strip out your

RE: struts-menu

2003-03-10 Thread Raible, Matt
http://sf.net/projects/struts-menu demo at: http://raibledesigns.com/struts-menu -Original Message- From: Stephen Smithstone [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 8:38 AM To: Struts Users Mailing List Subject: Re: struts-menu what is this struts-menu and

Dynamic forward and recursion in Action's execute method

2003-03-10 Thread Rick Ashley
Hello, I have a own DispatchAction based class that should add more parameter's dynamically to URI at runtime. Problem is that if I try to create a new ActionForward instance e.g. /my/app/myaction?method=doItp=100 with a new parameter, programs starts to run in recursion. I want to do this so

Re[2]: [Announce] OJBMessageResources available on SourceForge.net

2003-03-10 Thread Dirk Markert
Hello James, Monday, March 10, 2003, 2:15:10 PM, you wrote: JM Ok, it's ready. thank you! JM -- JM James Mitchell JM Software Developer/Struts Evangelist JM http://jakarta.apache.org/struts JM People demand freedom of speech to make up for the freedom of thought JM which they avoid. JM

Struts bean:define tag questions

2003-03-10 Thread White, Joshua A (CASD, IT)
Ok, Imagine I have an object User (package test.UserVO) which contains another object Address (package test.AddressVO)which has a String property city. User and Address are both java beans. User has been placed in session scope as UserVO. How would I access the property city? I noticed that

Oracle Data Source Config

2003-03-10 Thread Austin Lowry
I've hit a bump in the road with my development because I have to be able to use an Oracle connection in order to use a class vital to my application. This made my Weblogic connection pool unusable because it uses it's own connection objects that use the Oracle driver. I think my best option

Re: Want to stop tomcat's info messages from printing to console

2003-03-10 Thread Rick Reumann
On 07 Mar 2003 11:53:37 -0800 Dave Patton [EMAIL PROTECTED] wrote: Yes. You set this in the server.xml file of tomcat with the Logger entry. Check your server.xml file and I will bet you are using a ConsoleLogger at some level. Change those to FileLogger types instead. Check the Tomcat

RE: bean:define and el tags

2003-03-10 Thread Karr, David
You're missing an important point about the JSTL tags. The tags that store information into variables don't put them into scriptlet variables, they put them into scoped variables, which are just HashMap entries. If you use fmt:formatDate to store a formatted date into currentdate, you can't

RE: getPathInfo with Struts/Resin?

2003-03-10 Thread Kevin Tung
Hi, I haven't received any response on this issue. I assume this has not been done or cannot be done with Resin/Struts or with struts and any other container. Or perhaps I should post to a different list altogether? Any feedback will be greatly appreciated!! Thanks, Kevin -Original

The Back button on on multi-page forms

2003-03-10 Thread Ron Day
Anyone have any ideas or best practises on how to handle the use (mis-use) of the browser back button on multi-page forms. My forms work fine and validate Ok, but if the back button is used the forms are not re-populated properly. In particular anything that was in the reset, seems to be used

Re: Struts bean:define tag questions

2003-03-10 Thread Nicolas De Loof
What do you want to do whith your city ? You can do : bean: name=UserVO property=adress.city Nico. Ok, Imagine I have an object User (package test.UserVO) which contains another object Address (package test.AddressVO)which has a String property city. User and Address are both java

Re: The Back button on on multi-page forms

2003-03-10 Thread David Graham
See the Action class' javadoc for the token methods and the struts-example app for how to use them. David From: Ron Day [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: The Back button on on multi-page forms

Re: problem with session

2003-03-10 Thread Rajesh . Jayabalan
Hi Dave I have tried a few more options now.. I am able to get one value from the mfform in the second action class.. MffsActionForm is the actionform for the second action class, will that affect it to reset values. If that is the case then all values should be reset to null, but I can get

Re: Want to stop tomcat's info messages from printing to console

2003-03-10 Thread Rick Reumann
On Mon, 10 Mar 2003 11:11:01 -0500 Rick Reumann [EMAIL PROTECTED] wrote: Normally I just configure a log4j.properties file so I don't run into this problem, but on a small demo app I just created I didn't. Even when I add the following to the server.xml file, I still get all the validator

Two problems: bean:include and return errors

2003-03-10 Thread niksa_os
I have index.jsp that include login.jsp If I use in index.jsp bean:include id=login page=/login.jsp/ bean:write name=login filter=false/ logic:present name=bean scope=request doesn't work in login.jsp. I put bean in Action. logic:present name=bean scope=request only works in index.jsp. But

Re: [OT]Re: quick log4j question

2003-03-10 Thread Craig R. McClanahan
On Mon, 10 Mar 2003, Manfred Wolff wrote: Date: Mon, 10 Mar 2003 09:06:38 +0100 From: Manfred Wolff [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT]Re: quick log4j question

RE: The Back button on on multi-page forms

2003-03-10 Thread apachep2
Use token for Back button and double-clicking. -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 11:05 AM To: Struts Users Mailing List Subject: The Back button on on multi-page forms Anyone have any ideas or best practises on how to handle the use

Re: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Craig R. McClanahan
On Mon, 10 Mar 2003, Puneet Agarwal wrote: Date: Mon, 10 Mar 2003 11:31:29 - From: Puneet Agarwal [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], Puneet Agarwal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [Design

Re: Programmatic Security

2003-03-10 Thread Craig R. McClanahan
On Mon, 10 Mar 2003, Renato Romano wrote: Date: Mon, 10 Mar 2003 09:13:03 +0100 From: Renato Romano [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Programmatic Security I'm going

RE: getPathInfo with Struts/Resin?

2003-03-10 Thread Kris Schneider
Having never used Resin, I'm in no position to comment on what can or can't be done with it. However, it seems like you're using path info where a request parameter would be a better fit. It sounds like username is actually dynamic, so it might really be jim or bob or jimbob, right? So that you'd

Struts Faces ea validation XML error

2003-03-10 Thread PILGRIM, Peter, FM
After copying all three JSF JAR to struts-faces/WEB-INF, and copying commons-logging-1.0.2.jar over WEB-INF/lib I got a validation error in the Struts Faces download. Is the validation XML correct? org.apache.jasper.JasperException: Depends string email was not found in validator-rules.xml.

Re: [OT]Re: quick log4j question

2003-03-10 Thread Rick Reumann
On Mon, 10 Mar 2003 08:44:07 -0800 (PST) Craig R. McClanahan [EMAIL PROTECTED] wrote: The right place to put your properties files, then, is wherever the software that is loading them will look for them :-). Sorry for my ignorance here but by software do you mean the servlet container? If so

RE: struts-menu

2003-03-10 Thread Edgar Dollin
Thanks Matt: I didn't find the location bit until after your message, so I submitted a patch to test the page for https, http, mailto, ftp so please ignore. I submitted a patch for DropDownMenuDisplayer.java which outputs a trailer message after a menu block. This allowed me to write the

Web sites using struts

2003-03-10 Thread Damm, Gary
I know this has been asked before but I'm getting errors when searching the archive. I need some examples (links) of sites currently using struts. Any help appreciated, Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Struts Faces ea validation XML error

2003-03-10 Thread Craig R. McClanahan
On Mon, 10 Mar 2003, PILGRIM, Peter, FM wrote: Date: Mon, 10 Mar 2003 17:18:25 - From: PILGRIM, Peter, FM [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Subject: Struts Faces ea validation XML error

Re: [OT]Re: quick log4j question

2003-03-10 Thread Craig R. McClanahan
On Mon, 10 Mar 2003, Rick Reumann wrote: Date: Mon, 10 Mar 2003 12:21:41 -0500 From: Rick Reumann [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT]Re: quick log4j question On Mon, 10 Mar 2003 08:44:07

RE: getPathInfo with Struts/Resin?

2003-03-10 Thread Owen Medd
We discovered the limit of the action mapping capability early on with one project I was doing and actually wrote a new mapper that matched based on subsets of the full pathinfo string. We ended up not using struts for that project, but enhancing the action map matching was pretty useful. Our

OT Filename using file download within an action

2003-03-10 Thread Roland Berger
Hi all Craig has described in the thread File upload/download design question how to download a file from within an action. Others have described how to set the Header so that the browser is promting for the right filename: response.setHeader(Content-Disposition,attachment; filename=\ +

RE: struts-menu

2003-03-10 Thread Edgar Dollin
Struts menu works nicely with struts, i.e. you add a plugin to read your configuration files. It uses xml and property files for menu configuration. It can use javascript or not and works with CoolMenus. There are a couple of jsp tags which actually insert the menu so your jsp files stay really

line feeds to BR

2003-03-10 Thread awc
Hi All, Is there is switch in bean:write .. / tag where line feeds convert to br. Thanks in advance for any info. .anil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: The Back button on on multi-page forms

2003-03-10 Thread Ron Day
Thanks for the tip on tokens I'm not familiar (yet) with tokens. Are these new in 1.1 or have they always been there. I have to use Struts 1.0. Ron -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 10:24 AM To: [EMAIL PROTECTED]

Re: line feeds to BR

2003-03-10 Thread David Graham
No, you need to perform that function yourself. David From: awc [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: line feeds to BR Date: Mon, 10 Mar 2003 11:55:40 -0600 Hi All, Is there is switch in bean:write ..

[Q] Bug in bean:message?

2003-03-10 Thread Jeff Smith
I've created a generic message page that shows a message to my users based on a request parameter. I've created a jsp tile to encapsulate this behavior which looks like this: %@ taglib uri=/tags/struts-bean prefix=bean % bean:parameter id=messageTileKey name=messageTileKey/ bean:define

RE: The Back button on on multi-page forms

2003-03-10 Thread David Graham
See the Action class' javadoc for details. David From: Ron Day [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: The Back button on on multi-page forms Date: Mon, 10 Mar 2003 11:54:32 -0600 Thanks for the tip on

Re: [Q] Bug in bean:message?

2003-03-10 Thread David Graham
Seems like it would be useful to trim the keys before using them. Open an enhancement request for this in bugzilla. David From: Jeff Smith [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [Q] Bug in bean:message?

Nested tag problem

2003-03-10 Thread Yaron Sela
Hi All the iterator and nested tags worked until I have added another bean:write (bean:write name=region property=value/) to the value of a check box and I have got an error: org.apache.jasper.JasperException: /searchDira.jsp(335,108) equal symbol expected If I wrote the bean:write (sign with

Re: Nested tag problem

2003-03-10 Thread David Graham
You can't use a tag as the input to another tag's attribute. David From: Yaron Sela [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Nested tag problem Date: Mon, 10 Mar 2003 20:08:39 +0200 Hi All the iterator and

Sort a collection in alphabetic order

2003-03-10 Thread Søren Blidorf
Hi. I need to sort my collection people in alphabetic order by lastname, firstname. Can anybody help me? I guess I should do it in the Action and not when displayed in jsp page. Collection people = new ArrayList(); while( rs.next() ) { PeopleBean pb = new PeopleBean();

Re: Nested tag problem

2003-03-10 Thread Dave Newton
On Mon, 2003-03-10 at 13:15, David Graham wrote: You can't use a tag as the input to another tag's attribute. Hey, On a lot of other lists there's a monthly/weekly (or, in our case, perhaps hourly ;) FAQ posted. Would it make any sense to create a very short FAQ that's either sent out on

RE: The Back button on on multi-page forms

2003-03-10 Thread Ron Day
I get the picturethanks anyway. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:04 PM To: [EMAIL PROTECTED] Subject: RE: The Back button on on multi-page forms See the Action class' javadoc for details. David From: Ron Day [EMAIL

Re: Sort a collection in alphabetic order

2003-03-10 Thread Dave Newton
On Mon, 2003-03-10 at 13:16, Søren Blidorf wrote: I need to sort my collection people in alphabetic order by lastname, firstname. Can anybody help me? Most algorithm books will give you more information than you want on sorting. Why not just do it in the query and let the db do it? Dave

Re: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Puneet Agarwal
Thanks Craig, I go with you. All I wanted was to avoid the duplication of information(in the form of variables) in JVM. But your point about conversion of data type is totally agreeable. So, I shall copy the values in Action class using BeanUtils.copyProperties() to this new object(DTO).

RE: Sort a collection in alphabetic order

2003-03-10 Thread Robert Taylor
Do it in the query. select ID, FIRSTNAME, LASTNAME from people order by LASTNAME, FIRSTNAME robert -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:17 PM To: [EMAIL PROTECTED] Subject: Sort a collection in alphabetic order Hi. I

Re: Nested tag problem

2003-03-10 Thread David Graham
We already provide FAQ pages on the Struts site. Unfortunately, this particular issue wouldn't benefit from an FAQ because users assume it's a problem with the tag instead of their usage of it. David From: Dave Newton [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED]

SV: Sort a collection in alphabetic order

2003-03-10 Thread Søren Blidorf
It is not possible. The select is in a while (rs.next()) {} depending on another value. (Not easy to explain!!) I am a ware of normal SQL order by -Oprindelig meddelelse- Fra: Dave Newton [mailto:[EMAIL PROTECTED] Sendt: 10. marts 2003 19:20 Til: Struts Users Mailing List Emne: Re:

RE: getPathInfo with Struts/Resin?

2003-03-10 Thread Kevin Tung
Hi Kris, The examples I had given are simplified (probably too much so). In practice, we need to allow search engine to be able to index the site correctly. Some of the search engines we work with have issues with ? and query strings in general. Also in our app, the extra path info is used to

Re: Sort a collection in alphabetic order

2003-03-10 Thread nash e. foster
You could have your PeopleBean implement Comparable, which is pretty easy, and then use TreeSet to create a sorted set using your compareTo method. -nash On Monday, March 10, 2003, at 01:16 PM, Søren Blidorf wrote: Hi. I need to sort my collection people in alphabetic order by lastname,

Re: Nested tag problem

2003-03-10 Thread Dave Newton
On Mon, 2003-03-10 at 13:23, David Graham wrote: We already provide FAQ pages on the Struts site. Unfortunately, this particular issue wouldn't benefit from an FAQ because users assume it's a problem with the tag instead of their usage of it. Faq Question: Can I use bean output as a

Regular Expressions

2003-03-10 Thread Vinay
I am stuck in using Regular expressions in Struts validator,,i.e validation.xml for validating input fields .Is there a web site which lists all kinds of expressions that can be used in a validation.xml. examples currency , alphanumieric length restriction,

Re: Regular Expressions

2003-03-10 Thread Dave Newton
On Mon, 2003-03-10 at 13:28, Vinay wrote: I am stuck in using Regular expressions in Struts validator,,i.e validation.xml for validating input fields .Is there a web site which lists all kinds of expressions that can be used in a validation.xml. It uses the org.apache.regexp package, so I'd

RE: Web sites using struts

2003-03-10 Thread Edgar Dollin
http://marc.theaimsgroup.com This is a mirror of the archives which has a little cleaner search. -Original Message- From: Damm, Gary [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:35 PM To: '[EMAIL PROTECTED]' Subject: Web sites using struts I know this has been

JavaServer Faces - Is it OK to use it now?

2003-03-10 Thread Mete Kural
Hello, I'm beginning a new Struts-based web application project and I would really like to use JavaServer Pages in it. I know that there are notices recommending not to use the current early access implementation for production environments. I am just beginning this project so I'm thinking it

RE: Web sites using struts

2003-03-10 Thread Sri Sankaran
Check out http://marc.theaimsgroup.com/?l=struts-userm=104627418203266w=2. Sri -Original Message- From: Damm, Gary [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:35 PM To: [EMAIL PROTECTED] Subject: Web sites using struts I know this has been asked before but I'm getting

Re: JavaServer Faces - Is it OK to use it now?

2003-03-10 Thread David Graham
JSF isn't final yet so I wouldn't use it for any production projects. David From: Mete Kural [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: JavaServer Faces - Is it OK to use it now? Date: Mon, 10 Mar 2003 10:39:19 + Hello, I'm beginning a new Struts-based

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
Khalid I will share anything I find. Have not got too much help so far. I am digging into the tokens Javadoc does not say much !! Ron -Original Message- From: Khalid K. [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:25 PM To: [EMAIL PROTECTED] Subject: Re: The Back

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread David Graham
You'll notice that I also pointed you to the struts-example app that shows you how to use the methods you found in the javadoc. David From: Ron Day [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: The Back

Validating conditionaly required fields?

2003-03-10 Thread Greg Hess
Hi All, I am adding some new validation to a form that is currently being managed by the validation framework. My form has several properties that are now optional. The user is to supply a URL and a corresponding label. The user has the option to enter 1-6 Label/URL combinations. I need to

Re: Sort a collection in alphabetic order

2003-03-10 Thread Dave Patton
I concur with Nash. Use a Comparator Object for this. Itis in the java.util package. Dave Patton On Mon, 2003-03-10 at 10:27, nash e. foster wrote: You could have your PeopleBean implement Comparable, which is pretty easy, and then use TreeSet to create a sorted set using your compareTo

Re: Regular Expressions

2003-03-10 Thread Dave Patton
Not that I have seen per se. There is a site that has some pre-built regexs but Im sorry I cant remember the URL. Your best bet is to go buy the Oreilly book Mastering Regular Expressions It is pretty much the bible of regex and well worth the investment. Dave Patton On Mon, 2003-03-10 at

Re: JavaServer Faces - Is it OK to use it now?

2003-03-10 Thread Mete Kural
Thanks for you advice. Do you have any vague estimates on how long it will take JSF to become suitable for Struts-based production applications? a) 2-3 months b) 4-6 months c) 6-12 months d) more than 1 year Thanks, Mete - To

Re: Sort a collection in alphabetic order

2003-03-10 Thread Vic Cekvenich
http://edhill.its.uiowa.edu/display-0.8/ Robert Taylor wrote: Do it in the query. select ID, FIRSTNAME, LASTNAME from people order by LASTNAME, FIRSTNAME robert -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:17 PM To: [EMAIL PROTECTED]

Re: Nested tag problem

2003-03-10 Thread Yaron Sela
Dear David Thanks a lot for your help. Yaron - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 10, 2003 8:23 PM Subject: Re: Nested tag problem We already provide FAQ pages on the Struts site. Unfortunately, this particular issue

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread apachep2
If someone still think token is hard to understand, let me elaborate it a bit. For my application, what I am doing is 1. saveToken in my load action 2. Load page, struts will automatically puts a hidden field on the page. 3. Click button 4. In my action class, I check isTokenValid 5. If invalid,

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
Maybe I'm dumb, but it is not apparent to me how the token is used to make the back button post the correct form information. R -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:48 PM To: [EMAIL PROTECTED] Subject: RE: The Back button on on

Re: Regular Expressions

2003-03-10 Thread Dan Allen
Not that I have seen per se. There is a site that has some pre-built regexs but Im sorry I cant remember the URL. Your best bet is to go buy the Oreilly book Mastering Regular Expressions It is pretty much the bible of regex and well worth the investment. KDE 3.1 has an awesome regular

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread apachep2
If token is invalid, nothing can be submitted. -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 3:41 PM To: Struts Users Mailing List Subject: RE: The Back button on on multi-page forms ?? Maybe I'm dumb, but it is not apparent to me how the token is

RE: Sort a collection in alphabetic order

2003-03-10 Thread David Haynes
Since you are in a while(rs.next()) context, why not sort on insertion? Just pop your results into a Vector (or other collection) in sort-order. Depending upon the number of elements expected, you could speed the insertion using a number of methods. If your lists are relatively small, it may be

RE: Sort a collection in alphabetic order

2003-03-10 Thread apachep2
Comparable is always a good idea. But I am curious to know why you are unable to do a re-SELECT statement? -Original Message- From: David Haynes [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 3:49 PM To: 'Struts Users Mailing List' Subject: RE: Sort a collection in alphabetic order

when will the reset method be called

2003-03-10 Thread Rajesh . Jayabalan
Hi, When does the reset method of the formbean get called. and why?? It is getting called automatically before coming into my action (second time) how do I stop calling reset.? Regards Rajesh J - To unsubscribe, e-mail:

RE: Sort a collection in alphabetic order

2003-03-10 Thread David Haynes
Although I don't know anything about Soren's specific problem, I have had times where the database is protected by a bean and the process of having a new data access method on the bean is simply too complex to be believed (i.e. you have about a gazillion review processes to go through). In these

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread David Graham
Pressing the back button does not contact the server and thus cannot post any information. When the user submits the form again, their token will be invalid and your action will prevent a duplicate post. David From: Ron Day [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

ActionServlet Action caching problem

2003-03-10 Thread Whitmire, Jeffrey
I've got a weird one. I'm hoping that somebody else has encountered this before and can help. We are in the midst of load testing our app before rolling it out to production. I have one action class (only one) that starts failing well over an hour into the test. It appears that the instance of

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
I'm not sure I am explaining my problem correctly. 1) a Jsp page displays a form with text boxes, radio and checkboxes. 2) Form is filled out and submitted. 3) if validated, the next part of the form is dispayed with a second jsp page. 4) But, User hits the browser back button 5) First form is

RE: Sort a collection in alphabetic order

2003-03-10 Thread Damm, Gary
Keep in mind Strings implement Comparable. So if the lastName field of your PeopleBean is a String it makes the local sorting that much easier (no need to make changes to the PeopleBean). You can just do the comparisons based on the lastName field (or any other field that implements

  1   2   >