Re: Problem testing my action when I’ve g ot a springbean inside the validators.xml

2009-09-03 Thread cmartin81
Anyone who can help me? -- View this message in context: http://www.nabble.com/Problem-testing-my-action-when-I%E2%80%99ve-got-a-springbean-inside-the-validators.xml-tp24862185p25270552.html Sent from the Struts - User mailing list archive at Nabble.com.

logic:iterate

2009-09-03 Thread senderj
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 logic:iterate name=MainControlForm property=scoreItems

RE: Using JSF and tiles

2009-09-03 Thread bejaoui zied
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

Re: AJAX issues in struts 2.1.6

2009-09-03 Thread calintz
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 % html head

Re: AJAX issues in struts 2.1.6

2009-09-03 Thread Ernesto Reinaldo Barreiro
Maybe just sx:head debug=true/? Or sx:head cache=false debug=true/ if you don't want JS to be cached? Best, Ernesto On Thu, Sep 3, 2009 at 10:27 AM, calintz t492...@yahoo.com wrote: Hello everyone, i need help here~ these are my jar files struts2-dojo-plugin-2.1.6 struts2-core-2.1.6

File upload in Struts 2

2009-09-03 Thread Johnson nickel
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 constant name=struts.multipart.maxSize value=2097152 / It was getting uploaded in Unix server. But not

Confused

2009-09-03 Thread C N Davies
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

Re: AJAX issues in struts 2.1.6

2009-09-03 Thread calintz
After changed s:head theam=ajax debug=true/ to sx:head debug=true/ i'm having another problem. what should i set for my param-value ?? this is part of my web.xml filter filter-namestruts2/filter-name filter-class org.apache.struts2.dispatcher.FilterDispatcher

Re: AJAX issues in struts 2.1.6

2009-09-03 Thread Ernesto Reinaldo Barreiro
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: filter filter-namestruts2/filter-name

Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread Tommy Pham
- Original Message From: hisameer cool_sameer_fo...@yahoo.com 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

Re: Session data

2009-09-03 Thread Jan T. Kim
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

Re: Confused

2009-09-03 Thread Dave Newton
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

Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread Nils-Helge Garli Hegvik
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,

Re: Session data

2009-09-03 Thread Tommy Pham
- Original Message From: Dai Le d...@pinneyinsurance.com 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

Re: ResourceBundle with DB backend

2009-09-03 Thread Tommy Pham
- Original Message From: Mike Baranski list-subscripti...@secmgmt.com To: Struts Users Mailing List user@struts.apache.org 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

Re: httpheader result type

2009-09-03 Thread Mark Rollins
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

Re: code inserting data into database twice

2009-09-03 Thread Tommy Pham
- Original Message From: Struts234 struts...@gmail.com 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

struts newbie validate

2009-09-03 Thread acastanheira2001
Hi, I have to server-side validate user input data in a production system. Here are some code snippets: struts-config.xml action-mappings action path=/xxx/yyy type=MyClassAction validate=false parameter=method scope=request

Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread Johannes Geppert
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

RE: Confused

2009-09-03 Thread C N Davies
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

Re: AJAX issues in struts 2.1.6

2009-09-03 Thread Wes Wannemacher
On Thu, Sep 3, 2009 at 5:57 AM, calintzt492...@yahoo.com wrote:    package name=person extends=struts-default 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

Struts 2 custom ClassLoader

2009-09-03 Thread Andriy Pererva
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

possible bug in v2.1.6 ??

2009-09-03 Thread Tommy Pham
Hi, I think I may have found a bug. Here's the problem I've encountered. The final UI is based on this: html head !-- js css -- /head body id=colsHdrFtr div id=header/div div id=leftSidebar/div div id=rightSidebar/div div id=mainContent/div div id=footer/div /body /html I'm currently

Re: Struts 2 custom ClassLoader

2009-09-03 Thread Wes Wannemacher
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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Wes Wannemacher
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 Phamtommy...@yahoo.com wrote: Hi, I think I may have found a bug.  Here's the problem

RE: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread hisameer
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

Re: File upload in Struts 2

2009-09-03 Thread Greg Lindholm
You also need to set the maximumSize in the fileUpload interceptor. Here is what I have for 20mb: interceptor-ref name=paramsPrepareParamsStack param name=fileUpload.maximumSize 2000/param /interceptor-ref On Thu, Sep 3, 2009 at 5:16 AM, Johnson nickel

Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread hisameer
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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Tommy Pham
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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Wes Wannemacher
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

Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread Tommy Pham
- Original Message From: hisameer cool_sameer_fo...@yahoo.com 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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Tommy Pham
- Original Message From: Wes Wannemacher w...@wantii.com To: Struts Users Mailing List user@struts.apache.org 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

Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread hisameer
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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Wes Wannemacher
On Thu, Sep 3, 2009 at 10:35 AM, Tommy Phamtommy...@yahoo.com 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

Re: logic:iterate

2009-09-03 Thread Rusty Wright
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

RE: possible bug in v2.1.6 ??

2009-09-03 Thread Martin Gainty
this is c.tld (tag library descriptor for struts core taglib) ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; taglib tlib-version1.0/tlib-version

Re: File upload in Struts 2

2009-09-03 Thread Chris Pratt
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 greg.lindh...@gmail.comwrote: You

Re: File upload in Struts 2

2009-09-03 Thread Wes Wannemacher
On Thu, Sep 3, 2009 at 11:42 AM, Chris Prattthechrispr...@gmail.com 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

Re: File upload in Struts 2

2009-09-03 Thread Chris Pratt
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

Re: logic:iterate

2009-09-03 Thread Rusty Wright
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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Dave Newton
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

Re: File upload in Struts 2

2009-09-03 Thread Greg Lindholm
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 thechrispr...@gmail.comwrote: It probably should be. One of the problems

[OT] Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread Tommy Pham
- Original Message From: hisameer cool_sameer_fo...@yahoo.com 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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Greg Lindholm
On Thu, Sep 3, 2009 at 12:37 PM, Dave Newton newton.d...@yahoo.com 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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Tommy Pham
- Original Message From: Wes Wannemacher w...@wantii.com To: Struts Users Mailing List user@struts.apache.org 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

RE: possible bug in v2.1.6 ??

2009-09-03 Thread Martin Gainty
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

Interceptor Stacks [Was: Re: File upload in Struts 2]

2009-09-03 Thread Dale Newfield
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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Dale Newfield
Tommy Pham wrote: Wes Wannemacher w...@wantii.com 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.

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Musachy Barroso
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:

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Wes Wannemacher
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

Struts2-jquery plug in

2009-09-03 Thread Mileidys Gonzalez Prieto
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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Tommy Pham
- Original Message From: Wes Wannemacher w...@wantii.com To: Struts Users Mailing List user@struts.apache.org 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

struts tiles warnings

2009-09-03 Thread 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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Dave Newton
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

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Dale Newfield
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:

Re: possible bug in v2.1.6 ??

2009-09-03 Thread Tommy Pham
- Original Message From: Dale Newfield d...@newfield.org To: Struts Users Mailing List user@struts.apache.org 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

Re: [OT] Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread hisameer
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

Re: AJAX issues in struts 2.1.6

2009-09-03 Thread calintz
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 - package name=person extends=struts-default

Re: [OT] Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread Tommy Pham
- Original Message From: hisameer cool_sameer_fo...@yahoo.com 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

RE: AJAX issues in struts 2.1.6

2009-09-03 Thread Martin Gainty
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

Re: AJAX issues in struts 2.1.6

2009-09-03 Thread Musachy Barroso
I rest my case. musachy On Thu, Sep 3, 2009 at 7:29 PM, Martin Gaintymgai...@hotmail.com wrote: dumb question but i have to ask..what is struct2 ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese

RE: AJAX issues in struts 2.1.6

2009-09-03 Thread Martin Gainty
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