RE: How to create a Waiting Page for long requests?

2006-05-02 Thread Roy, Ansuman
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

How to create a Waiting Page for long requests?

2006-05-02 Thread Julian Tillmann
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

RE: Is Action Chaining Strongly Discouraged?

2006-05-02 Thread Tarek Nabil
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

RE: FW: mapping.getInput()

2006-05-02 Thread Tarek Nabil
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

Re: Where Are Files Uploaded When Using Form File?

2006-05-02 Thread David Evans
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

Re: Is Action Chaining Strongly Discouraged?

2006-05-02 Thread David Evans
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 > >>

Re: Is Action Chaining Strongly Discouraged?

2006-05-02 Thread David Evans
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

Re: validation breaks my form prepopulation

2006-05-02 Thread Kyle W. Cartmell
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

Re: WebApp Cannot seem to locate Resource Bundle

2006-05-02 Thread Pat Slater
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

WebApp Cannot seem to locate Resource Bundle

2006-05-02 Thread Pat Slater
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

RE: Issue with DHTML and DIV position

2006-05-02 Thread Chaudhary, Harsh
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

Where Are Files Uploaded When Using Form File?

2006-05-02 Thread Help My PC!
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.

Issue with DHTML and DIV position

2006-05-02 Thread Ashish Kulkarni
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

Re: validation breaks my form prepopulation

2006-05-02 Thread Kyle W. Cartmell
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

Re: validation breaks my form prepopulation

2006-05-02 Thread Michael Jouravlev
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

validation breaks my form prepopulation

2006-05-02 Thread Kyle W. Cartmell
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

Re: How to POST data to an external site from an action?

2006-05-02 Thread Nikolaj Berntsen
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, /\/ ---

Re: How to POST data to an external site from an action?

2006-05-02 Thread David Evans
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

Re: How to POST data to an external site from an action?

2006-05-02 Thread Frank W. Zammetti
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

Re: jsessionid problem fix for weblogic servers

2006-05-02 Thread Ed Griebel
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

RE: jsessionid problem fix for weblogic servers

2006-05-02 Thread Braun, James F
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

Re: jsessionid problem fix for weblogic servers

2006-05-02 Thread Gary Feidt
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

How to POST data to an external site from an action?

2006-05-02 Thread Martin Kindler
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.

How to use

2006-05-02 Thread Joey Watson
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

jsessionid problem fix for weblogic servers

2006-05-02 Thread Braun, James F
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

Re: FW: mapping.getInput()

2006-05-02 Thread Pat Slater
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

Re: FW: mapping.getInput()

2006-05-02 Thread Pat Slater
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

Re: Validator rules not loaded

2006-05-02 Thread Ed Griebel
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

Re: Validator rules not loaded

2006-05-02 Thread Lance Semmens
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

Re: Where dose JSP works in JSF request lifecycle?

2006-05-02 Thread Craig McClanahan
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

Re: [shale] Form token giving NPE

2006-05-02 Thread Gary VanMatre
>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

Re: Validator rules not loaded

2006-05-02 Thread Vinit Sharma
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

Validator rules not loaded

2006-05-02 Thread Lance Semmens
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

Re: [shale] Form token giving NPE

2006-05-02 Thread Richard Wallace
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

saveToken:solution works~~

2006-05-02 Thread starki78
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

Re: How to use displayTag

2006-05-02 Thread Lixin Chu
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

Client abort exception

2006-05-02 Thread Shshank Jain
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

RE: Example needed for saveToken

2006-05-02 Thread Chandra.Ravinithala
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

RE: Example needed for saveToken

2006-05-02 Thread Chandra.Ravinithala
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

Example needed for saveToken

2006-05-02 Thread starki78
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

RE: creating dynamic forms with struts

2006-05-02 Thread Shoukat, Faisal
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

creating dynamic forms with struts

2006-05-02 Thread Silvija Cardzic-Mrsa
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

Re: Where dose JSP works in JSF request lifecycle?

2006-05-02 Thread 王曾wang_zeng
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