Re: page going out of tiles

2006-07-28 Thread Antonio Petrelli
Rauf Khan ha scritto: For *body* i have a registration form, for which iam validating using validator frame. For which the code is given below. When i enter only numbers in the password field it works fine the *resultpage* will be displayed ALSO the page will be in the tiles(body) only.

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

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 html:link tag, using paramId,

Re: page going out of tiles

2006-07-28 Thread Rauf Khan
Hi, I have copied the following action-mappings tiles-definitions for ur kind reference. 1) action-mappings !-- Default Welcome action -- action path=/Welcome1 forward=welcomepage/ action path=/inbox forward=inboxpage/ action path=/compose

Re: page going out of tiles

2006-07-28 Thread Antonio Petrelli
Rauf Khan ha scritto: action path=/somename=InfoForm type=InformationAction scope=request validate=true input=/jsp/compose.jsp forward name=next path=resultpage/ /action The problem is in the input attribute: you have to put either composepage (the name

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 % html:html body br h1COMPOSE PAGE/h1 br html:form action = /some method= post onsubmit=return validateInfoForm(this);

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

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: 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

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: 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 ComposeForm.numbers is not displayed but rest of the other alerts are displaying. validation.xml --- !-- compose form Validation-- form name=InfoForm field

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

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

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

RE: Session Tracking

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

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: 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,

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

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 oDone and agin store to application -Original Message- From: Kavita Mehta

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,

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 Source.

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

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 it!.

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. Something

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,

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 ignored the

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 On

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:

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: idiot

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 List;

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

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: DTO

[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.

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:

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 action path=/EditRegistration ... indeed there is nothing like this in the struts-config.xml

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 action path=/EditRegistration

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

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 from

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(/),

Re: mailreader question

2006-07-28 Thread Henning Schild
On Fri, 28 Jul 2006 11:26:57 -0700 Christopher Goldman [EMAIL PROTECTED] wrote: !-- Registration form bean -- form-bean name=registrationForm type=org.apache.struts.example.RegistrationForm/ !-- Edit user registration --

[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

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 listener

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: 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

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: [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 this

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

[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

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

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