Re: struts tiles warnings
Hi, i'm using struts 2.1.6 with tiles 2.0.6 with no problems, have You added listener configuration to your web.xml: org.apache.struts2.tiles.StrutsTilesListener Best greetings, Paweł Wielgus. 2009/9/3 measwel : > > LS, > > I am using Struts2 version 2.1.6. I would also like to use Tiles2 with it. > So I have copied the tiles jars from the struts distribution into my > web-inf/lib folder. The tiles jar versions I am using are: > > struts2-tiles-plugin-2.1.6.jar > tiles-jsp-2.0.6.jar > tiles-core-2.0.6.jar > tiles-api-2.0.6.jar > > Now the application seems to work, but I am getting the following errors. It > also seems to take a lot of time to render a page: > > WARNING: Could not find property [struts.valueStack] > WARNING: Could not find property [org.apache.tiles.AttributeContext.STACK] > WARNING: Could not find property [org.apache.tiles.AttributeContext.STACK] > WARNING: Could not find property [org.apache.catalina.jsp_file] > WARNING: Could not find property [org.apache.catalina.jsp_file] > WARNING: Could not find property [org.apache.catalina.jsp_file] > WARNING: Could not find property [org.apache.catalina.jsp_file] > WARNING: Could not find property [org.apache.catalina.jsp_file] > > What is wrong? Is struts 2.1.6 and tiles 2.0.6 integration the 'normal' way > to go if you want to use the latest frameworks? > > Than You, > MPK > -- > View this message in context: > http://www.nabble.com/struts-tiles-warnings-tp25283011p25283011.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: AJAX issues in struts 2.1.6
is struct2 a stealth apache project? your witness, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 3 Sep 2009 19:34:17 -0700 > Subject: Re: AJAX issues in struts 2.1.6 > From: musa...@gmail.com > To: user@struts.apache.org > > I rest my case. > > musachy > > On Thu, Sep 3, 2009 at 7:29 PM, Martin Gainty wrote: > > > > dumb question but i have to ask..what is struct2 > > ? > > Martin Gainty > > __ > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > > dient lediglich dem Austausch von Informationen und entfaltet keine > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > > destinataire prévu, nous te demandons avec bonté que pour satisfaire > > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > > de ceci est interdite. Ce message sert à l'information seulement et n'aura > > pas n'importe quel effet légalement obligatoire. Étant donné que les email > > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > > aucune responsabilité pour le contenu fourni. > > > > > > > > > >> Date: Thu, 3 Sep 2009 18:41:58 -0700 > >> From: t492...@yahoo.com > >> To: user@struts.apache.org > >> Subject: Re: AJAX issues in struts 2.1.6 > >> > >> > >> > >> > >> Wes Wannemacher wrote: > >> > > >> > > >> > You need to add a namespace parameter, based on the error, I'm > >> > assuming that you requested either /list or /list.action in your > >> > browser when the error message was thrown, so change the above to the > >> > following - > >> > > >> > > >> > > >> > > >> > -Wes > >> > > >> > > >> > -- > >> > Wes Wannemacher > >> > > >> > Head Engineer, WanTii, Inc. > >> > Need Training? Struts, Spring, Maven, Tomcat... > >> > Ask me for a quote! > >> > > >> > - > >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> > For additional commands, e-mail: user-h...@struts.apache.org > >> > > >> > > >> > > >> > >> Wes Wannemacher, thx for ur help. But i'm still having the same error.By > >> the > >> way, is there any workable step-by-step tutorial for learning > >> struct2-spring-hibernate? > >> > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25286894.html > >> Sent from the Struts - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > >> > > > > _ > > Get back to school stuff for them and cashback for you. > > http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1 > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
Re: AJAX issues in struts 2.1.6
I rest my case. musachy On Thu, Sep 3, 2009 at 7:29 PM, Martin Gainty wrote: > > dumb question but i have to ask..what is struct2 > ? > Martin Gainty > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Thu, 3 Sep 2009 18:41:58 -0700 >> From: t492...@yahoo.com >> To: user@struts.apache.org >> Subject: Re: AJAX issues in struts 2.1.6 >> >> >> >> >> Wes Wannemacher wrote: >> > >> > >> > You need to add a namespace parameter, based on the error, I'm >> > assuming that you requested either /list or /list.action in your >> > browser when the error message was thrown, so change the above to the >> > following - >> > >> > >> > >> > >> > -Wes >> > >> > >> > -- >> > Wes Wannemacher >> > >> > Head Engineer, WanTii, Inc. >> > Need Training? Struts, Spring, Maven, Tomcat... >> > Ask me for a quote! >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > For additional commands, e-mail: user-h...@struts.apache.org >> > >> > >> > >> >> Wes Wannemacher, thx for ur help. But i'm still having the same error.By the >> way, is there any workable step-by-step tutorial for learning >> struct2-spring-hibernate? >> >> >> -- >> View this message in context: >> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25286894.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > > _ > Get back to school stuff for them and cashback for you. > http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1 -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: AJAX issues in struts 2.1.6
dumb question but i have to ask..what is struct2 ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 3 Sep 2009 18:41:58 -0700 > From: t492...@yahoo.com > To: user@struts.apache.org > Subject: Re: AJAX issues in struts 2.1.6 > > > > > Wes Wannemacher wrote: > > > > > > You need to add a namespace parameter, based on the error, I'm > > assuming that you requested either /list or /list.action in your > > browser when the error message was thrown, so change the above to the > > following - > > > > > > > > > > -Wes > > > > > > -- > > Wes Wannemacher > > > > Head Engineer, WanTii, Inc. > > Need Training? Struts, Spring, Maven, Tomcat... > > Ask me for a quote! > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > Wes Wannemacher, thx for ur help. But i'm still having the same error.By the > way, is there any workable step-by-step tutorial for learning > struct2-spring-hibernate? > > > -- > View this message in context: > http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25286894.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
Re: [OT] Re: Strut2 Picture Upload question: Please Help!
- Original Message > From: hisameer > To: user@struts.apache.org > Sent: Thursday, September 3, 2009 5:15:58 PM > Subject: Re: [OT] Re: Strut2 Picture Upload question: Please Help! > > > Hi Tommy, > > Thanks for your reply. I thought I would get the answer very quickly if I > post the answer on this form after struggling for a week.This is very > general question thats why I did not mention all the requirement. I am > working for an insurance company. And we have existing framework of > Sturts+Spring+Hibernate. And the requirement which I am working on is that > the person who wants to buy the car insurance he has the option to upload > the four pictures of his car.Along with some other details.After selecting > the picture he would like to see which picture he uploaded. He cannot delete > the uploaded picture but at least he should be able to see those four > pictures on the jsp page. He can upload png,jpg or gif files.At the bottom > there is a continue button after continue I have to save those pics into the > database. > > Let me know if you have any questions.Thanks for your efforts and help in > advance. > I suggest you take a look at youtube.com's file upload. Perhaps you might want to consider implementing something similar to theirs but not as advanced? I haven't looked at AJAX in depth very much yet but if you implement simultaneous uploads, you'll have to use threads. You'll have to look at the Commons' FileUpload. That library is the best and probably the only for file upload there is. Like I said before, most of what you're asking is there on the internet. Just google for 'ajax file upload'. After seeing some samples and various methods, you decide to implement your own but run into problems where you can't find the solution, then I'm sure the list is more than happy to help you fix if it deals with Struts. Someone has suggest you to look at jquery plugin. That may work or may not work for you. That's why I suggest you read and find the options available and choose what you like. One of the many things I like about Java is you have more than one way to do something to reach your goal. Regards, Tommy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: AJAX issues in struts 2.1.6
Wes Wannemacher wrote: > > > You need to add a namespace parameter, based on the error, I'm > assuming that you requested either /list or /list.action in your > browser when the error message was thrown, so change the above to the > following - > > > > > -Wes > > > -- > Wes Wannemacher > > Head Engineer, WanTii, Inc. > Need Training? Struts, Spring, Maven, Tomcat... > Ask me for a quote! > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > Wes Wannemacher, thx for ur help. But i'm still having the same error.By the way, is there any workable step-by-step tutorial for learning struct2-spring-hibernate? -- View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25286894.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [OT] Re: Strut2 Picture Upload question: Please Help!
Hi Tommy, Thanks for your reply. I thought I would get the answer very quickly if I post the answer on this form after struggling for a week.This is very general question thats why I did not mention all the requirement. I am working for an insurance company. And we have existing framework of Sturts+Spring+Hibernate. And the requirement which I am working on is that the person who wants to buy the car insurance he has the option to upload the four pictures of his car.Along with some other details.After selecting the picture he would like to see which picture he uploaded. He cannot delete the uploaded picture but at least he should be able to see those four pictures on the jsp page. He can upload png,jpg or gif files.At the bottom there is a continue button after continue I have to save those pics into the database. Let me know if you have any questions.Thanks for your efforts and help in advance. Tommy Pham wrote: > > - Original Message >> From: hisameer >> To: user@struts.apache.org >> Sent: Thursday, September 3, 2009 7:43:03 AM >> Subject: Re: Strut2 Picture Upload question: Please Help! >> >> >> Thanks for the reply. Now what I thought of doing is I will upload the >> picture and show it to in the image tag in the jsp. Now how do I do that? >> The upload should happen dynamically. Thanks for your help in advance. >> > > If I'm not mistaken, what you're asking for is not yet relevant to the > list yet. I think you need to consider the business logic (site > navigation, UI - layout and all, functionalities/features/purpose of the > site, etc) before you begin coding... as this will save headaches to come. > Here's my question your intention... do you want the user to waste his/her > time trying to upload an image to a temporary location on your server (not > mention waste of bandwith and server processing) before the user has the > final decision whether (50%/50%) whether to keep the picture or not??? > Shouldn't the user DECIDE that in the first before clicking browse > (form/ajax) > submit/upload ??? OTOH, if you want to permit the user to > upload as many pictures as he/she wants, then selecting only the images > the user likes best at a certain point later in time w/o having to > upload then that's a another matter. > > This is what I mean by you need evaluate the functions/features of your > site. After you figure out the 1st step, then deal with storage > mechanisms (DB / Filesystems) for the pictures. Then comes coding / site > layout design w/o clear understanding of the 1st 2... your coding > will have unnecessary steps/codes, not to mention your current hurdle... > After you figure out the details of what you want your site to > be/have/offer, then try to learn more in details about the technology you > want to use. If you then you try to implement something but fails, you > should try to troubleshoot/debug 1st and research as much as you can > before asking. All of this you're asking for 95% available on web... Just > spend time to read it. You should first learn as much as you can about > what you want to use, in this case Struts, before asking very basic > question like "picture upload"... There many ways to implement this. Old > school basic html form/post... new school > ajax... another method to use is java applets... the list goes on... :) > > Regards, > Tommy > >> >> Tommy Pham wrote: >> > >> > - Original Message >> >> From: hisameer >> >> To: user@struts.apache.org >> >> Sent: Thursday, September 3, 2009 6:54:14 AM >> >> Subject: RE: Strut2 Picture Upload question: Please Help! >> >> >> >> >> >> I want to do something like this:-The user has upload button. There is >> an >> >> tag on the top of that button which has a picture saying "please >> upload >> >> the >> >> picture". When the user clicks on upload button the file browser will >> >> open >> >> and user can select whatever picture he wants to upload. When user >> clicks >> >> ok >> >> the picture will be displayed in the JSP page replacing the "please >> >> upload >> > >> > If you want to display the selected page dynamically before the actual >> > upload takes place, see my reply regarding scenario 2: >> > >> > "scenario 2: the user selects a picture and ajax will show the picture >> > dynamically on the browser so the user is looking at the picture to >> > confirm it's the right picture prior to upload action??? NOT POSSIBLE! >> > If this was, every identity thief on the net would have field days..." >> > >> > >> >> picture message" . There are four upload buttons in that page and at >> the >> >> bottom there is save button. When the user hits save button all the >> >> pictures >> >> along with other input data should be saved. >> >> >> >> I hope the requirement is clear now. Please put your suggestions or >> any >> >> sample code if you have. >> >> >> >> >> >> >> >> hisameer wrote: >> >> > >> >> > Thanks for your comment. But my question is How can it be d
Re: possible bug in v2.1.6 ??
- Original Message > From: Dale Newfield > To: Struts Users Mailing List > Sent: Thursday, September 3, 2009 1:01:43 PM > Subject: Re: possible bug in v2.1.6 ?? > > I've never found a great reference for .tag files, but good examples are > nearly > as good as documentation, so look at the examples you get in the base > deployment > when you install tomcat. > > -Dale > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org Thanks again Dale. I'll definitely look into via google. I realized from the start that there a different ways (frameworks or not) to doing something similar in Java. That's the beauty of it. You choose what you want to use depending on your requirements. Thanks, Tommy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
I've never found a great reference for .tag files, but good examples are nearly as good as documentation, so look at the examples you get in the base deployment when you install tomcat. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
Tommy Pham wrote: http://onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html -Dale My apologies... getting blurry vision after reading for about 6+ hours .. hehe Thanks Dave for the reference. I'll definitely look into it! Dale ;) Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts tiles warnings
LS, I am using Struts2 version 2.1.6. I would also like to use Tiles2 with it. So I have copied the tiles jars from the struts distribution into my web-inf/lib folder. The tiles jar versions I am using are: struts2-tiles-plugin-2.1.6.jar tiles-jsp-2.0.6.jar tiles-core-2.0.6.jar tiles-api-2.0.6.jar Now the application seems to work, but I am getting the following errors. It also seems to take a lot of time to render a page: WARNING: Could not find property [struts.valueStack] WARNING: Could not find property [org.apache.tiles.AttributeContext.STACK] WARNING: Could not find property [org.apache.tiles.AttributeContext.STACK] WARNING: Could not find property [org.apache.catalina.jsp_file] WARNING: Could not find property [org.apache.catalina.jsp_file] WARNING: Could not find property [org.apache.catalina.jsp_file] WARNING: Could not find property [org.apache.catalina.jsp_file] WARNING: Could not find property [org.apache.catalina.jsp_file] What is wrong? Is struts 2.1.6 and tiles 2.0.6 integration the 'normal' way to go if you want to use the latest frameworks? Than You, MPK -- View this message in context: http://www.nabble.com/struts-tiles-warnings-tp25283011p25283011.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
- Original Message > From: Wes Wannemacher > To: Struts Users Mailing List > Sent: Thursday, September 3, 2009 11:02:58 AM > Subject: Re: possible bug in v2.1.6 ?? > > Thanks for finding a good article for me Dale... > > @Tommy, the article Dale links to (in fact the section of the article > he links to) gives a good explanation of .tag files. > > If you haven't used 'em, give them a try. I try not to get too excited > over technical/programming stuff, but when these babies were > introduced, I shrieked like a little girl (yeah... what of it?!) > > -Wes > > On Thu, Sep 3, 2009 at 1:45 PM, Dale Newfieldwrote: > > Tommy Pham wrote: > >> > >> Wes Wannemacher wrote: > >>> > >>> Another thought, instead of using fragments, have you thought about > >>> using tag files? I quit using includes as soon as the .tag files > >>> became available. > >> > >> I assume you mean Apache's Tiles? > > > > He does not. > > > > http://onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html > > > > -Dale My apologies... getting blurry vision after reading for about 6+ hours .. hehe Thanks Dave for the reference. I'll definitely look into it! Best regards, Tommy > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > -- > Wes Wannemacher > > Head Engineer, WanTii, Inc. > Need Training? Struts, Spring, Maven, Tomcat... > Ask me for a quote! > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts2-jquery plug in
Hi... I will like to know if it is anyway to use the dialog of struts2-jquery plug-in by destroying and clean the html after click on the button link (located on the header). The problem came because I'm using the dialogs like a add/edit form, and they are call for all the edit links on the table with the records. Any ideas, please -- Mileidys González Prieto Consultant i-Frontier www.i-frontier.net Address: Henck Arronstraat 16 Phone:(597) 424073 / (597) 8810219 Fax: (597) 424093 Email: mileidys.gonza...@i-frontier.net - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
Thanks for finding a good article for me Dale... @Tommy, the article Dale links to (in fact the section of the article he links to) gives a good explanation of .tag files. If you haven't used 'em, give them a try. I try not to get too excited over technical/programming stuff, but when these babies were introduced, I shrieked like a little girl (yeah... what of it?!) -Wes On Thu, Sep 3, 2009 at 1:45 PM, Dale Newfield wrote: > Tommy Pham wrote: >> >> Wes Wannemacher wrote: >>> >>> Another thought, instead of using fragments, have you thought about >>> using tag files? I quit using includes as soon as the .tag files >>> became available. >> >> I assume you mean Apache's Tiles? > > He does not. > > http://onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html > > -Dale > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
> Mutjinga's children oh boy, those you don't want to mess with. musachy -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
Tommy Pham wrote: Wes Wannemacher wrote: Another thought, instead of using fragments, have you thought about using tag files? I quit using includes as soon as the .tag files became available. I assume you mean Apache's Tiles? He does not. http://onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Interceptor Stacks [Was: Re: File upload in Struts 2]
Greg Lindholm wrote: Here [1] is where I found the doc on Interceptor Parameter Overriding. [1] http://struts.apache.org/2.1.6/docs/interceptors.html#Interceptors-InterceptorParameterOverriding I'm confused. With "Method 2" is there one instantiated interceptor stack, or two? These are supposed to be reentrant, right? Is the one stack tweaked to and fro every time a request comes in, depending upon the specific action's configuration? That seems like it would cause problems... -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: possible bug in v2.1.6 ??
you'll need to know the JSTL version supported if you use struts core tagliib http://en.wikipedia.org/wiki/Salem_witch_trials Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 3 Sep 2009 13:14:02 -0400 > Subject: Re: possible bug in v2.1.6 ?? > From: greg.lindh...@gmail.com > To: user@struts.apache.org > > On Thu, Sep 3, 2009 at 12:37 PM, Dave Newton wrote: > > > Martin Gainty wrote: > > > >> this is c.tld (tag library descriptor for struts core taglib) > >> > > > > What in the name of Mutjinga's children are you talking about? That's a > > JSTL taglib, and completely unrelated to the issue with the Struts taglib, > > JSPF files, or Tomcat. > > > > Dave > > > > > > > He's a witch, burn him! _ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
Re: possible bug in v2.1.6 ??
- Original Message > From: Wes Wannemacher > To: Struts Users Mailing List > Sent: Thursday, September 3, 2009 7:58:47 AM > Subject: Re: possible bug in v2.1.6 ?? > > On Thu, Sep 3, 2009 at 10:35 AM, Tommy Phamwrote: > > > > Hi Wes, > > > > Why then does it work with Servlet+JSP+JSTL1.2 on the same exact dev > > system? > I'd would agree with you if it fails with just the basics. > > > > Thanks, > > Tommy > > > > To be honest I don't know, my guess is that since the original request > comes in through the jsp servlet, it "just works" whereas the struts > filter catches the request and eventually dispatches to the JSP. I'm > sure if I read the spec and mapped this out as a use-case, there is > probably a logical reason, but I just figured that if you can rename > the fragments, then you are better off... Another thought, instead of > using fragments, have you thought about using tag files? I quit using > includes as soon as the .tag files became available. > > -Wes Hi Wes, I assume you mean Apache's Tiles? I did look at earlier and follow the basic tutorial/guide for version 2.1.3. My understanding is that the structure is not much more different than the includes. With includes, I can later add more complexity (dynamically including/excluding sections) to my site navigation as I originally planned for but not yet implemented. That said, I rather not add more complexity than I'd have to ATM. This project of mine started with MVC Servlet+JSP. I considered form validation methods, both client & server side, which how Struts come into play (no sense reinventing wheel :). As for RIA, can't really be w/o AJAX that's where jQuery/Spry comes in. I have looked & considered JSF 1.2 (both Apache's MyFaces and Sun's Visual JSF) too but didn't quite provide what I was looking for. Also, there's memory usage consideration for added libraries where I may not needed it. This is just my intro phase to java :D Once I've understand more about Java itself, I'd like to work a on another much BIGGER project I have in mind. Using reporting, graphics, threads, etc... Regards, Tommy > -- > Wes Wannemacher > > Head Engineer, WanTii, Inc. > Need Training? Struts, Spring, Maven, Tomcat... > Ask me for a quote! > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
On Thu, Sep 3, 2009 at 12:37 PM, Dave Newton wrote: > Martin Gainty wrote: > >> this is c.tld (tag library descriptor for struts core taglib) >> > > What in the name of Mutjinga's children are you talking about? That's a > JSTL taglib, and completely unrelated to the issue with the Struts taglib, > JSPF files, or Tomcat. > > Dave > > > He's a witch, burn him!
[OT] Re: Strut2 Picture Upload question: Please Help!
- Original Message > From: hisameer > To: user@struts.apache.org > Sent: Thursday, September 3, 2009 7:43:03 AM > Subject: Re: Strut2 Picture Upload question: Please Help! > > > Thanks for the reply. Now what I thought of doing is I will upload the > picture and show it to in the image tag in the jsp. Now how do I do that? > The upload should happen dynamically. Thanks for your help in advance. > If I'm not mistaken, what you're asking for is not yet relevant to the list yet. I think you need to consider the business logic (site navigation, UI - layout and all, functionalities/features/purpose of the site, etc) before you begin coding... as this will save headaches to come. Here's my question your intention... do you want the user to waste his/her time trying to upload an image to a temporary location on your server (not mention waste of bandwith and server processing) before the user has the final decision whether (50%/50%) whether to keep the picture or not??? Shouldn't the user DECIDE that in the first before clicking browse (form/ajax) > submit/upload ??? OTOH, if you want to permit the user to upload as many pictures as he/she wants, then selecting only the images the user likes best at a certain point later in time w/o having to upload then that's a another matter. This is what I mean by you need evaluate the functions/features of your site. After you figure out the 1st step, then deal with storage mechanisms (DB / Filesystems) for the pictures. Then comes coding / site layout design w/o clear understanding of the 1st 2... your coding will have unnecessary steps/codes, not to mention your current hurdle... After you figure out the details of what you want your site to be/have/offer, then try to learn more in details about the technology you want to use. If you then you try to implement something but fails, you should try to troubleshoot/debug 1st and research as much as you can before asking. All of this you're asking for 95% available on web... Just spend time to read it. You should first learn as much as you can about what you want to use, in this case Struts, before asking very basic question like "picture upload"... There many ways to implement this. Old school basic html form/post... new school ajax... another method to use is java applets... the list goes on... :) Regards, Tommy > > Tommy Pham wrote: > > > > - Original Message > >> From: hisameer > >> To: user@struts.apache.org > >> Sent: Thursday, September 3, 2009 6:54:14 AM > >> Subject: RE: Strut2 Picture Upload question: Please Help! > >> > >> > >> I want to do something like this:-The user has upload button. There is an > >> tag on the top of that button which has a picture saying "please upload > >> the > >> picture". When the user clicks on upload button the file browser will > >> open > >> and user can select whatever picture he wants to upload. When user clicks > >> ok > >> the picture will be displayed in the JSP page replacing the "please > >> upload > > > > If you want to display the selected page dynamically before the actual > > upload takes place, see my reply regarding scenario 2: > > > > "scenario 2: the user selects a picture and ajax will show the picture > > dynamically on the browser so the user is looking at the picture to > > confirm it's the right picture prior to upload action??? NOT POSSIBLE! > > If this was, every identity thief on the net would have field days..." > > > > > >> picture message" . There are four upload buttons in that page and at the > >> bottom there is save button. When the user hits save button all the > >> pictures > >> along with other input data should be saved. > >> > >> I hope the requirement is clear now. Please put your suggestions or any > >> sample code if you have. > >> > >> > >> > >> hisameer wrote: > >> > > >> > Thanks for your comment. But my question is How can it be done using > >> AJAX? > >> > I am using dojo plugin in my struts application. But if I use > >> > type="file" name="docs" value="Brows" width="400px"/> > >> > then it also shows the brows location as well. But in my case its only > >> a > >> > simple upload button.What should I do? > >> > > >> > And initially there has to be a placeholder for those pictures as well. > >> > > >> > I am totally confused. Please help! > >> > > >> > > >> > > >> > Lee Clemens-4 wrote: > >> >> > >> >> Maybe have the Upload buttons refresh the page? And load the images > >> from > >> >> the > >> >> action? > >> >> > >> >> Otherwise it would have to be done client side (ajax?) > >> >> > >> >> -Original Message- > >> >> From: hisameer [mailto:cool_sameer_fo...@yahoo.com] > >> >> Sent: Wednesday, September 02, 2009 6:27 PM > >> >> To: user@struts.apache.org > >> >> Subject: Strut2 Picture Upload question: Please Help! > >> >> > >> >> > >> >> I am using Struts 2.1.6 and in my application I have a requirement > >> where > >> >> the > >> >> us
Re: File upload in Struts 2
Here [1] is where I found the doc on Interceptor Parameter Overriding. [1] http://struts.apache.org/2.1.6/docs/interceptors.html#Interceptors-InterceptorParameterOverriding On Thu, Sep 3, 2009 at 11:53 AM, Chris Pratt wrote: > It probably should be. One of the problems I've had over and over is > needing to supply parameters to an interceptor in the middle of the stack. > The only other way is to create a mirror stack just for the one or two new > parameters. Thanks for the valuable information Greg and Wes. > (*Chris*) > > On Thu, Sep 3, 2009 at 8:49 AM, Wes Wannemacher wrote: > > > On Thu, Sep 3, 2009 at 11:42 AM, Chris Pratt > > wrote: > > > Woa! You can do that? I didn't know you could inject parameters into > a > > > specific interceptor by injecting them into the stack! That's awesome. > > We > > > need to make that more obvious in the documentation. > > > (*Chris*) > > > > > > On Thu, Sep 3, 2009 at 6:55 AM, Greg Lindholm > >wrote: > > > > > >> You also need to set the maximumSize in the fileUpload interceptor. > > >> > > >> Here is what I have for 20mb: > > >> > > >> 2000 > > >> > > >> > > > > > > Chris, > > > > I can't remember when we added that, but there is a caveat... I just > > can't remember what the caveat is... I think it only works on certain > > interceptors, or interceptors that inherit from a certain base > > interceptor class. I have to look it up, or you can try to read > > through the code. All that I remember is that it's not a > > general-purpose thing. > > > > -Wes > > > > -- > > Wes Wannemacher > > > > Head Engineer, WanTii, Inc. > > Need Training? Struts, Spring, Maven, Tomcat... > > Ask me for a quote! > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > >
Re: possible bug in v2.1.6 ??
Martin Gainty wrote: this is c.tld (tag library descriptor for struts core taglib) What in the name of Mutjinga's children are you talking about? That's a JSTL taglib, and completely unrelated to the issue with the Struts taglib, JSPF files, or Tomcat. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: logic:iterate
Oops, sorry; I didn't realize this was a struts 1 question. Rusty Wright wrote: http://struts.apache.org/2.1.6/docs/ognl-basics.html senderj wrote: If I have a text input in my jsp named scoreNdays, I know I should declare my variable scoreNdays in the struts formbean with getter and setter like getScoreNdays(). Then it will work with the jsp. Now I have an iternation in my jsp like . Since the two input are indexed, they generate a web form that post with parameter like score[1].scoreNdays. Then I don't know how I should declare the corresponding variables and getter setter in the formbean. Please help. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: File upload in Struts 2
It probably should be. One of the problems I've had over and over is needing to supply parameters to an interceptor in the middle of the stack. The only other way is to create a mirror stack just for the one or two new parameters. Thanks for the valuable information Greg and Wes. (*Chris*) On Thu, Sep 3, 2009 at 8:49 AM, Wes Wannemacher wrote: > On Thu, Sep 3, 2009 at 11:42 AM, Chris Pratt > wrote: > > Woa! You can do that? I didn't know you could inject parameters into a > > specific interceptor by injecting them into the stack! That's awesome. > We > > need to make that more obvious in the documentation. > > (*Chris*) > > > > On Thu, Sep 3, 2009 at 6:55 AM, Greg Lindholm >wrote: > > > >> You also need to set the maximumSize in the fileUpload interceptor. > >> > >> Here is what I have for 20mb: > >> > >> 2000 > >> > >> > > > Chris, > > I can't remember when we added that, but there is a caveat... I just > can't remember what the caveat is... I think it only works on certain > interceptors, or interceptors that inherit from a certain base > interceptor class. I have to look it up, or you can try to read > through the code. All that I remember is that it's not a > general-purpose thing. > > -Wes > > -- > Wes Wannemacher > > Head Engineer, WanTii, Inc. > Need Training? Struts, Spring, Maven, Tomcat... > Ask me for a quote! > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: File upload in Struts 2
On Thu, Sep 3, 2009 at 11:42 AM, Chris Pratt wrote: > Woa! You can do that? I didn't know you could inject parameters into a > specific interceptor by injecting them into the stack! That's awesome. We > need to make that more obvious in the documentation. > (*Chris*) > > On Thu, Sep 3, 2009 at 6:55 AM, Greg Lindholm wrote: > >> You also need to set the maximumSize in the fileUpload interceptor. >> >> Here is what I have for 20mb: >> >> 2000 >> >> Chris, I can't remember when we added that, but there is a caveat... I just can't remember what the caveat is... I think it only works on certain interceptors, or interceptors that inherit from a certain base interceptor class. I have to look it up, or you can try to read through the code. All that I remember is that it's not a general-purpose thing. -Wes -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: File upload in Struts 2
Woa! You can do that? I didn't know you could inject parameters into a specific interceptor by injecting them into the stack! That's awesome. We need to make that more obvious in the documentation. (*Chris*) On Thu, Sep 3, 2009 at 6:55 AM, Greg Lindholm wrote: > You also need to set the maximumSize in the fileUpload interceptor. > > Here is what I have for 20mb: > > 2000 > > > On Thu, Sep 3, 2009 at 5:16 AM, Johnson nickel >wrote: > > > > > Hi all, > > > > I'm developing web applications using struts 2 framework. I have > > upload functionality,I'm not able > > to upload more than 1.5 mb file. > > > > I have defined in struts.xml file name="struts.multipart.maxSize" > > value="2097152" /> > > > > It was getting uploaded in Unix server. But not working in windows > > platform. > > Any changes is required from application or os enviroment. > > > > > > -- > > View this message in context: > > http://www.nabble.com/File-upload-in-Struts-2-tp25272389p25272389.html > > Sent from the Struts - User mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > >
RE: possible bug in v2.1.6 ??
this is c.tld (tag library descriptor for struts core taglib) http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";> 1.0 1.2 c http://java.sun.com/jstl/core JSTL core JSTL 1.0 core library which targets JSTL 1.0 (not JSTL 1.2) Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 3 Sep 2009 07:35:49 -0700 > From: tommy...@yahoo.com > Subject: Re: possible bug in v2.1.6 ?? > To: user@struts.apache.org > > - Original Message > > From: Wes Wannemacher > > To: Struts Users Mailing List > > Sent: Thursday, September 3, 2009 7:18:06 AM > > Subject: Re: possible bug in v2.1.6 ?? > > > > I'm pretty sure the problem is that by default tomcat only maps *.jsp > > to the jsp servlet. You can try to setup an extra servlet mapping in > > your web.xml, but if you can use .jsp instead of .jspf, you're > > probably better off. > > > > You are right, it is a convention to use .jspf (for JSP Fragment), but > > it looks like Tomcat devs forgot about that one ;) > > > > -Wes > > > > > > Hi Wes, > > Why then does it work with Servlet+JSP+JSTL1.2 on the same exact dev system? > I'd would agree with you if it fails with just the basics. > > Thanks, > Tommy > > > > On Thu, Sep 3, 2009 at 9:58 AM, Tommy Phamwrote: > > > > > > Hi Wes, > > > > > > Thank you very much for fast response and solution to my problem (didn't > > > think > > about trying with this). Yes, changing from jspf to jsp works as desired. > > Is > > my implementation wrong? I remember reading somewhere (I can't remember > > where) > > that by convention, jsp fragments should be used with extension .jspf and > > placed > > inside /WEB-INF/jspf/*.jspf where my jspf files are located currently. > > > > > > Thanks, > > > Tommy > > > > > > -- > > Wes Wannemacher > > > > Head Engineer, WanTii, Inc. > > Need Training? Struts, Spring, Maven, Tomcat... > > Ask me for a quote! > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Hotmail® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009
Re: logic:iterate
http://struts.apache.org/2.1.6/docs/ognl-basics.html senderj wrote: If I have a text input in my jsp named scoreNdays, I know I should declare my variable scoreNdays in the struts formbean with getter and setter like getScoreNdays(). Then it will work with the jsp. Now I have an iternation in my jsp like . Since the two input are indexed, they generate a web form that post with parameter like score[1].scoreNdays. Then I don't know how I should declare the corresponding variables and getter setter in the formbean. Please help. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
On Thu, Sep 3, 2009 at 10:35 AM, Tommy Pham wrote: > > Hi Wes, > > Why then does it work with Servlet+JSP+JSTL1.2 on the same exact dev system? > I'd would agree with you if it fails with just the basics. > > Thanks, > Tommy > To be honest I don't know, my guess is that since the original request comes in through the jsp servlet, it "just works" whereas the struts filter catches the request and eventually dispatches to the JSP. I'm sure if I read the spec and mapped this out as a use-case, there is probably a logical reason, but I just figured that if you can rename the fragments, then you are better off... Another thought, instead of using fragments, have you thought about using tag files? I quit using includes as soon as the .tag files became available. -Wes -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Strut2 Picture Upload question: Please Help!
Thanks for the reply. Now what I thought of doing is I will upload the picture and show it to in the image tag in the jsp. Now how do I do that? The upload should happen dynamically. Thanks for your help in advance. Tommy Pham wrote: > > - Original Message >> From: hisameer >> To: user@struts.apache.org >> Sent: Thursday, September 3, 2009 6:54:14 AM >> Subject: RE: Strut2 Picture Upload question: Please Help! >> >> >> I want to do something like this:-The user has upload button. There is an >> tag on the top of that button which has a picture saying "please upload >> the >> picture". When the user clicks on upload button the file browser will >> open >> and user can select whatever picture he wants to upload. When user clicks >> ok >> the picture will be displayed in the JSP page replacing the "please >> upload > > If you want to display the selected page dynamically before the actual > upload takes place, see my reply regarding scenario 2: > > "scenario 2: the user selects a picture and ajax will show the picture > dynamically on the browser so the user is looking at the picture to > confirm it's the right picture prior to upload action??? NOT POSSIBLE! > If this was, every identity thief on the net would have field days..." > > >> picture message" . There are four upload buttons in that page and at the >> bottom there is save button. When the user hits save button all the >> pictures >> along with other input data should be saved. >> >> I hope the requirement is clear now. Please put your suggestions or any >> sample code if you have. >> >> >> >> hisameer wrote: >> > >> > Thanks for your comment. But my question is How can it be done using >> AJAX? >> > I am using dojo plugin in my struts application. But if I use >> > type="file" name="docs" value="Brows" width="400px"/> >> > then it also shows the brows location as well. But in my case its only >> a >> > simple upload button.What should I do? >> > >> > And initially there has to be a placeholder for those pictures as well. >> > >> > I am totally confused. Please help! >> > >> > >> > >> > Lee Clemens-4 wrote: >> >> >> >> Maybe have the Upload buttons refresh the page? And load the images >> from >> >> the >> >> action? >> >> >> >> Otherwise it would have to be done client side (ajax?) >> >> >> >> -Original Message- >> >> From: hisameer [mailto:cool_sameer_fo...@yahoo.com] >> >> Sent: Wednesday, September 02, 2009 6:27 PM >> >> To: user@struts.apache.org >> >> Subject: Strut2 Picture Upload question: Please Help! >> >> >> >> >> >> I am using Struts 2.1.6 and in my application I have a requirement >> where >> >> the >> >> user can upload four pictures of his vehicle.In my JSP, there will be >> >> four >> >> upload buttons corresponding to those four pics(As shown in the below >> >> image). After the user is done selecting the file it should be >> uploaded >> >> in >> >> the JSP right away. >> >> >> >> Below image shows the actual display of the requirement. >> >> >> >> >> >> http://www.nabble.com/file/p25266760/picUploading.jpg >> >> >> >> >> >> Can somebody put some sample code for this kind of requirement or >> suggest >> >> me >> >> what should I do? I am sure this is just a simple requirement but I am >> >> not >> >> able to crack it. >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp252 >> >> 66760p25266760.html >> >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> >> >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25276582.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25277590.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additiona
Re: possible bug in v2.1.6 ??
- Original Message > From: Wes Wannemacher > To: Struts Users Mailing List > Sent: Thursday, September 3, 2009 7:18:06 AM > Subject: Re: possible bug in v2.1.6 ?? > > I'm pretty sure the problem is that by default tomcat only maps *.jsp > to the jsp servlet. You can try to setup an extra servlet mapping in > your web.xml, but if you can use .jsp instead of .jspf, you're > probably better off. > > You are right, it is a convention to use .jspf (for JSP Fragment), but > it looks like Tomcat devs forgot about that one ;) > > -Wes > > Hi Wes, Why then does it work with Servlet+JSP+JSTL1.2 on the same exact dev system? I'd would agree with you if it fails with just the basics. Thanks, Tommy > On Thu, Sep 3, 2009 at 9:58 AM, Tommy Phamwrote: > > > > Hi Wes, > > > > Thank you very much for fast response and solution to my problem (didn't > > think > about trying with this). Yes, changing from jspf to jsp works as desired. > Is > my implementation wrong? I remember reading somewhere (I can't remember > where) > that by convention, jsp fragments should be used with extension .jspf and > placed > inside /WEB-INF/jspf/*.jspf where my jspf files are located currently. > > > > Thanks, > > Tommy > > > -- > Wes Wannemacher > > Head Engineer, WanTii, Inc. > Need Training? Struts, Spring, Maven, Tomcat... > Ask me for a quote! > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Strut2 Picture Upload question: Please Help!
- Original Message > From: hisameer > To: user@struts.apache.org > Sent: Thursday, September 3, 2009 6:54:14 AM > Subject: RE: Strut2 Picture Upload question: Please Help! > > > I want to do something like this:-The user has upload button. There is an > tag on the top of that button which has a picture saying "please upload the > picture". When the user clicks on upload button the file browser will open > and user can select whatever picture he wants to upload. When user clicks ok > the picture will be displayed in the JSP page replacing the "please upload If you want to display the selected page dynamically before the actual upload takes place, see my reply regarding scenario 2: "scenario 2: the user selects a picture and ajax will show the picture dynamically on the browser so the user is looking at the picture to confirm it's the right picture prior to upload action??? NOT POSSIBLE! If this was, every identity thief on the net would have field days..." > picture message" . There are four upload buttons in that page and at the > bottom there is save button. When the user hits save button all the pictures > along with other input data should be saved. > > I hope the requirement is clear now. Please put your suggestions or any > sample code if you have. > > > > hisameer wrote: > > > > Thanks for your comment. But my question is How can it be done using AJAX? > > I am using dojo plugin in my struts application. But if I use > > type="file" name="docs" value="Brows" width="400px"/> > > then it also shows the brows location as well. But in my case its only a > > simple upload button.What should I do? > > > > And initially there has to be a placeholder for those pictures as well. > > > > I am totally confused. Please help! > > > > > > > > Lee Clemens-4 wrote: > >> > >> Maybe have the Upload buttons refresh the page? And load the images from > >> the > >> action? > >> > >> Otherwise it would have to be done client side (ajax?) > >> > >> -Original Message- > >> From: hisameer [mailto:cool_sameer_fo...@yahoo.com] > >> Sent: Wednesday, September 02, 2009 6:27 PM > >> To: user@struts.apache.org > >> Subject: Strut2 Picture Upload question: Please Help! > >> > >> > >> I am using Struts 2.1.6 and in my application I have a requirement where > >> the > >> user can upload four pictures of his vehicle.In my JSP, there will be > >> four > >> upload buttons corresponding to those four pics(As shown in the below > >> image). After the user is done selecting the file it should be uploaded > >> in > >> the JSP right away. > >> > >> Below image shows the actual display of the requirement. > >> > >> > >> http://www.nabble.com/file/p25266760/picUploading.jpg > >> > >> > >> Can somebody put some sample code for this kind of requirement or suggest > >> me > >> what should I do? I am sure this is just a simple requirement but I am > >> not > >> able to crack it. > >> -- > >> View this message in context: > >> http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp252 > >> 66760p25266760.html > >> Sent from the Struts - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > >> > >> > >> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > >> > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25276582.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
I'm pretty sure the problem is that by default tomcat only maps *.jsp to the jsp servlet. You can try to setup an extra servlet mapping in your web.xml, but if you can use .jsp instead of .jspf, you're probably better off. You are right, it is a convention to use .jspf (for JSP Fragment), but it looks like Tomcat devs forgot about that one ;) -Wes On Thu, Sep 3, 2009 at 9:58 AM, Tommy Pham wrote: > > Hi Wes, > > Thank you very much for fast response and solution to my problem (didn't > think about trying with this). Yes, changing from jspf to jsp works as > desired. Is my implementation wrong? I remember reading somewhere (I can't > remember where) that by convention, jsp fragments should be used with > extension .jspf and placed inside /WEB-INF/jspf/*.jspf where my jspf files > are located currently. > > Thanks, > Tommy -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
Hi Wes, Thank you very much for fast response and solution to my problem (didn't think about trying with this). Yes, changing from jspf to jsp works as desired. Is my implementation wrong? I remember reading somewhere (I can't remember where) that by convention, jsp fragments should be used with extension .jspf and placed inside /WEB-INF/jspf/*.jspf where my jspf files are located currently. Thanks, Tommy - Original Message > From: Wes Wannemacher > To: Struts Users Mailing List > Sent: Thursday, September 3, 2009 6:50:23 AM > Subject: Re: possible bug in v2.1.6 ?? > > Just for troubleshooting purposes try to change the filename of the > included file to .jsp instead of .jspf... I have a theory, but I want > you to verify it first. > > -Wes > > On Thu, Sep 3, 2009 at 9:27 AM, Tommy Phamwrote: > > Hi, > > > > I think I may have found a bug. Here's the problem I've encountered. The > final UI is based on this: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I'm currently testing both jquery & spry frameworks for ajax. If the > > source > is all in one page, every thing works including the struts tags, specifically > . However, if I put each section in it's own jspf file, the struts > tags break. Here's my usage: > > > > main.jsp: > > > > > > > > > > > > > > > > > > > > > > > > > > > > I also tried using <%@ include /> directive also with the same undesirable > results. I've included the <%@ taglib /> for any page that uses the struts > tag(s). The undesired results, when I use > />">test, I see this in the final UI (web page source code) which gives > action not mapped 404 error: > > > > http://localhost:8090/recipes/%3Cs:url%20value= > > > > The expected & desired result is http://localhost:8090/recipes/myPath > > > > recipes is my app context. Has anyone seen this problem before? This > > works > just fine in Servlet+JSP+JSTL1.2+Hibernate with either or > <%...@include %>. > > > > TIA, > > Tommy > > > > PS: Dev environment is Win08 x64, JDK 1.6u14 x64, TC6.0.20, Struts 2.1.6, > Hibernate 3.3.2.GA. Both jquery (1.3.2 and jquery ui 1.7.2) & spry (1.6.1) > are > on the same page. (Spry has something I like and jquery has the other parts > I > like better). > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > -- > Wes Wannemacher > > Head Engineer, WanTii, Inc. > Need Training? Struts, Spring, Maven, Tomcat... > Ask me for a quote! > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Strut2 Picture Upload question: Please Help!
Thanks for your reply. Can you please put some sample code in this regard. I am trying to read jquery plug-in documentation but would be great if you can put just a sample code for one picand I will handle the rest of it. Thanks in advance. Johannes Geppert wrote: > > you can use the jQuery Plugin for this use case. > jQuery makes automatically a iframe submit for forms > with file upload. > > http://code.google.com/p/struts2-jquery/ > > > Nils-Helge Garli wrote: >> >> A form with file input can't be submitted with Ajax. You either have >> to do some iframe magic or use a flash component. Do a google search >> for "ajax file upload" to find some options. I've been using SWFUpload >> [1] for this purpose. >> >> Nils-H >> > > -- View this message in context: http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25276624.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: File upload in Struts 2
You also need to set the maximumSize in the fileUpload interceptor. Here is what I have for 20mb: 2000 On Thu, Sep 3, 2009 at 5:16 AM, Johnson nickel wrote: > > Hi all, > > I'm developing web applications using struts 2 framework. I have > upload functionality,I'm not able > to upload more than 1.5 mb file. > > I have defined in struts.xml file value="2097152" /> > > It was getting uploaded in Unix server. But not working in windows > platform. > Any changes is required from application or os enviroment. > > > -- > View this message in context: > http://www.nabble.com/File-upload-in-Struts-2-tp25272389p25272389.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
RE: Strut2 Picture Upload question: Please Help!
I want to do something like this:-The user has upload button. There is an tag on the top of that button which has a picture saying "please upload the picture". When the user clicks on upload button the file browser will open and user can select whatever picture he wants to upload. When user clicks ok the picture will be displayed in the JSP page replacing the "please upload picture message" . There are four upload buttons in that page and at the bottom there is save button. When the user hits save button all the pictures along with other input data should be saved. I hope the requirement is clear now. Please put your suggestions or any sample code if you have. hisameer wrote: > > Thanks for your comment. But my question is How can it be done using AJAX? > I am using dojo plugin in my struts application. But if I use type="file" name="docs" value="Brows" width="400px"/> > then it also shows the brows location as well. But in my case its only a > simple upload button.What should I do? > > And initially there has to be a placeholder for those pictures as well. > > I am totally confused. Please help! > > > > Lee Clemens-4 wrote: >> >> Maybe have the Upload buttons refresh the page? And load the images from >> the >> action? >> >> Otherwise it would have to be done client side (ajax?) >> >> -Original Message- >> From: hisameer [mailto:cool_sameer_fo...@yahoo.com] >> Sent: Wednesday, September 02, 2009 6:27 PM >> To: user@struts.apache.org >> Subject: Strut2 Picture Upload question: Please Help! >> >> >> I am using Struts 2.1.6 and in my application I have a requirement where >> the >> user can upload four pictures of his vehicle.In my JSP, there will be >> four >> upload buttons corresponding to those four pics(As shown in the below >> image). After the user is done selecting the file it should be uploaded >> in >> the JSP right away. >> >> Below image shows the actual display of the requirement. >> >> >> http://www.nabble.com/file/p25266760/picUploading.jpg >> >> >> Can somebody put some sample code for this kind of requirement or suggest >> me >> what should I do? I am sure this is just a simple requirement but I am >> not >> able to crack it. >> -- >> View this message in context: >> http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp252 >> 66760p25266760.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- View this message in context: http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25276582.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: possible bug in v2.1.6 ??
Just for troubleshooting purposes try to change the filename of the included file to .jsp instead of .jspf... I have a theory, but I want you to verify it first. -Wes On Thu, Sep 3, 2009 at 9:27 AM, Tommy Pham wrote: > Hi, > > I think I may have found a bug. Here's the problem I've encountered. The > final UI is based on this: > > > > > > > > > > > > > > > I'm currently testing both jquery & spry frameworks for ajax. If the source > is all in one page, every thing works including the struts tags, specifically > . However, if I put each section in it's own jspf file, the struts > tags break. Here's my usage: > > main.jsp: > > > > > > > > > > > > > > I also tried using <%@ include /> directive also with the same undesirable > results. I've included the <%@ taglib /> for any page that uses the struts > tag(s). The undesired results, when I use />">test, I see this in the final UI (web page source code) which gives > action not mapped 404 error: > > http://localhost:8090/recipes/%3Cs:url%20value= > > The expected & desired result is http://localhost:8090/recipes/myPath > > recipes is my app context. Has anyone seen this problem before? This works > just fine in Servlet+JSP+JSTL1.2+Hibernate with either or > <%...@include %>. > > TIA, > Tommy > > PS: Dev environment is Win08 x64, JDK 1.6u14 x64, TC6.0.20, Struts 2.1.6, > Hibernate 3.3.2.GA. Both jquery (1.3.2 and jquery ui 1.7.2) & spry (1.6.1) > are on the same page. (Spry has something I like and jquery has the other > parts I like better). > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 custom ClassLoader
I would suggest creating your own plugin... If the custom classes are actions, validators, interceptors and type converters then just take a look at the spring plugin for an example. You will want to write your own implementation of the ObjectFactory, the ObjectFactory is in charge of creating the struts2 app's actions, validators, interceptors, type converters and beans. As far as enhancing the functionality of struts.xml processing, I would first suggest you see if you can retrofit your application to work with one of the existing plugins like 'conventions'. I only say this because enhancing the XmlConfigurationProvider is quite a bit more daunting than extending the ObjectFactory. If you really can't adopt an existing plugin for configuration, then create an implementation of ConfigurationProvider and take a look at the StrutsXmlConfigurationProvider and see if you can get the dispatcher to honor your new ConfigurationProvider. -Wes On Thu, Sep 3, 2009 at 9:33 AM, Andriy Pererva wrote: > Hi, all! > I'm working on a big java web project, which is based on Struts 2 > framework. Now we are going to do some refactoring and split the > project up in some parts: core and other auxillary functionality > modules. Core classes located under classpath, but all the auxillary > functionality classes will be moved to database and loaded via our > custom ClassLoader. Among these classes there are some Stuts actions > and part of the struts.xml file with appropriate mapping. > How can I make Struts 2 aware of my custom ClassLoader in order to > load these auxillary action classes from DB. Currently Struts cannot > find and instantinate any of them > Any suggestions would be very appreciated! > > Thank you in advance for any useful answer. > > With best regards, > Andriy. > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
possible bug in v2.1.6 ??
Hi, I think I may have found a bug. Here's the problem I've encountered. The final UI is based on this: I'm currently testing both jquery & spry frameworks for ajax. If the source is all in one page, every thing works including the struts tags, specifically . However, if I put each section in it's own jspf file, the struts tags break. Here's my usage: main.jsp: I also tried using <%@ include /> directive also with the same undesirable results. I've included the <%@ taglib /> for any page that uses the struts tag(s). The undesired results, when I use ">test, I see this in the final UI (web page source code) which gives action not mapped 404 error: http://localhost:8090/recipes/%3Cs:url%20value= The expected & desired result is http://localhost:8090/recipes/myPath recipes is my app context. Has anyone seen this problem before? This works just fine in Servlet+JSP+JSTL1.2+Hibernate with either or <%...@include %>. TIA, Tommy PS: Dev environment is Win08 x64, JDK 1.6u14 x64, TC6.0.20, Struts 2.1.6, Hibernate 3.3.2.GA. Both jquery (1.3.2 and jquery ui 1.7.2) & spry (1.6.1) are on the same page. (Spry has something I like and jquery has the other parts I like better). - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts 2 custom ClassLoader
Hi, all! I'm working on a big java web project, which is based on Struts 2 framework. Now we are going to do some refactoring and split the project up in some parts: core and other auxillary functionality modules. Core classes located under classpath, but all the auxillary functionality classes will be moved to database and loaded via our custom ClassLoader. Among these classes there are some Stuts actions and part of the struts.xml file with appropriate mapping. How can I make Struts 2 aware of my custom ClassLoader in order to load these auxillary action classes from DB. Currently Struts cannot find and instantinate any of them Any suggestions would be very appreciated! Thank you in advance for any useful answer. With best regards, Andriy. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: AJAX issues in struts 2.1.6
On Thu, Sep 3, 2009 at 5:57 AM, calintz wrote: > > > You need to add a namespace parameter, based on the error, I'm assuming that you requested either /list or /list.action in your browser when the error message was thrown, so change the above to the following - -Wes -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Strut2 Picture Upload question: Please Help!
you can use the jQuery Plugin for this use case. jQuery makes automatically a iframe submit for forms with file upload. http://code.google.com/p/struts2-jquery/ Nils-Helge Garli wrote: > > A form with file input can't be submitted with Ajax. You either have > to do some iframe magic or use a flash component. Do a google search > for "ajax file upload" to find some options. I've been using SWFUpload > [1] for this purpose. > > Nils-H > - --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep -- View this message in context: http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25275259.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Confused
Ok now I recall it was Shale, which in my understanding is the next incarnation of Struts that had the brakes put on. I read it on an article Craig wrote regarding selection of JSF/Seam/Struts. -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Thursday, 3 September 2009 6:31 PM To: Struts Users Mailing List Subject: Re: Confused C N Davies wrote: > I'm starting a new project and intended to use struts but I read on the > struts site a few months back that struts was dead and no longer going to be > developed, because Craig Mc. was saying that there are other APIs , like > Seam and JSF that filled the void already. Where on the Struts site does it say that? > So is struts still being developed going forward or is this the last release > and it'll end up being archived away? Struts 2 development moves on apace; Struts 1 somewhat less so. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts newbie validate
Hi, I have to server-side validate user input data in a production system. Here are some code snippets: struts-config.xml As far as I know, when the user clicks http://localhost:8080/xxx/yyy.do?method=MyMethod It forwards to MyTilesInput. MyTilesInput form has the user input fields that I need to validate, but this jsp code has the same action xxx/yyy.do. When the user submits, it becomes http://localhost:8080/xxx/yyy.do?method=SecondMethod. If I put validate = "true" and a input tag, it does the validate when the form MyTilesInput loads, but I need to validate after the user input. Am I clear? -- View this message in context: http://www.nabble.com/struts-newbie-validate-tp25274645p25274645.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: code inserting data into database twice
- Original Message > From: Struts234 > To: user@struts.apache.org > Sent: Monday, August 31, 2009 3:32:36 PM > Subject: code inserting data into database twice > > > Hi folks, > > > I wrote the following code to insert values into database. But it's > crazy, this is inserting the values twice. here are the code below. > > if(activity.equalsIgnoreCase(" > declineParticipation")){ > > if(isTokenValid(request)){ > > // Validate the supervisor Info.. > TeleworkDelegate delegate = new TeleworkDelegate(); > String[] supervisorInfo = > delegate.validateSupervisorEmail(theForm.getSupervisorEmail().toLowerCase()); > String supervisorCustomerId = supervisorInfo[2]; > String role = supervisorInfo[3]; > // Update the supervisor info into database.. > user.setSupervisorName(supervisorInfo[1]+ " " + > supervisorInfo[0]); > > user.setSupervisorEmail(theForm.getSupervisorEmail()); > > delegate.updateSupervisorInfo(user,supervisorCustomerId ); > > // Generate unique agreement number.. > int teleworkAgreementId = > delegate.generateTeleworkAgreementNumber(); > // call the create agreement method to insert data > into DB.. > > createDeclineParticipation(user,teleworkAgreementId); > // update the decline participation info into DB > delegate.declineParticipation(user); > > > // 4 > return mapping.findForward("logon"); > } > else > { > request.setAttribute("errorKey", new > String("error.telework.teleworkagreement.duplicatesubmission")); > return mapping.findForward("logon"); > } > } > > > private void createDeclineParticipation(UserInfoVO user, int > teleworkAgreementId ) throws DatabaseException, TeleworkException { > // TODO Auto-generated method stub > TeleworkDelegate teleworkDelegate = new TeleworkDelegate(); > TeleworkScheduleVO scheduleVO = new TeleworkScheduleVO(); > TeleworkAgreementVO agreementVO = new TeleworkAgreementVO(); > scheduleVO.setTeleworkAgreementID(teleworkAgreementId); > agreementVO.setTeleworkAgreementId(teleworkAgreementId); > agreementVO.setDateCompletedTraining("07/21/2009"); > agreementVO.setAgreementStatus(Constants.AGREEMENT_DECLINED); > teleworkDelegate.createDeclineTeleworkAgreement(user, > scheduleVO, agreementVO); > } > > > this code is generating 2 unique number and inserting values twice into > database. Means, when i hit a submit button, it has to get the max number > from the database and add 1 to it and insert the record. instead of it, it > is inserting twice. Ex when i hit the submit botton, it has to get the > number is 4, but it's inserting 4 and 5 into the database. > > don't know why it's doing like, I would appreciate if you could help me > on this. > > Thanks, > > -- > View this message in context: > http://www.nabble.com/code-inserting-data-into-database-twice-tp25231274p25231274.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org Why not just insert the data into a table and get the generated key from identity (primary key) column? If you're using surrogate key, better to implement stored procedure? If the data insertion spans multiple tables, transactions + generated key return ?? Any case, you might want to take a closer look at your teleworkDelegate.createDeclineTeleworkAgreement()... this might your problem ;) Regards, Tommy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: httpheader result type
Thanks folks... My goal is to deliver PDFs back to an automated process from an already existing Web application (it's internal so security isn't an issue), which has a Struts front end for the UI. A simple HTTP GET request seems to fit the bill. Once the automated process has been written the validation will be largely superfluous as the request data should always(?) be right, so I think I can probably get away with a status code (404?) with no message, and just use logging to record the nature of problems. Thanks again for your help. Mark. newton.dave wrote: > > FWIW, I did a quick dispatcher result hack that allows setting the HTTP > result; we use it for Ajax calls (not 404s). I'll probably fold that > property back into S2, but like Wes said it's not so handy for 404s. > > Dave > > Wes Wannemacher wrote: >> 404 is a tricky header... Most of the time, you really don't want to >> send content along with an http header, think of redirects, etc. If >> you want some app-specific behavior, I would try to fit it into your >> app rather than trying to munge headers. In the case of redirects, >> when you see content it is because the redirect is happening with >> either meta-refresh or javascript. When the web server sends a 302 (or >> whatever the number), you don't see anything but a blank page (or the >> previously loaded page) in the browser. One nifty trick I have seen is >> to go to a "landing" page that has a meta-refresh who's target is >> redirected... Not sure how that is better, but my brain nearly >> exploded when I tried to figure out what was going on. >> >> What makes 404 tricky is that it is a header that is often associated >> with content, since no one likes to see the stock >> apache/tomcat/jetty/whatever error pages. The saving grace here is >> that you can use web.xml in a container-nonspecific way to create a >> 404 page. If what you're looking for is to pretty-up the 404 page, use >> web.xml and skip any of the struts configuration. If you are looking >> to incorporate 404 into some sort of application-specific logic, make >> sure that's *really* what you want to do first, then if so, check one >> more time before you do it, then after that, that is when you'll want >> to try to code up your solution. >> >> -Wes >> >> On Wed, Sep 2, 2009 at 9:33 AM, Mark Rollins >> wrote: >>> Thanks Wes. >>> >>> The 'documentation' (it's very limited) gives the impression that you >>> can >>> specify an error message when using the errorMessage parameter with the >>> error parameter, and even being able to pick up a message from the value >>> stack using an OGNL expression. >>> >>> Having looked at what is returned (firebug in firefox), I can see no >>> mention >>> of the error and the content (as you said) is empty. >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/httpheader-result-type-tp25254438p25257727.html >>> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> >> >> >> > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/httpheader-result-type-tp25254438p25273805.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: ResourceBundle with DB backend
- Original Message > From: Mike Baranski > To: Struts Users Mailing List > Sent: Monday, August 31, 2009 5:55:27 AM > Subject: RE: ResourceBundle with DB backend > > Tommy, > > Here you go, this is what I did. I don't know if it's the "best" way, but > it works: > > http://mikeski.net/site/node/37 > > Mike. > Hi Mike, Thanks for the posting the code. I was thinking if it would be possible to just to extend the CompositeTextProvider from xwork and combine it with Locale and NumberFormat to get data from DB based on user request. I haven't thought about the details yet since I'm still new to java but it's just concept/idea. :) This way the dynamic conversion for numbers and date can be done in one class (?) Thanks, Tommy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Session data
- Original Message > From: Dai Le > To: user@struts.apache.org > Sent: Wednesday, September 2, 2009 4:59:02 PM > Subject: Session data > > Hi, > > > > I developed a data collection web application using struts 1.2.9 and I've > run into a problem that I cannot find a solution to. The amount of data > being collected is quite a bit so pass the information along in session > variables. The problem arises when a user has multiple instances of the > website opened, the session data is crossed with each other. Because all Multipe instances as in multiple tabs/windows of the same web browser by the same user? or Multiple instances of different web browsers (FF, IE, etc) by the same user? > the instances share the same session, it's causing the session data to be > crossed or overwritten. Does anyone have any ideas or thoughts on the > matter? Is there any way to create a new session each time the user open a > new instance of my web application. I've tried using URL rewriting and it Let's say that you have some very paranoid users whom disables JS, applets, and cookies, the session would be tracked by by url. You'll have to come up some mechanisms to validate the session against 'copy and paste' of the url. > generates new jsessionids but the clients will to have cookies disabled on > their browser and it's not common to ask users to disable cookies on their > browser. Hope this makes some sense to someone, I'm having a hard Once you have the mechanisms to validate the session, why not keep the session data in the db or possibly to a secured /path/to/private/session/data outside the webapps folder (presumably you're using TC) if you're concerned about taxing your DB server. To prevent the session data from overwritten/mixed, consider using concurrency update method by comparing original data (from source - ie DB, XML, etc), session data, and with new data. This method is a must for multithreaded apps accessing the db, else you'll hear it from your DBA(s) and/or account manager/executive ;) (Note: the user here may not necessarily be the clients, it could be an employee.) Of course, validating the session in a cookieless environment is very hard to implement. If there is some personal information involved, you may have to enforce cookies with some verification mechanisms (including encryption) to protect the users. Trust me, if you ever have to comply with PCI/DSS, it's no joke... Regards, Tommy > describing the problem. Thanks in advance. > > > > Dai Le > > Developer > > Pinney Insurance Center, Inc. > > 2266 Lava Ridge Ct. > > Roseville, CA 95661 > > (916)773-2800 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Strut2 Picture Upload question: Please Help!
A form with file input can't be submitted with Ajax. You either have to do some iframe magic or use a flash component. Do a google search for "ajax file upload" to find some options. I've been using SWFUpload [1] for this purpose. Nils-H [1] - http://code.google.com/p/swfupload/ On Thu, Sep 3, 2009 at 1:49 AM, hisameer wrote: > > Thanks for your comment. But my question is How can it be done using AJAX? I > am using dojo plugin in my struts application. But if I use type="file" name="docs" value="Brows" width="400px"/> > then it also shows the brows location as well. But in my case its only a > simple upload button.What should I do? > > And initially there has to be a placeholder for those pictures as well. > > I am totally confused. Please help! > > > > Lee Clemens-4 wrote: >> >> Maybe have the Upload buttons refresh the page? And load the images from >> the >> action? >> >> Otherwise it would have to be done client side (ajax?) >> >> -Original Message- >> From: hisameer [mailto:cool_sameer_fo...@yahoo.com] >> Sent: Wednesday, September 02, 2009 6:27 PM >> To: user@struts.apache.org >> Subject: Strut2 Picture Upload question: Please Help! >> >> >> I am using Struts 2.1.6 and in my application I have a requirement where >> the >> user can upload four pictures of his vehicle.In my JSP, there will be four >> upload buttons corresponding to those four pics(As shown in the below >> image). After the user is done selecting the file it should be uploaded in >> the JSP right away. >> >> Below image shows the actual display of the requirement. >> >> >> http://www.nabble.com/file/p25266760/picUploading.jpg >> >> >> Can somebody put some sample code for this kind of requirement or suggest >> me >> what should I do? I am sure this is just a simple requirement but I am not >> able to crack it. >> -- >> View this message in context: >> http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp252 >> 66760p25266760.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- > View this message in context: > http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25267581.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Confused
C N Davies wrote: I'm starting a new project and intended to use struts but I read on the struts site a few months back that struts was dead and no longer going to be developed, because Craig Mc. was saying that there are other APIs , like Seam and JSF that filled the void already. Where on the Struts site does it say that? So is struts still being developed going forward or is this the last release and it'll end up being archived away? Struts 2 development moves on apace; Struts 1 somewhat less so. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Session data
On Thu, Sep 03, 2009 at 12:59:02AM +0100, Dai Le wrote: > Hi, > > > > I developed a data collection web application using struts 1.2.9 and I've > run into a problem that I cannot find a solution to. The amount of data > being collected is quite a bit so pass the information along in session > variables. The problem arises when a user has multiple instances of the > website opened, the session data is crossed with each other. Because all > the instances share the same session, it's causing the session data to be > crossed or overwritten. Does anyone have any ideas or thoughts on the > matter? Is there any way to create a new session each time the user open a > new instance of my web application. I've tried using URL rewriting and it > generates new jsessionids but the clients will to have cookies disabled on > their browser and it's not common to ask users to disable cookies on their > browser. Hope this makes some sense to someone, I'm having a hard > describing the problem. Thanks in advance. I think that by "instances of the website" you mean distinct sessions with the same application, in the way you might have multiple ssh clients running on the same host and connecting to the same remote host too. With web applications, this is not possible because your server talks to just one browser process, which may display multiple windows (or tabs etc.). The browser process has no concept of a web application, It only distinguishes servers (by their FQDN); if a server has set a cookie, the browser will include that cookie in all requests it sends to the server, regardless of which window is involved. It's possible in principle to keep sessions apart by generating distinct URLs, but it's difficult (if not impossible) to use the standard session mechanism that the container provides in this case. Considering that users have numerous ways of creating multiple windows to the same application (cloning windows, cutting & pasting URLs, "open in new window" context menu items etc.), it's best to avoid trying to create multiple sessions of a web app with one browser process, as users will very easily lose track of which window belongs to what session. Best regards, Jan -- +- Jan T. Kim ---+ | email: j@uea.ac.uk | | WWW: http://www.cmp.uea.ac.uk/people/jtk | *-=< hierarchical systems are for files, not for humans >=-* - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Strut2 Picture Upload question: Please Help!
- Original Message > From: hisameer > To: user@struts.apache.org > Sent: Wednesday, September 2, 2009 4:49:05 PM > Subject: RE: Strut2 Picture Upload question: Please Help! > > > Thanks for your comment. But my question is How can it be done using AJAX? I > am using dojo plugin in my struts application. But if I use > type="file" name="docs" value="Brows" width="400px"/> > then it also shows the brows location as well. But in my case its only a > simple upload button.What should I do? > > And initially there has to be a placeholder for those pictures as well. > > I am totally confused. Please help! > > > > Lee Clemens-4 wrote: > > > > Maybe have the Upload buttons refresh the page? And load the images from > > the > > action? > > > > Otherwise it would have to be done client side (ajax?) > > > > -Original Message- > > From: hisameer [mailto:cool_sameer_fo...@yahoo.com] > > Sent: Wednesday, September 02, 2009 6:27 PM > > To: user@struts.apache.org > > Subject: Strut2 Picture Upload question: Please Help! > > > > > > I am using Struts 2.1.6 and in my application I have a requirement where > > the > > user can upload four pictures of his vehicle.In my JSP, there will be four > > upload buttons corresponding to those four pics(As shown in the below > > image). After the user is done selecting the file it should be uploaded in > > the JSP right away. > > > > Below image shows the actual display of the requirement. > > > > > > http://www.nabble.com/file/p25266760/picUploading.jpg > > > > > > Can somebody put some sample code for this kind of requirement or suggest > > me > > what should I do? I am sure this is just a simple requirement but I am not > > able to crack it. > > -- > > View this message in context: > > http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp252 > > 66760p25266760.html > > Sent from the Struts - User mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25267581.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org I don't get what you're trying to achieve... scenario 1: something like youtube.com ajax uploads? The user can upload multiple files but only will be uploading while the rest in queue. The user can modify the settings as necessary (names, description, etc) while in the upload page and the files are uploading. scenario 2: the user selects a picture and ajax will show the picture dynamically on the browser so the user is looking at the picture to confirm it's the right picture prior to upload action??? NOT POSSIBLE! If this was, every identity thief on the net would have field days... scenario 3: the user select multiple files to be uploaded at once?? You might want to look deeper into the commons FileUpload... it's very nice and powerful if you can implement it correctly. If you haven't noticed it by now, most of the java frameworks I've seen Struts (1 & 2), JSF (Apache's MyFaces and Sun's Visual) uses the commons FileUpload. Regards, Tommy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: AJAX issues in struts 2.1.6
I have no idea... This seems to be an entirely different thing form the original post... But I'm new to struts2 so don't take my word for granted. By the way, FilterDispatcher is deprecated. What I use in my toy application is: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* Best, Ernesto On Thu, Sep 3, 2009 at 11:57 AM, calintz wrote: > > After changed to debug="true"/> > i'm having another problem. what should i set for my ?? > > this is part of my web.xml > > >struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > >actionPackages >pages/list.actions > > > > >struts2 >/* > > --- > this is my structs.xml > > > > > > > > >pages/list.jsp >pages/list.jsp > > > >pages/list.jsp >pages/list.jsp > > > >pages/list.jsp >pages/list.jsp > > > > > > > my error message is > > WARNING: Could not find action or result > There is no Action mapped for namespace / and action name list. - [unknown > location] >at > > com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177) >at > > org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61) >at > > org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) >at > > com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47) >at > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458) >at > > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) >at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) >at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) >at > > org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112) > at > > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) >at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) >at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) >at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) >at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) >at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) >at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) >at > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) >at > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) >at > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) >at > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) >at java.lang.Thread.run(Unknown Source) > -- > View this message in context: > http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25272908.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: AJAX issues in struts 2.1.6
After changed to i'm having another problem. what should i set for my ?? this is part of my web.xml struts2 org.apache.struts2.dispatcher.FilterDispatcher actionPackages pages/list.actions struts2 /* --- this is my structs.xml pages/list.jsp pages/list.jsp pages/list.jsp pages/list.jsp pages/list.jsp pages/list.jsp my error message is WARNING: Could not find action or result There is no Action mapped for namespace / and action name list. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177) at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61) at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Unknown Source) -- View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25272908.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Confused
Hi, I'm starting a new project and intended to use struts but I read on the struts site a few months back that struts was dead and no longer going to be developed, because Craig Mc. was saying that there are other APIs , like Seam and JSF that filled the void already. I looked today and I see that it seems to be alive and kicking So is struts still being developed going forward or is this the last release and it'll end up being archived away? Thanks! Chris
File upload in Struts 2
Hi all, I'm developing web applications using struts 2 framework. I have upload functionality,I'm not able to upload more than 1.5 mb file. I have defined in struts.xml file It was getting uploaded in Unix server. But not working in windows platform. Any changes is required from application or os enviroment. -- View this message in context: http://www.nabble.com/File-upload-in-Struts-2-tp25272389p25272389.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: AJAX issues in struts 2.1.6
Maybe just ? Or if you don't want JS to be cached? Best, Ernesto On Thu, Sep 3, 2009 at 10:27 AM, calintz wrote: > > Hello everyone, i need help here~ > > these are my jar files > struts2-dojo-plugin-2.1.6 > struts2-core-2.1.6 > --- > > this is my index.jsp > <%@ taglib prefix="s" uri="/struts-tags"%> > <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> > > > > > > there is a yellow line under the "debug" keyword(Undefined attribute name > "debug"). > If i change the 'theme' keyword. > Any solution??thx for your advance~! > > > the error that i get > > exception > > org.apache.jasper.JasperException: /index.jsp(4,2) Attribute debug invalid > for tag head according to TLD > > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) > > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) > > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236) > > > org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:986) > > > org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:706) >org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442) >org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166) >org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216) >org.apache.jasper.compiler.Node$Visitor.visit(Node.java:) >org.apache.jasper.compiler.Node$Root.accept(Node.java:457) >org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166) >org.apache.jasper.compiler.Validator.validate(Validator.java:1484) >org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) >org.apache.jasper.compiler.Compiler.compile(Compiler.java:296) >org.apache.jasper.compiler.Compiler.compile(Compiler.java:277) >org.apache.jasper.compiler.Compiler.compile(Compiler.java:265) > > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564) > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) >javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389) > > > org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112) > > > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) > > > > > -- > View this message in context: > http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25271737.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: AJAX issues in struts 2.1.6
Hello everyone, i need help here~ these are my jar files struts2-dojo-plugin-2.1.6 struts2-core-2.1.6 --- this is my index.jsp <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> there is a yellow line under the "debug" keyword(Undefined attribute name "debug"). If i change the http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25271737.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Using JSF and tiles
Hi Martin, Thanks for your email, so are you able to accept the contract 22 is a decent rate could be better. Cheers, ZIED BEJAOUI Tel: 0044(0)7506628905 > From: mgai...@hotmail.com > To: user@struts.apache.org > Subject: RE: Using JSF and tiles > Date: Wed, 2 Sep 2009 15:22:18 -0400 > > > bejaouizied > > this guy emailed me on a contract in london (22&/hr flat for duration of > contract) > > w.bottri...@computerfutures.com > > HTH > Martin Gainty > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > From: bejaouiz...@hotmail.com > > To: user@struts.apache.org > > Subject: Using JSF and tiles > > Date: Wed, 2 Sep 2009 16:17:39 +0100 > > > > > > Hi guys, > > > > I am trying to use a JSF files as a body of a tiles definition, however > > when i run my example the jsf file is noy showing up > > > > here is my definition: > > > > > > > > > > > > > > > > > > > > > > > > home.jsp is a jsf file. > > > > > > > > ZIED BEJAOUI > > Tel: 0044(0)7506628905 > > > > > > > > > > > > _ > > Un avatar à votre image ? Créez votre mini-moi ! > > http://www.ilovemessenger.fr/minimize-me/ > > _ > Get back to school stuff for them and cashback for you. > http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1 _ Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie ! http://www.portable-windows.com/