RESUBMIT: Trapping timeout of HttpSession

2003-03-19 Thread Rick Ashley
In case where HttpSession is expired and user makes a submit, my opinion is that application must handle expiration in centralized place before it goes to Action-classes and maybe causes NullPointer exceptions somewhere in code. Application should forward request which session is expired to error

RE: Sys-con Radio Interview on Struts and Opensource

2003-03-19 Thread Andrew Hill
Not enough bandwidth :-( Is there a transcript anywhere? -Original Message- From: James Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, 20 March 2003 15:47 To: [EMAIL PROTECTED] Subject: Sys-con Radio Interview on Struts and Opensource I was interviewed today at the WebEdge conference i

Sys-con Radio Interview on Struts and Opensource

2003-03-19 Thread James Turner
I was interviewed today at the WebEdge conference in Boston, I talked about Struts and open source, among other topics. If you're interested, you can here it at: http://www.sys-con.com/webservicesedge2003east/radio/radio.cfm Look for: SYS-CON Radio Interviews Author James Turner James --

RE: PrePopulation Problem - Urgent

2003-03-19 Thread du Plessis, Corneil C
Makes sure redirect=false in the forward. -Original Message- From: ashokd [mailto:[EMAIL PROTECTED] Sent: 21 March, 2002 07:11 To: [EMAIL PROTECTED] Subject: PrePopulation Problem - Urgent Importance: High Hi, I have a .jsp page, In this page if the user clicks a Hyper link one Action c

RE: Calendar tag lib

2003-03-19 Thread Mick . Knutson
It would be nice to set itself from the Session Locale. _ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: Kruse, Matt [mailto:[EMAIL PROTECT

Country select pull down.

2003-03-19 Thread Mick . Knutson
I wanted to create a Country pull down with the tag, but I have 280 countries added, but I get errors with a list that long. I have also read about the error here on this list about there being too many tags in a JSP, but, How do I add such a large pull down to a ? Thank You Mick Knutson

Re: webapps and single sign on

2003-03-19 Thread Navjot Singh
hi umberto, search for mod_osso and you will get plethora of info ;-) -navjot - Original Message - From: "Umberto Nicoletti" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 19, 2003 4:21 PM Subject: Re: webapps and single sign on | On Wed

Re: ActionError not supporting bundle

2003-03-19 Thread Navjot Singh
hi david, I am also in the same boat, buddy. I am trying wuite a few things. Will let you know about the progress. Struts Config do take multiple message resources. You can use them also in diff Action files. But with validations, i am not so sure. No doubt, it is huge limitaiton if Struts won't

how to deploy a simple struts application in iplanet webserver6.0

2003-03-19 Thread Ramesh_KumarP
Hi, i am new to iplanet webserver 6.0 and struts.. i just tried a simple web appication with struts ActionServlet just it check the input and accordingly forward to different jsp.but i was not able to run the application .it is giving servelet exception while loading itself i am using only the

Re: Control Access

2003-03-19 Thread Scott Barr
Or as Max Cooper says, check out the securityfilter project :D I haven't used it myself, I use container manager authentication and jdbc realms, but the securityfilter project does look pretty cool. Scott Barr www.exergonic.com.au On Thu, 2003-03-20 at 15:59, Joey Ebright wrote: > The documenta

Re: Control Access

2003-03-19 Thread David Graham
Actually, that's not a very good way of doing authentication. The view layer (JSP) should not know about authenticating the user. This should be done in a Filter or Action before the user ever reaches the view. David From: Joey Ebright <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing Lis

Re: Control Access

2003-03-19 Thread Joey Ebright
The documentation that comes with Struts and the examples actually show a great example of doing this. Basically there is a tag that you place at the top of each JSP page that checks to see if the user has an object in session (has logged in) and if not, redirects them to the login page. Hope

Re: Trap listener exceptions

2003-03-19 Thread David Graham
You can't. The listener method doesn't define any thrown exceptions so your implementation can't either. David From: Mohan Radhakrishnan <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> Subject: Trap listener exc

Pupulating Table in edit mode

2003-03-19 Thread Ritesh Singhal
Title: Message Hi All,   I have a screen in which I displays some data in a table format. Now the columns of this table will be submitted as array in to the form bean. So we have a column name "status" we will have methods in form bean like: setStatus(String[] status) String[] getStatus()

PrePopulation Problem - Urgent

2003-03-19 Thread ashokd
Hi, I have a .jsp page, In this page if the user clicks a Hyper link one Action class will invoke. In this action class I am setting some values to the Form Bean and redirecting to the same page. These values are not prepopulating in jsp page. When the user navigates to another page and then come

help :::: sturts on iplanet

2003-03-19 Thread Ramesh_KumarP
Hi all , I am using iplanet webserver 6.0 . can anyone tell me how to configure iplanet to work sturts.. Rameshkumar ** This email (including any attachments) is intended for the sole use of the intended recipient/s and ma

Re: Problem with Struts Validator

2003-03-19 Thread Steve Stair
The problem is that the JavaScript code that is generated looks something like return validateMaxLength(form) && validateMinLength(form) && validateRequired(form); so the methods are being called from left to right, and as soon as one generates errors, the rest don't get called. Of cours

Re: Focus where I last clicked

2003-03-19 Thread Steve Stair
> In our struts app, I have a submit image quite a way down a > fairly long page. When the user clicks that image and struts forwards > them back to the same page, they are automatically sent to the top of > the page. Is there any way for the app to 'remember' where the user > was on the page an

Trap listener exceptions

2003-03-19 Thread Mohan Radhakrishnan
Hi What is the best practice to trap exceptions thrown in listeners ? My ServletContextListener might throw custom exceptions which the UI should respond to properly by showing a message. How do you make custom exceptions bubble up from methods like public void contextInitialized

RE: Connection Pool

2003-03-19 Thread Lee, Dennis
Hi, Sorry, it's a property of , not Best Regards, Dennis Lee -Original Message- From: Lee, Dennis [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:55 AM To: 'Struts Users Mailing List' Subject: RE: Connection Pool Hi, You can check the DTD, the key is a property of , so yo

RE: Connection Pool

2003-03-19 Thread Lee, Dennis
Hi, You can check the DTD, the key is a property of , so you should set it in data-sources like this. ... ... Best Regards, Dennis Lee -Original Message- From: Jimmy Emmanual [mailto:[EMAIL PROTECTED] Sent: Thursday, March

RE: Connection Pool

2003-03-19 Thread Jimmy Emmanual
Thanks, i'll look at the DTD for more info... I thought that was what i was doing with . Almost every document i've read says i should be able to get the datasource via the key "prdDataexport", but the only way i get it is when i use the default Action.DATA_SOURCE_KEY... Also, i'm using struts 1.

Re: URL Rewriting

2003-03-19 Thread Max Cooper
You do actually have to go through the pains of rewriting all of your URLs in links and things for this to work. If you have a link in a page like this: Lose it! you will lose the session, since there is no call to rewrite the URL. I believe that the Struts tags will rewrite the URLs as part of th

RE: Connection Pool

2003-03-19 Thread David Graham
The set-property element calls a setter on the DataSource java bean. Use the key attribute of the data-source element to assign keys. See the struts-config.xml DTD for details. David From: Jimmy Emmanual <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'St

Problem with Struts Validator

2003-03-19 Thread Amit Keshav Kulkarni
Hi All, I am using the Struts Validator package for Validations in my application. Let us say there are three fields in one of my forms Name, Last name and Email. I have required and minLength validation for Name, required and minlength for last name and required and email validation for Email fi

RE: Connection Pool

2003-03-19 Thread Jimmy Emmanual
This is the definition in the struts-config.xml file.

RE: URL Rewriting

2003-03-19 Thread Wendy Cameron
This is what I would have expected, but isnt our experience and I am not sure why. Regards Wendy > -Original Message- > From: David Graham [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2003 12:38 PM > To: [EMAIL PROTECTED] > Subject: Re: URL Rewriting > > > My Tomcat 4.1.18 does

Re: URL Rewriting

2003-03-19 Thread David Graham
My Tomcat 4.1.18 does this automatically if cookies are off. David From: "Wendy Cameron" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]> Subject: URL Rewriting Date: Thu, 20 Mar 2003 12:36:44 +1000 We hav

URL Rewriting

2003-03-19 Thread Wendy Cameron
We have come up against a problem with URL re-writing in Tomcat, basically what happens is if the user switches off, cookies all session information is lost. We need to have session information even if cookies are disabled, is there some options somewhere in Tomcat 4.1.18 to switch on, URL rewr

RE: Connection Pool

2003-03-19 Thread Lee, Dennis
Hi, I declared different datasource for different environment (Development, UAT, Production). "desconfig" is an object of my "Configuration class", it has an attribute "datasource" of the type String. I am using Struts 1.1b2. Maybe you should post your datasource setting in struts-config.xml

RE: Connection Pool

2003-03-19 Thread Jimmy Emmanual
Dennis, Thank you very much. However, what do you declare "desconfig" as? -Original Message- From: Lee, Dennis [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 9:24 PM To: 'Struts Users Mailing List' Subject: RE: Connection Pool Hi, Here is my code snippet: //

RE: Connection Pool

2003-03-19 Thread Lee, Dennis
Hi, Here is my code snippet: // initialization - Datasource and Name Service log.info("Initializing configuration plug in : Datasource and Name service"); DataSource dataSource = null; if (StringUtils.isEmpty(desconfig.getDatasource(

RE: Connection Pool

2003-03-19 Thread Jimmy Emmanual
Also, it seems when you have a list of datasources, the only one that is recognized is the last one... -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 7:29 PM To: [EMAIL PROTECTED] Subject: RE: Connection Pool Are you using modules? Why don

RE: Connection Pool

2003-03-19 Thread Jimmy Emmanual
I don't think i'm using modules. not sure... actually, don't know. I printed out all the Attributes of the servlet context and there is a "org.apache.sturts.action.DATA_SOURCE" object which returns a DataSource. However, i don't see where ( if any ) there is a list of all the DataSources i've defi

Re: passing 'title' to a tile in a frame

2003-03-19 Thread Jeff Kyser
my bad, credit should have been to Steve Stair, I'm the one who can't see strait :) but still no joy here -jeff On Wednesday, March 19, 2003, at 06:46 PM, Jeff Kyser wrote: hello, all have searched, searched, but no examples, and getting I guess hung up on syntax. Problem: I want to pass

RE: A dynamic way to reset/populate DynaXXXXActionForm

2003-03-19 Thread Marco Tedone
I would join Robert in this post asking also for a pluggable reset() as, as he told correctly, the goal of the Dyna..Form wanted to be that of eliminating the excessive number of classes and ease of mainteinance. Marco > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED]

passing 'title' to a tile in a frame

2003-03-19 Thread Jeff Kyser
hello, all have searched, searched, but no examples, and getting I guess hung up on syntax. Problem: I want to pass the 'title' declared in my tile definition to the 'header' tile, which is itself displayed in a frame. From Cedric's posts and help from Steve Strait, I've gotten the syntax for

Re: Focus where I last clicked

2003-03-19 Thread James Mitchell
On Wed, 2003-03-19 at 19:25, [EMAIL PROTECTED] wrote: > Hi, > > In our struts app, I have a submit image quite a way down a > fairly long page. When the user clicks that image and struts forwards > them back to the same page, they are automatically sent to the top of > the page. Is there any w

RES: Trapping timeout of HttpSession

2003-03-19 Thread RODRIGO CARVALHO DOS SANTOS
Hi, You could insert a 'inSession' cookie in the Login, and remove the cookie in Logout. If you receive a request from a user without a valid session, check if the 'inSession' cookie is present and, if is true, redirect to an ExpiredSession warning page. If you want do some cleaning activ

[NEWBIE]Clear fields on a DynaValidatorForm and Reset button

2003-03-19 Thread Marco Tedone
Hi all, I'm using a DynaValidatorForm for my login page with the following text fields: userName password dbName I configured all the properties of the DynaValidatorForm in the element with the initial attribute set to blanks. The first time I access the form everything is fine; then I submit i

Proper way to reset checkboxes on a DynaValidatorForm

2003-03-19 Thread Wendy Smoak
The documentation says that the underlying property for an should be of type boolean and that you should set the property to false in the reset method of the ActionForm. With DynaValidatorForm, I found that I had to use type java.lang.Boolean because you can't put primitives in a Map. Now I nee

RE: Connection Pool

2003-03-19 Thread David Graham
Are you using modules? Why don't you print out the contents of ServletContext to see if it's in there? David From: Jimmy Emmanual <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: RE: Connection Pool Dat

RE: Connection Pool

2003-03-19 Thread Jimmy Emmanual
David, When i try to access it via the defined key, the DataSource object is null. The only way it works is if i use the "Action.DATA_SOURCE_KEY" i.e. ServletContext context = servlet.getServletContext(); DataSource dataSource = (DataSource)context.getAttribute(Action.DATA_SOURCE_KEY); If i try

Re: j_security_check

2003-03-19 Thread Scott Barr
Hi Max I've really got to investigate the securityfilter for my next project :) Scott Barr www.exergonic.com.au On Thu, 2003-03-20 at 10:50, Max Cooper wrote: > You can also use SecurityFilter, a filter-based clone of container-managed > security. It allows you to set a default page to take use

Focus where I last clicked

2003-03-19 Thread glen_roberts
Hi,   In our struts app, I have a submit image quite a way down a fairly long page.  When the user clicks that image and struts forwards them back to the same page, they are automatically sent to the top of the page.  Is there any way for the app to 'remember' where the user was on the page

Re: Trapping timeout of HttpSession

2003-03-19 Thread Max Cooper
If their session expired, it is gone. The form submittal will generally look like it is from a new visitor that had no session. What do you want to do in the case that the user submits a form and their session had expired? I think you might be able to make a good guess if they used to have a sessio

Re: Connection Pool

2003-03-19 Thread David Graham
Struts stores the DataSources in the ServletContext under the key you defined. David From: Jimmy Emmanual <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: Connection Pool Date: Wed, 19 Mar 2003 19:18:11 -0500 H

Connection Pool

2003-03-19 Thread Jimmy Emmanual
How do you access a DataSource from an action class via its "key"? I have multiple DataSources defined in the struts-config.xml file each have the "key" property set. I need to access these based on this "key". - To unsubscribe, e

Re: j_security_check

2003-03-19 Thread Max Cooper
You can also use SecurityFilter, a filter-based clone of container-managed security. It allows you to set a default page to take users to when they log in "out of the blue". Container-managed security doesn't allow such login requests. http://securityfilter.sourceforge.net/ -Max - Original M

Re: j_security_check

2003-03-19 Thread Scott Barr
Hi Ronan You'll get this when you go directly to the page for the user to login. Instead, setup a resource that is protected by Container Managed Security eg. /userHome.do, which will then take you to your login page. Once login is successful, you will be fowarded on to /userHome.do Once you've

Re: Strut your Stuff validation

2003-03-19 Thread David Vittor
Hey David, Thanks for that console, that may make development a little easier - I'll look into it. And yeah Jeff, it is simply a cut and paste after job with the xml validation, but when you have over 100 editable forms in your application, and over 1000 fields, well personally I'd rather not hav

problems with was4.0

2003-03-19 Thread Diego
Hi, I've developed a small application using tomcat. I've created a war file with the app and tried to deploy it in was 4.0. Every time I call an action that requires redirection the application looks for port 81. Also, when I have a link like: note: listUsers is a global forward which redirect

j_security_check

2003-03-19 Thread ronanoc
I get this message when I am trying to login, and if I am already logged in too. Status 404 /mywebapp/j_security_check type Status report message /mywebapp/j_security_check description The requested resource (/mywebapp/j_security_check) is not available. How can I prevent this happening, and h

Re: Strut your Stuff validation

2003-03-19 Thread Jeff Kyser
Hey David, That article is from December 2000, is it not? I only briefly scanned it but I didn't have to do any of that stuff with customizing struts.jar, etc. Have you checked out more recent stuff like the 'requiredif' rule, etc.? I'm with David Graham - find it very manageable indeed. I have

Re: Strut your Stuff validation

2003-03-19 Thread David Graham
> But as the struts architecture is only at a Candidate Release, I was > wondering if along with the tag,  the html tag > library could produce something simple (like something not requiring > 10 lines of xml for every single fields input?) It's totally > unmaintainable. You can use Struts Console

Re: Strut your Stuff validation

2003-03-19 Thread David Vittor
Thanks for replying Jeff. Well as the article suggested I added the Validator interface to the BaseFieldTag.java class, via the below code: Object pagebean = pageContext.findAttribute(name); if(pagebean instanceof com.bank.Validator) { ((com.bank.Validator) pagebean).setPattern(pro

CheckBox values passed from actionForm to bean

2003-03-19 Thread Jack Zakarian
Hi, I have an actionForm with header (single valued properties) and detail (multi row item records). There is a checkbox for each detail record so that the user can select which detail records to process e.g. delete all selected detail records. In the actionForm I have defined a boolean

Re: [OT] tld complaint

2003-03-19 Thread Dan Allen
> If you looked into how they are created, you'll see that the TLDs are > *output* files, not input files - they are produced from XML > source documents... True, true. > Why would you want to look at a TLD when you can have something readable > like this instead? :-) I was actually just creatin

Re: file path

2003-03-19 Thread Dan Allen
> There is absolutely no guarantee that webapp resources even *have* a "file > path" at all -- it's perfectly legal for the container to run your > application directly from a WAR file (Tomcat has an option for that), or > dump your static resources into a database, or anywhere else it wants. > >

RE: Nesting tile definitions

2003-03-19 Thread Tai Nguyen
Kevin, First if all, it is possible to use attributes from supertiles, but that's another issue. The definitions you have posted look fine, so I would guess that it's a problem with your header.jsp file. Can you post that so we can look at it, as well as the full error message you are getting?

Re: Control Access

2003-03-19 Thread Sloan Seaman
Use a servlet filter (lots of examples exist)... Just check the session to see if they have a valid one and if they don't redirect them to the login page. 3 lines in web.xml and aboue 10-20 lines of java... That's how I do it... -- Sloan - Original Message - From: "mahesh kagitha" <[EM

RE: Design philosophy, beans, model to view

2003-03-19 Thread Nathan Steiner
I have to agree with this. You want a clear separation of duties across tiers (at least I do!). We are running in a J2EE environment, so our approach is: WEB TIER User requests "View Grocery List", which is a link to /view_list.do ViewGroceryList action class creates a business

Re: [OT] tld complaint

2003-03-19 Thread Craig R. McClanahan
On Wed, 19 Mar 2003, Dan Allen wrote: > Date: Wed, 19 Mar 2003 15:42:10 -0600 > From: Dan Allen <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts-User List <[EMAIL PROTECTED]> > Subject: [OT] tld complaint > > Does someone out there have something against

Re: Design philosophy, beans, model to view

2003-03-19 Thread Kirby Vandivort
On Wed, Mar 19, 2003 at 04:48:13PM -0500, Rick Reumann wrote: > On Wed, 19 Mar 2003 14:46:41 -0600 > Kirby Vandivort <[EMAIL PROTECTED]> wrote: > > > So, I guess my question is... is there a consensus of any sort on how > > this should be done or, how do you do it, etc? > > Unfortunately, I'm s

RE: ActionError not supporting bundle

2003-03-19 Thread David Gagnon
Hi Thanks for your reply btw :-) > > I look into the RC1 code to find that ActionError > > doesn't allow to specify the bundle to search for a > > given error message. > > > > I my application I have multiple modules and > > multiple message ressource files. How can I specify > > error mess

Re: file path

2003-03-19 Thread Craig R. McClanahan
On Wed, 19 Mar 2003, Dan Allen wrote: > Date: Wed, 19 Mar 2003 13:19:49 -0600 > From: Dan Allen <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts-User List <[EMAIL PROTECTED]> > Subject: Re: file path > > > Dan Allen ([EMAIL PROTECTED]) wrote: > > > Assum

Re: Design philosophy, beans, model to view

2003-03-19 Thread Rick Reumann
On Wed, 19 Mar 2003 14:46:41 -0600 Kirby Vandivort <[EMAIL PROTECTED]> wrote: > So, I guess my question is... is there a consensus of any sort on how > this should be done or, how do you do it, etc? Unfortunately, I'm starting to find out more and more that there isn't a consensus:) I'm also lea

Stupid indexed property DynaActionForm problem/question

2003-03-19 Thread Ian Hunter
Before anyone flames me, I have read through the archive, and as someone already said, there is info in there, but no concrete basic examples. Here's the formBean I'm trying to handle: In short, there are some fields that a

Nesting tile definitions

2003-03-19 Thread Kevin Cramer
I am trying to have a tile definition include another definition but it doesn't seem to be working. Can I do this and if so then how do I do it? Here is an example of what I am trying to do. I would like the header of a standard page to be another tile so I can further divide it into pieces. H

[OT] tld complaint

2003-03-19 Thread Dan Allen
Does someone out there have something against formatting the .tld xml files for taglib definitions that no one ever does it? Just seems odd that every .tld I open from the struts sourcecode is totally unreadable. Maybe someone could serve them a little xmllint --format? Dan -- - - - - - - - -

RE: Control Access

2003-03-19 Thread Jagadeesan,Sivakumar
There are many ways we could do that The simplest way is , In all actions check whether the User is logged in ( by checking whether UserBean is present in the Session) . If the user is not logged in direct him to the Login page . This approach is not that efficient as you have to have this logic i

Design philosophy, beans, model to view

2003-03-19 Thread Kirby Vandivort
I'm in the process of converting a webapp to using struts, am trying to use "best" practices to make sure that I keep presentation split from business, and I was wondering what all of you experts do to handle the data transition from model business logic beans to the presentation. As I see it, I c

forwards with appending query string

2003-03-19 Thread Stephen Smithstone
in my jsp page im usually calling Link is there something i can along the same lines with the either using the forward or href attribute Ta Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: Control Access

2003-03-19 Thread mahesh kagitha
Hi Siva, My question about navigation of successful/unsuccessful users...If I directly access any JSP other than login.jsp, then I should be redirected to login.jsp , a way of forcing user to authorization. Thanks mahesh. "Jagadeesan,Sivakumar" <[EMAIL PROTECTED]> wrote:Hi Mahesh: This

Good Combination

2003-03-19 Thread Jagadeesan,Sivakumar
Hi All: Could anyone list the advantages and disadvantages of these combinations 1) Struts alone 2) Struts with tiles 3) Struts with Sitemesh --Siva Jagadeesan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

RE: Control Access

2003-03-19 Thread Jagadeesan,Sivakumar
Hi Mahesh: This is pretty simple when using struts. Have the Login Page to Submit to Login Action. Configure in the Struts-Config.xml the action mapping for LoginAction as SUCCESS ---> Index.html FAILURE ---> Login.jsp In the Login Action return SUCCESS if the login succeeds or return FAILURE if

RE: Control Access

2003-03-19 Thread Robert Taylor
Please search the archives. This has been discussed many times. You might also try a google search. I also remember reading a recent article in the Java Developer Journal on several strategies for this. robert > -Original Message- > From: mahesh kagitha [mailto:[EMAIL PROTECTED] > Sent:

ServletResponse

2003-03-19 Thread Gilbert, Antoine
Hi I have a simple question about this piece of code in a simple JSP response.setHeader("test","hi"); Logger.log(response.containsHeader("test")); Why the contains method return false ? the response is not commited yet (I verified with isCommited()) Another question related to this... (wh

RE: Control Access

2003-03-19 Thread Chen, Gin
So many ways. One you can use the struts roles and control login that way. Two you can programmatically do this using a request processor. Three you can do this programmatically in all you actions/jsps. And a few other solutions as well. -Tim -Original Message- From: mahesh kagitha [mailto

Control Access

2003-03-19 Thread mahesh kagitha
Can any one please explain the following... I'm developing an application which has login page(JSP) to access the application and I should allow only the successfully logged in users to navigate my application otherwise direct to login page. My question here is... How can I do that.? Tha

RE: [OT] Ping

2003-03-19 Thread Susmita Pati
I think its pretty slow compared to the other days... -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 3:40 PM To: Struts Users Mailing List Subject: RE: [OT] Ping I think it's just you James. There seems to be plent of it coming throug

RE: [Q] why can't be used without NAME as ca n?

2003-03-19 Thread Chen, Gin
When using nested:hidden of 1.1 rc I get. "Attribute write invalid according to the specified TLD" :( -Tim -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 2:16 PM To: 'Struts Users Mailing List' Subject: RE: [Q] why can't be used without NAME

RE: [OT] Ping

2003-03-19 Thread Chappell, Simon P
I think it's just you James. There seems to be plent of it coming through into my mailbox. (Now, there is a lack of sillyness, but that's another matter! :-) Simon >-Original Message- >From: James Mitchell [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 19, 2003 2:37 PM >To: Struts Use

RE: [OT] Ping

2003-03-19 Thread Chen, Gin
just you. put the drink down and get some coffee. everything will speed back up. its not even friday yet! -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 3:37 PM To: Struts Users List Subject: [OT] Ping Is it just me or is the mail slow t

[OT] Ping

2003-03-19 Thread James Mitchell
Is it just me or is the mail slow today? -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tiles

2003-03-19 Thread Tai Nguyen
You can configure your web.xml to have multiple tiles-def.xml files for easier maintenance. -Original Message- From: Nathan Steiner [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 2:24 PM To: 'Struts Users Mailing List' Subject: RE: Tiles Yes, you are correct on the point of my

Trapping timeout of HttpSession

2003-03-19 Thread Rick Ashley
Hello, What is the best place to check if user's HttpSession has expired? I mean situation where e.g. timeout of Web application is 30 minutes and after that user tries to submit a form. Is it ok to check it e.g. in RequestProcessor or somewhere else and how? Anyone have a sample code? Br r a

Re: Tiles

2003-03-19 Thread Cedric Dumoulin
Check the struts archive. There is some answer to this question. You can also check for the thread "Sell me on Tiles" Cedric Nathan Steiner wrote: I am fairly new to struts, and was just getting comfortable with templates, and now must dig into tiles. With tiles, from what I can gather, you c

Re: file path

2003-03-19 Thread Dan Allen
perhaps org.apache.commons.resources.file.web.WebappFileResources? Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, <[EMAIL PROTECTED]> http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "When you're raised by the Jesuits

RE: Tiles

2003-03-19 Thread David Graham
As for placing them all in the tiles-def.xml, does maintenance of that file become cumbersome for a large site? No. You can use Struts Console to maintain Struts' config files including Tiles. Are there performance issues related to the size of the xml file? No. Thanks, Nate David __

A dynamic way to reset/populate DynaXXXXActionForm

2003-03-19 Thread Robert Taylor
I recently decided to exercise my skills in using dynamic indexed properties with my DynaValidatorActionForm. I quickly realized that I will need to have some code in the DynaValidatorActionForm.reset() which must re-populate my indexed collection so that the RequestUtils.populate() can successfull

RE: Tiles

2003-03-19 Thread Nathan Steiner
Yes, you are correct on the point of my question. As for placing them all in the tiles-def.xml, does maintenance of that file become cumbersome for a large site? Are there performance issues related to the size of the xml file? Thanks, Nate -Original Message- From: Tai Nguyen [mailto:[

Re: file path

2003-03-19 Thread Dan Allen
Dan Allen ([EMAIL PROTECTED]) wrote: > Assuming I am storing a public file in my web directory who's real > path is > > /var/tomcat/webapps/program/file.dat > > How would I reference that file in my Action class in order to read > in the data? My concern of course is how to get the path info >

RE: [Q] why can't be used without NAME as ca n?

2003-03-19 Thread Chen, Gin
Ahh crap James. Even though I didnt post the original msg, if I had of read the documentation more closely on html hidden.. this could have saved me a few lines of code >_< -Tim -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 2:00 PM To: St

RE:

2003-03-19 Thread David Graham
Say you have 2 input fields backed by a Map named myMap: When the form is populated the Map value for key "one" will get written twice and the last one entered will be your value. David From: "WILLIAMS,RAND (HP-USA,ex1)" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTEC

Jaas support

2003-03-19 Thread Shilpa Dalmia
I read in the struts documentation that struts provides direct support for jaas since 1.1. I 've got it working using a policy file, specifying permissions to access URLs. Does the actionmapping 'roles' integrate with jaas roles, if so, can someone direct me how to go abt it? Shilpa -

RE:

2003-03-19 Thread WILLIAMS,RAND (HP-USA,ex1)
Hi David, thank you :) But I'm still a bit confused. The reason why I want to use a Map to hold these values of the form, is that I want the flexibility of having X number of String[], populated from the form :selects and stored in the Map. Then I can process X String[]'s in my Action by iterating

Re: [Q] why can't be used without NAME as ca n?

2003-03-19 Thread James Mitchell
On Wed, 2003-03-19 at 13:58, [EMAIL PROTECTED] wrote: > Hello, > > from about Attribute name - If not specified, the bean > associated with the form tag we are nested within is utilized. > why can't does the same? to be consistant. > or Am I missing anything? I noticed this to while working on

RE: [Q] why can't be used without NAME as can?

2003-03-19 Thread Robert Taylor
Use the nested taglib. robert > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 19, 2003 1:58 PM > To: [EMAIL PROTECTED] > Subject: [Q] why can't be used without NAME as > can? > > > Hello, > > from about Attribute name - If not spec

RE: [Q] why can't be used without NAME as can?

2003-03-19 Thread Sri Sankaran
Probably because unlike , doesn't *have* to inside a form and so a bean isn't guaranteed? Sri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 1:58 PM To: [EMAIL PROTECTED] Subject: [Q] why can't be used without NAME as can? Hello

  1   2   3   >