Re: Session Tracking

2006-07-28 Thread Laurie Harper
Yes, you'd want to have an up-front check for expired sessions on each request. There are various ways to achieve that; you could have a base action which does the check, use a filter, or customize the Struts request procession life-cycle (using a custom request processor implementation or modi

Pagination and Memorizing Marked Checkboxes

2006-07-28 Thread Caroline Jen
I display a List of objects. Because the List can be very long, I use a pagination tag library to display my long list 10 at a time. This taglib is not a front-end one. The taglib makes a trip to the back end to retrieve the next 10 records from the database when the next pagination link is cl

[FRIDAY][OT] Joke - Job descriptions

2006-07-28 Thread Scott Van Wart
I wouldn't have thought to submit this but for the programmer reference :). --- 1. A banker is a fellow who lends you his umbrella when the sun is shining and wants it back the minute it begins to rain. 2. An economist is an expert who will know tomorrow why the things

Re: mailreader question

2006-07-28 Thread Christopher Goldman
On Fri, 2006-07-28 at 20:57 +0200, Henning Schild wrote: > This is not included in my binary version struts-1.2.9. And the md5sum > for the zip file ist correct. [snipped] > If all the things you described where in the .war files > struts-config.xml i would not have asked, because i read how it w

Re: [Shale] Get the application path

2006-07-28 Thread Craig McClanahan
On 7/28/06, Marty Phee <[EMAIL PROTECTED]> wrote: Thanks. I'll move over to that list, but I'm looking for the application path. Not the context path. By "application path" do you mean the directory path to where the application is deployed from on disk? You are correct in noticing that th

Re: [Shale] Get the application path

2006-07-28 Thread Marty Phee
Thanks. I'll move over to that list, but I'm looking for the application path. Not the context path. Craig McClanahan wrote: On 7/28/06, Marty Phee <[EMAIL PROTECTED]> wrote: How do I get the application path. I can see it in the debugger through the ApplicationContextFacade, but not sure

RE: Re: Session Tracking

2006-07-28 Thread Givler, Eric
Do you generally put any session related expiry code in a base action class so you can forward prior to calling your execute() method in the action if the session is no longer "active"? That is, I really wouldn't want any of the action class code running, and currently the application I'm wor

Re: [Shale] Get the application path

2006-07-28 Thread Craig McClanahan
On 7/28/06, Marty Phee <[EMAIL PROTECTED]> wrote: How do I get the application path. I can see it in the debugger through the ApplicationContextFacade, but not sure how to access it. I need the path of the application to pass on to a report generator. Shale has migrated to its own top level

Re: Session Tracking

2006-07-28 Thread Laurie Harper
You only need to do that if you need to take some action on session expiry; the servlet container will take care of calling session.invalidate() for you automatically. L. Patil, Sheetal wrote: Create an listener and configure it in your web.xml org.Application.SessionCounterListener

[Shale] Get the application path

2006-07-28 Thread Marty Phee
How do I get the application path. I can see it in the debugger through the ApplicationContextFacade, but not sure how to access it. I need the path of the application to pass on to a report generator. Thanks, Marty - To un

Re: mailreader question

2006-07-28 Thread Henning Schild
On Fri, 28 Jul 2006 11:26:57 -0700 Christopher Goldman <[EMAIL PROTECTED]> wrote: > > type="org.apache.struts.example.RegistrationForm"/> > > > type="org.apache.struts.example.EditRegistrationAction" >

Re: Question regarding getRequestURI()

2006-07-28 Thread Monkeyden
Actually, the mapping parameter may give you something. Try mapping.getPath () On 7/28/06, Monkeyden <[EMAIL PROTECTED]> wrote: You have to parse it. Something like this: String requestUri = request.getRequestURI(); String resourceName = requestUri.substring(requestUri.lastIndexOf("/"), req

Re: Question regarding getRequestURI()

2006-07-28 Thread Monkeyden
You have to parse it. Something like this: String requestUri = request.getRequestURI(); String resourceName = requestUri.substring(requestUri.lastIndexOf("/"), requestURI.length-1); On 7/28/06, mosho <[EMAIL PROTECTED]> wrote: Hi All, I am using struts 1.1 I need to get the process.do fro

Question regarding getRequestURI()

2006-07-28 Thread mosho
Hi All, I am using struts 1.1 I need to get the process.do from the url. For example if I have http://11.1.30.222:1001/testproject/process.do By using getRequestURI(), I can get /testproject/process.do but I just need process.do. Is there any way to get this? Thanks -- View this message in

Re: mailreader question

2006-07-28 Thread Christopher Goldman
On Fri, 2006-07-28 at 19:58 +0200, Henning Schild wrote: > Hello, > > i am currently working on my first struts application. That is why i am > looking at the example and there are a few things i do not understand. > > The tour says something about an action-mapping > > > > ... > > indeed the

mailreader question

2006-07-28 Thread Henning Schild
Hello, i am currently working on my first struts application. That is why i am looking at the example and there are a few things i do not understand. The tour says something about an action-mapping > ... indeed there is nothing like this in the struts-config.xml How does struts know which Ac

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Simon Chappell
I still want to know why anyone would want open sores? Kinda adds new meaning to descriptions of the GPL as viral. :-) Simon -- www.simonpeter.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

[OT]design help

2006-07-28 Thread fea jabi
have String array's which have values in them. dbValues[] newValues[] Have an object Customer which has row obj in a table in jsp page. This row obj basically has dbValues[0] , newValues[0] .. etc. In Prepare Action. Creating the list of Customer obj's that is put in the form-bean. stru

Re: form in application context`

2006-07-28 Thread Christopher Goldman
On Fri, 2006-07-28 at 16:36 +0530, Kavita Mehta wrote: > hmm ..thanks n how gud is an idea to access this value from outside > action class ..i.e. i call a method in action class from outside struts > framework which changes its value on recieving an alarm/trap. > > Patil, Sheetal wrote: > >

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Monkeyden
Larry, I didn't believe you'd be able to to improve on the first incarnation of it, but there, you've gone and done it. On 7/28/06, Larry Meadors <[EMAIL PROTECTED]> wrote: Would you prefer half-wit? Or maybe "retard", one definition of that is "A person considered to be foolish or socially i

RE: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Adam Gordon
Of which "Parenting for Dummies" is my favorite It begs the statement "Um, perhaps you should not have waited on having children if you need this book..." -Adam -Original Message- From: Monkeyden [mailto:[EMAIL PROTECTED] Sent: Friday, 28 July 2006 09:51 To: Struts Users Mailing Li

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Larry Meadors
Would you prefer half-wit? Or maybe "retard", one definition of that is "A person considered to be foolish or socially inept." - I actually like that one better "Software by retards for retards...download here." Larry On 7/28/06, Martin Kindler <[EMAIL PROTECTED]> wrote: from wikipedia:

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Larry Meadors
Exactly. It is self-deprecating on both sides of the equation, and reinforces the fact that the developers ARE the users, and the users are the developers. All that and it is every bit as irreverent as LAME, Subversion, Tomcat, etc... Larry On 7/28/06, Monkeyden <[EMAIL PROTECTED]> wrote: Gr

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Monkeyden
Great marketing! This reminds me of those "...for Dummies" books. To download, like buying those books, is to submit to the idea that you are, in all likelyhood, an idiot. On 7/28/06, Larry Meadors <[EMAIL PROTECTED]> wrote: How about "Software by idiots for idiots...download here." Larry

AW: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Martin Kindler
from wikipedia: "idiot is a word derived from the Greek ιδιωτης, idiōtēs ("layman," "person lacking professional skill," "a private citizen," "individual") ... It was originally used in ancient Greek city-states to refer to people who were overly concerned with their own self-interest and ignor

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Greg Reddin
On Jul 28, 2006, at 10:41 AM, Frank W. Zammetti wrote: Hehe... I hope your using the Johnny Damon definition of "idiots" :) That's awesome :-) Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Frank W. Zammetti
Hehe... I hope your using the Johnny Damon definition of "idiots" :) Frank Larry Meadors wrote: How about "Software by idiots for idiots...download here." Larry On 7/28/06, Thomas Joseph <[EMAIL PROTECTED]> wrote: Hi All, I have often felt that, we need a slogan for the Open Source. Somet

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Larry Meadors
How about "Software by idiots for idiots...download here." Larry On 7/28/06, Thomas Joseph <[EMAIL PROTECTED]> wrote: Hi All, I have often felt that, we need a slogan for the Open Source. Something like how Frank has for Java Web Parts - "Supplying the wheel, so you don't have to reinvent i

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Thomas Joseph
Well, my current work (as an industry fresher) doesn not hinder my personal commitment to the Open Source World. I guess this is true for all people. Well, for using Open Source resources, there will be utterly no hinderences for any one? ;-) Thanks and Regards, Thomas Joseph Kott Software Pv

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Monkeyden
I don't mind if people/companies aren't onboard. I also have a policy not to work with them. BTW, a "strategic offshore outsourcing" company? That's the devil's work. :) On 7/28/06, Thomas Joseph <[EMAIL PROTECTED]> wrote: Hi All, I have often felt that, we need a slogan for the Open Sourc

Re: Bean Scope Problem

2006-07-28 Thread Puneet Lakhina
Correct. Just to expand on it a bit for Puneet... the request that you set the attribute on is the request for resultsPage.jsp. That is the final resource the server returns for that request. Once it is returned, that request is destroyed. A link on that page represents a whole new request, he

[FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Thomas Joseph
Hi All, I have often felt that, we need a slogan for the Open Source. Something like how Frank has for Java Web Parts - "Supplying the wheel, so you don't have to reinvent it!". Open Source is definitely changing our lifes, especially with the projects those supported by Apache, Sourceforge, J

Re: Bean Scope Problem

2006-07-28 Thread Frank W. Zammetti
Patil, Sheetal wrote: As I know u cant access this object Better way put it in session scope or regenerate it Else see if you can hidden property in jsp Correct. Just to expand on it a bit for Puneet... the request that you set the attribute on is the request for resultsPage.jsp. That is the

RE: Bean Scope Problem

2006-07-28 Thread Patil, Sheetal
As I know u cant access this object Better way put it in session scope or regenerate it Else see if you can hidden property in jsp -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 5:19 PM To: user@struts.apache.org Subject: Bean Scope Problem

Bean Scope Problem

2006-07-28 Thread Puneet Lakhina
Hi, I have an action that creates an attribute like this request.setAttribute("results", resultObject); Now this action then forwards to a page (say resultsPage.jsp) which does some processing with this object. This resultsPage then has links that calls another page(say otherPage.jsp) Now iam t

Re: form in application context`

2006-07-28 Thread Kavita Mehta
thanks ... Antonio Petrelli wrote: Kavita Mehta ha scritto: It supports application support too .. http://www.javaworld.com/javaworld/jw-09-2004/jw-0913-struts-p3.html ..the last point is about scope . It is wrong: http://struts.apache.org/1.x/struts-core/apidocs/org/apache/struts/config/Act

Re: form in application context`

2006-07-28 Thread Antonio Petrelli
Kavita Mehta ha scritto: It supports application support too .. http://www.javaworld.com/javaworld/jw-09-2004/jw-0913-struts-p3.html ..the last point is about scope . It is wrong: http://struts.apache.org/1.x/struts-core/apidocs/org/apache/struts/config/ActionConfig.html#setScope(java.lang.Str

Re: form in application context`

2006-07-28 Thread Kavita Mehta
hmm ..thanks n how gud is an idea to access this value from outside action class ..i.e. i call a method in action class from outside struts framework which changes its value on recieving an alarm/trap. Patil, Sheetal wrote: DTO means normal object which contains the data In your case you w

RE: form in application context`

2006-07-28 Thread Patil, Sheetal
DTO means normal object which contains the data In your case you want to store "In Progress".. So just put "In Progress" into an object and save it to application scope Even if you want to change just change t o"Done" and agin store to application -Original Message- From: Kavita Mehta [ma

Re: form in application context`

2006-07-28 Thread Kavita Mehta
can you please exlpain it furthur as i am new to struts n i have never used a DTO . Patil, Sheetal wrote: Its better that u put an normal DTO in application scope and change values as per condition -Original Message- From: Kavita Mehta [mailto:[EMAIL PROTECTED] Sent: Friday, July 28

Re: form in application context`

2006-07-28 Thread Kavita Mehta
It supports application support too .. http://www.javaworld.com/javaworld/jw-09-2004/jw-0913-struts-p3.html ..the last point is about scope . I am new to struts..n as far as my understanding goes, the form bean is reinitialized each time i visit the JSP page again ..am i correct ? if not, the

Re: form in application context`

2006-07-28 Thread Antonio Petrelli
Kavita Mehta ha scritto: but why not form bean in application context ... For two reasons: * Struts 1 supports form beans only in request and session scopes (correct me if I am wrong). * Form beans are connected to HTML forms. Do you imagine a form that changes an object for the application?

RE: Session Tracking

2006-07-28 Thread Patil, Sheetal
Create an listener and configure it in your web.xml org.Application.SessionCounterListener public class SessionCounterListener implements HttpSessionListener { /** * this method is automcatically called when a session is created with the site */ public void session

RE: form in application context`

2006-07-28 Thread Patil, Sheetal
Its better that u put an normal DTO in application scope and change values as per condition -Original Message- From: Kavita Mehta [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 4:02 PM To: Struts Users Mailing List Subject: Re: form in application context` but why not form bean i

RE: Session Tracking

2006-07-28 Thread prerna.sawhney
Hi All, What code do I explicit need to write to be able to call session.invalidate() when the session timeout happens ? For eg 1) I have opened a window 2) Timeout is set to 5 mins. 3) There is no activity on the browser for 5 mins How will my application get to know that I need to call sessio

Re: form in application context`

2006-07-28 Thread Kavita Mehta
but why not form bean in application context ... Antonio Petrelli wrote: Kavita Mehta ha scritto: Hi, can we keep a form bean in application context ?? My requirement is that every operator that opens my screen should see the same values corresponding to a field ..i.e. i dont want to reset my

Re: page going out of tiles

2006-07-28 Thread Rauf Khan
Thanks for that, now it works fine. If i enter characters in the password field the alert :"please enter only numbers" is not displayed but rest of the other alerts are displaying. validation.xml --- mask

Re: form in application context`

2006-07-28 Thread Antonio Petrelli
Kavita Mehta ha scritto: Hi, can we keep a form bean in application context ?? My requirement is that every operator that opens my screen should see the same values corresponding to a field ..i.e. i dont want to reset my form bean for each session/operator/window ... Any ideas ?? Don't use

RE: Session Tracking

2006-07-28 Thread Patil, Sheetal
As I know session timeout value is used, if for that perticular time if user is inactive then distroy the session. And as close window dosen't contact with server you can't track it (preferably use session timeout) or use ajax and send distroy request to server on pageclose event if possible

form in application context`

2006-07-28 Thread Kavita Mehta
Hi, can we keep a form bean in application context ?? My requirement is that every operator that opens my screen should see the same values corresponding to a field ..i.e. i dont want to reset my form bean for each session/operator/window ... Any ideas ?? Thanks Kavita --

Re: page going out of tiles

2006-07-28 Thread Antonio Petrelli
Rauf Khan ha scritto: FYI : Compose page is the page that iam trying to validate, thats the reason i have written there. compose.jsp It is exactly what I suspected. If the validation fails, it will return to the page specified in "input" attribute in the action mapping, that is "/jsp/compose.

Re: page going out of tiles

2006-07-28 Thread Rauf Khan
FYI : Compose page is the page that iam trying to validate, thats the reason i have written there. compose.jsp <%@ taglib uri="/tags/struts-html" prefix="html" %> COMPOSE PAGE Name :  Password :   Email :   On 7/28/06, Antonio Petrelli <[EMAIL

Re: page going out of tiles

2006-07-28 Thread Antonio Petrelli
Rauf Khan ha scritto: The problem is in the "input" attribute: you have to put either "composepage" (the name of the definition, I am not sure if it works) or a JSP page inclusing the "composepage" definition, via the definition="composepage"> tag. "/jsp/composepag

Re: page going out of tiles

2006-07-28 Thread Rauf Khan
Hi, I have copied the following & for ur kind reference. 1) 2) Regards

Re: Dynamic Bean

2006-07-28 Thread Antonio Petrelli
Puneet Lakhina ha scritto: its some thing like this Id Name 1Puneet 2OtherName so when some one clicks on the id it takes to a different page which displays all details of the person with that id You can use tag, using paramId, paramName, paramPr

Dynamic Bean

2006-07-28 Thread Puneet Lakhina
Hi, I have an application which queries the database to retrieve results of search criteria, which is obtained via a form. Now in the action of the form which obtains the query i build a collection of beans which holds the results and then in the results page i use the iterate tag to display some

Dynamic bean

2006-07-28 Thread Puneet Lakhina
Hi, I have an application which queries the database to retrieve results of search criteria, which is obtained via a form. Now in the action of the form which obtains the query i build a collection of beans which holds the results and then in the results page i use the iterate tag to display some