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
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
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
Hi,
I have copied the following & for
ur kind reference.
1)
2)
Regards
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
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
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.
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
--
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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: [email protected]
Subject: Bean Scope Problem
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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:
> >
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
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
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
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
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
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
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
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"
>
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
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
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
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
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
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
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
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
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
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
57 matches
Mail list logo