when a user submits anything on the jsp page you can try and disable the submit
button and display a message for please wait.
all this can be achieved with the help of java script.
regards,
Roy
-Original Message-
From: Julian Tillmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 200
Hi
I want to prevent a user from submitting
long during database queries twice.
Therefore I try to include a waiting page.
Can someone name me an example or give me
a tip how to implement it?
Thanks a lot
Julian
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail tes
Dave,
Do you mean that you're doing a redirect after processing the post?
I've been thinking about this action chaining issue for some time since
I used it in my last project and it resulted in some code duplication.
The reason is, I was storing the setup data in my form (which I still
think is b
Actually, I wasn't indicating it should be any different, I just meant that
it's an easier and more straightforward way of doing it.
From: Pat Slater [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 02, 2006 7:35 PM
To: Struts Users Mailing List; Tarek Nabil
Subject
the answer to your first question is here:
http://struts.apache.org/struts-action/apidocs/org/apache/struts/upload/CommonsMultipartRequestHandler.html#getRepositoryPath(org.apache.struts.config.ModuleConfig)
I think the answer to your second question depends on the servlet
container being used, an
On Sun, 2006-04-30 at 20:33 -0500, Joe Germuska wrote:
> At 5:10 PM -0700 4/30/06, David Evans wrote:
> >below...
> >
> >On Sun, 2006-04-30 at 17:47 -0500, Joe Germuska wrote:
> >> On 4/30/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
> >> >I have seen some discussions on this forum regarding
> >>
Thanks for the idea. Are you differenciating using request.getMethod()
in the actions execute method?
dave
On Mon, 2006-05-01 at 10:03 -0400, Dave Newton wrote:
> David Evans wrote:
> > Is there a reason you don't use the two action (setup and submit) approach?
> >
>
> I just think it's clut
This is extremely helpful, because it gives me the opportunity to
prepopulate my form once again should validation fail. There's still a
sticky bit here, in that request attributes that are set from a previous
form are lost and cannot be recreated.
I believe that this is pretty much something
I also have a message resource entry in struts-config.xml file:
Pat Slater <[EMAIL PROTECTED]> wrote: I have defined Action Servlet
configuration in web.xml as:
action
org.apache.struts.action.ActionServlet
application
com.xxx.i18nMessages.MessageResources
I have defined Action Servlet configuration in web.xml as:
action
org.apache.struts.action.ActionServlet
application
com.xxx.i18nMessages.MessageResources
config
/WEB-INF/conf/struts-config.xml
debug
2
Hi,
If I understand you correctly, this is what you would like to do:
[ pseudo code ]
find position of link two (in pixels)
set the following properties for the div: div.top and div.left where
div.top = vertical position of link + 10 px (or however many pixels you
want)
div.left = 10 px (or how
Hi,
Simple question, when using the UploadFormBean and FormFile to upload files in
struts, where are the files stored when uploaded? Is there an upload dir that
accumulates?
If I store files in a DB, will I have to manually clean the upload directory?
Thanks.
Hi
I am attaching a html file along this mail, and also posting a shorttext URL to view the html file
What i basically want to do is get the div with id="showtwo" below the 2 link displayed
Can anyone help with this issue
The code link is
http://www.shortText.com/zlj8z
or you can download the h
I surrender! Thank you very much!
Michael Jouravlev wrote:
On 5/2/06, Kyle W. Cartmell <[EMAIL PROTECTED]> wrote:
Within my web application (using the Struts action framework) when
validation of an ActionForm fails and control is returned to the JSP
indicated by struts-config.xml, any request a
On 5/2/06, Kyle W. Cartmell <[EMAIL PROTECTED]> wrote:
Within my web application (using the Struts action framework) when
validation of an ActionForm fails and control is returned to the JSP
indicated by struts-config.xml, any request attributes that were passed
to that JSP originally are lost be
Within my web application (using the Struts action framework) when
validation of an ActionForm fails and control is returned to the JSP
indicated by struts-config.xml, any request attributes that were passed
to that JSP originally are lost because a new request object has been
created.
I beli
Frank W. Zammetti wrote:
>Hi Martin,
>
>Have a look at Commons HTTPClient:
>
>http://jakarta.apache.org/commons/httpclient/
>
>
I did not know that one, I use webconversation from http://httpunit.org
which real powerful but might be be overkill.
Cheers,
/\/
---
Here's a quick connect using standard java (not tested):
java.net.HttpURLConnection connection;
java.net.URL url;
try {
// Create new URL and connect
url = new URL("http://www.test.com/test.cgi";);
connection = (HttpURLConnection) url.openConnection();
// Setup HTT
Hi Martin,
Have a look at Commons HTTPClient:
http://jakarta.apache.org/commons/httpclient/
This allows you to make various types of HTTP requests, and its easy
enough to do from an Action.
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex
I don't have a copy of SIA, so I'm not sure what it says, but as I
understand URL rewriting, it is always used on the struts URLs on the
first page returned after a session is initiated, and for links in
subsequent pages when the browser doesn't return a cookie with the
session ID. By turning this
It worked for us on 8.1 sp2 and sp5. I don't know about others.
http:/forums.bea.com/bea/message.jspa?messageID=600017610&start=0
is the link to where my coworker found the info
J.
-Original Message-
From: Gary Feidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 02, 2006 1:18 PM
To: us
Does version of WebLogic does this work for?
Gary
>>> [EMAIL PROTECTED] 5/2/2006 10:55:41 AM >>>
I had a problem with jsessionid trashing all my images and urls until
I
refreshed my browser. Ted Husted points out this phenomenon on page 66
of SIA.
The symptom is that ;jsessionid=<~long id strin
Hi all,
I'm kind of stuck with a little problem. perhaps someone can help!
I want to include a payment service into my Struts Action 1.2.x based shop.
The payment service needs the information via http POST. The user (my
customer) will authorize the transaction on the site of the payment service.
Hi All.
I got a problem when I was using . I used to use
before. like
those codes can work well. but now I want to use . but
the code '<%=ApplicationAction.ACCSUBJ_CHANGE%>', and '<%=index%>'
value can not be get.
the va
I had a problem with jsessionid trashing all my images and urls until I
refreshed my browser. Ted Husted points out this phenomenon on page 66
of SIA.
The symptom is that ;jsessionid=<~long id string here> is appended to
urls which confuses the weblogic app server.
The fix for weblogic is to add
I am using org.apache.struts.validator.DynaValidatorForm to define the form
bean in struts-config.xml file.
Pat Slater <[EMAIL PROTECTED]> wrote: Used return mapping.getInputForward();
with no change in the result.
Tarek Nabil wrote: Not that it has anything to do with your problem, but wh
Used return mapping.getInputForward(); with no change in the result.
Tarek Nabil <[EMAIL PROTECTED]> wrote: Not that it has anything to do with
your problem, but why are you doing
it this way? Why don't you do
return mapping.getInputForward();
-Original Message-
From: Pat Slater [mailt
You probably have some kind of typo in your DTD specification in
validation.xml or validator-rules.xml, as most modern appservers will
pull DTDs out of jars. Ensure that commons-validator.jar is included
in your war/ear file.
Also, if validator rules are so critical to security, you should
probab
Thanks, I had thought of this workaround too. I just wanted to highlight
the potential security issue when the validator rules fail to load.
Vinit Sharma wrote:
Hi,
You can store the dtd file on you local dir and refer its path from the
rules xml file.
HTH
On 5/2/06, Lance Semmens <[EMAIL PR
On 5/2/06, 王曾wang_zeng <[EMAIL PROTECTED]> wrote:
Graig, that's very kind of you.
Are these aproachs feasible,when the page is requested by an inital
request?
When an inital request arrives, the view restoring phase is skipped and
JSF
goes to the response rendering phase directly. Then there sho
>From: Richard Wallace <[EMAIL PROTECTED]>
>
>Yup, that was it exactly. The page in question is actually a "confirm
>your input before continuing" type of page, so it doesn't have any
>actual input components. But, it still uses a bunch of lines like
>
>Name
>[EMAIL PROTECTED]
>
>The only reas
Hi,
You can store the dtd file on you local dir and refer its path from the
rules xml file.
HTH
On 5/2/06, Lance Semmens <[EMAIL PROTECTED]> wrote:
Struts is not loading validator rules if the validator dtd can not be
retrieved.
On app server startup, the following is reported:
2006-04-29 16
Struts is not loading validator rules if the validator dtd can not be
retrieved.
On app server startup, the following is reported:
2006-04-29 16:18:23,420 ERROR
[org.apache.struts.validator.ValidatorPlugIn] jakarta.apache.org
java.net.UnknownHostException: jakarta.apache.org
at java.net
Gary VanMatre wrote:
Gary VanMatre wrote:
From: Richard Wallace <[EMAIL PROTECTED]>
I'm trying to use the token component on a form to ensure that a user
doesn't submit the form more than once. Whenever I try and submit the
form a second time, I get a NPE. I'm using it in Clay, if that m
Thank you for your comments
now I made a few steps but my solution
Then I submit twice I want that the first submit continues
and the second will be ignored!
In this example also the first request will
be stopped! How can you prevent this??
Has someone an idea?
in the first action
I use
check the latest display tag (i think 1.1 or 1.2), it does support
pagination though.
there is also a AjaxTag which enables a AJAX displaytag.
On 4/30/06, H. Kerem Cevahir <[EMAIL PROTECTED]> wrote:
Hi,
display:table tag works on beans( or lists) which are kept in one of
scopes.
You can se
Hii guys,
All my website logs are getting clogged by client abort exceptions .
i googled and found that this happens when the user cancels a request and
moves to some other
page or website.
Is there a way in which i can suppress this exception in struts ??
-Shanky
http://www.yourbillbuddy.com
http://jaxmag.com/itr/online_artikel/psecom,id,648,nodeid,147.html
More in saveToken();
Chandra
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 02, 2006 2:32 PM
To: user@struts.apache.org
Subject: RE: Example needed for saveToken
Some useful cod
Some useful code:
The action code may look like this.
// Check for a valid token
if(isTokenValid(request)){
// If the token is valid, reset it and perform the business logic
resetToken(request);
insertRecord(request);//Business logic call.
return mapping.findForward(Global
Ciao!
I need some mechanism for preventing a user
of starting several long database queries
by clicking a submit button.
Therefor I' would like to use the save token
of struts.
If the token is not valid the user should get a message
and be redirected to the inputPage.
Where do I have to use saveT
U want to use Map or List backed action forms
Look it up on the web in the struts doc for an example
-Original Message-
From: Silvija Cardzic-Mrsa [mailto:[EMAIL PROTECTED]
Sent: 02 May 2006 09:33
To: user@struts.apache.org
Subject: creating dynamic forms with struts
Hi,
is it possible
Hi,
is it possible to create dynmic forms with struts ? Order of pages, the
actions and
form fields will be generated from datasources.
I read about DynaActionForms, but Im not sure if this is the right thing.
Greetings Silvija
Graig, that's very kind of you.
Are these aproachs feasible,when the page is requested by an inital request?
When an inital request arrives, the view restoring phase is skipped and JSF
goes to the response rendering phase directly. Then there should be no
component tree constructed at all ,when pr
43 matches
Mail list logo