Re: struts tiles warnings

2009-09-03 Thread Paweł Wielgus
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,

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

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 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

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 u

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

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

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 - > > > > > -Wes > > > -- > Wes Wannemacher

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 Stur

Re: possible bug in v2.1.6 ??

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

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: user-uns

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 ---

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 tiles-api-2.0.6.j

Re: possible bug in v2.1.6 ??

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

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 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 babie

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-mai

Re: possible bug in v2.1.6 ??

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

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 suppos

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 vertraulich.

Re: possible bug in v2.1.6 ??

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

Re: possible bug in v2.1.6 ??

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

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

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

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 wrote: > It probably should be. One of the problems I've had over and over is

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: 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 setter

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: File upload in Struts 2

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

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 wrote: > You also need to set the max

RE: possible bug in v2.1.6 ??

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

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 m

Re: possible bug in v2.1.6 ??

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

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 >> To: us

Re: possible bug in v2.1.6 ??

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

Re: Strut2 Picture Upload question: Please Help!

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

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 l

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 used

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 Pl

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: 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 functiona

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 clic

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 Pham wrote: > Hi, > > I think I may have found a bug.  Here's the problem I've encountered.

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

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: 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

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 wil

Re: AJAX issues in struts 2.1.6

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

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 Septembe

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 As far as I know, when the user clicks http://localh

Re: code inserting data into database twice

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

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: ResourceBundle with DB backend

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

Re: Session data

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

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, 2

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 the

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: Strut2 Picture Upload question: Please Help!

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

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: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndEx

Re: AJAX issues in struts 2.1.6

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

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 t

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 It was getting uploaded in Unix server. But not working in windows platform. Any changes is required from app

Re: AJAX issues in struts 2.1.6

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

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" %>

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 >