Re: Struts 2 And JFreeChart

2008-07-30 Thread Laurie Harper
I don't see what Ajax has to do with this... It sounds more like an HTTP caching issue. Cree, if you do a page refresh, is the image updated correctly? I haven't used the JFreeChart result, but maybe it's not setting the right cache control headers. L. Randy Burgess wrote: Ajax is text only

Create multiple struts configuration file problem

2008-07-30 Thread angelwei
Hai, can anybody help me to solve the problem javax.servlet.jsp.JspException: Cannot retrieve mapping for action /pro. if i replace the content in struts-config-product.xml to struts-config.xml. it work. any idea??? web.xml config /WEB-INF/struts-config.xml config/product /WEB-INF/product/str

Re: Redirect after stream result

2008-07-30 Thread ManiKanta G
Thanks for your help. Regards, ManiKanta Laurie Harper wrote: ManiKanta G wrote: Hi, How can I redirect to another page after stream result. For example redirecting to another page saying successfully downloaded the file or adding some action message and redirecting to the same page. You

RE: struts record output and entry

2008-07-30 Thread Givler, Eric
In order to get a grasp of this, it would be helpful if you read the following: Succeeding With Struts: Dynaforms By James M. Turner http://www.developer.com/java/web/article.php/2214681 Succeeding With Struts: Indexed Properties and Beans as Properties By James M. Turner http://www.developer.com

Re: Struts 2 And JFreeChart

2008-07-30 Thread Randy Burgess
Ajax is text only so you can't use it with an image type. Regards, Randy Burgess Sr. Software Architect D5 Systems, LLC > From: cree <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Wed, 30 Jul 2008 12:14:02 -0700 (PDT) > To: > Subject: Struts 2 And JFreeChart > > > Hello Ev

Re: S2: possibly strange namespace use case

2008-07-30 Thread Jeromy Evans
Andy Law wrote: Jeromy, That's enormously helpful - thanks. A short follow-up. Can you point me towards a description of where/when the Action object gets created and where Interceptors fit into the process. The architect's guide is a good place to start. http://struts.apache.org/2.

Strange Behaviour in FireFox3

2008-07-30 Thread nauke .
Hi all, Was really not sure which mailing list to post to ... I have a java application that uses struts 2 (actions, etc). Every time I access a page (which goes through an action), my browser gets to that page, but then it "skips" (for want of a better term) onto a blank page (with the URL intac

Re: Wierd Validation

2008-07-30 Thread Laurie Harper
Gundersen, Richard wrote: Hi When validation succeeds on my form, I still get returned to the input page. My execute() method does not seem to be getting called even when validation is OK. This is my Action (no @Validation annotation after I read that was deprecated) ===

Re: ServletOutputStream

2008-07-30 Thread Mike Rooney
Thank you for the help guys. I got it working. - Original Message From: Gabriel Belingueres <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, July 30, 2008 10:58:43 AM Subject: Re: ServletOutputStream A solution could be this: Store the excel data in session, then in

Re: Is it a bug in Struts 1.2 that you can't iterate through a java.util.Set?

2008-07-30 Thread Laurie Harper
Ylva Degerfeldt wrote: Hi everyone, I'm using Struts 1.2 (bundled with NetBeans 5.5.1) and I've noticed that I can't iterate through a java.util.Set using the logic:iterate tag. The code that I've tried: I get this exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: Can

Re: Redirect after stream result

2008-07-30 Thread Laurie Harper
ManiKanta G wrote: Hi, How can I redirect to another page after stream result. For example redirecting to another page saying successfully downloaded the file or adding some action message and redirecting to the same page. You can't; there can only be one response to an HTTP request. The sam

Re: struts record output and entry

2008-07-30 Thread Laurie Harper
cpanon wrote: Hello I am having a difficult time designing and implementing an interaction of displaying and accepting user input of multiple records at once. I can create a collection of records, but records are complex, composed of other objects that are themselves composed of text strings

Re: Strtus2 tags IE issue error loading page 200 ok

2008-07-30 Thread dynamicd
First I thought the problem was from ACEGI that I recently added to the project. So I took all of it out .However I encountered the same problem as above in IE. Then I thought the problem could be some leak in display tag . So i swithced back to normal table and the same thing again. So I realize

Re: [S2] error style on s:textfield

2008-07-30 Thread Pierre Thibaudeau
2008/7/30 Dasgupta, Ranjan <[EMAIL PROTECTED]> > In your action set the fieldError: > addFieldError("someField", "someText") > > in your JSP: > > Thank you, Ranjan! The "cssErrorClass" parameter was forgotten from the tag reference guides. See for example: http://struts.apache.org/2.1.2/docs/te

RE: [S2] error style on s:textfield

2008-07-30 Thread Dasgupta, Ranjan
In your action set the fieldError: addFieldError("someField", "someText") in your JSP: Thanks, -RD -Original Message- From: Pierre Thibaudeau [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2008 3:31 PM To: Struts Users Mailing List Subject: [S2] error style on s:textfield In Str

[S2] error style on s:textfield

2008-07-30 Thread Pierre Thibaudeau
In Struts2, what is the equivalent of Struts1's "errorStyleClass" parameter of tag? In other words, how can I control the CSS style of a when there is an error over that field?

Struts 2 And JFreeChart

2008-07-30 Thread cree
Hello Everyone, Got a quick question regarding the streaming of a JFreeChart (or any image) and how to be able to handle it on a jsp. I have create a servlet that will stream out an image to the jsp using a syntax similar to (in my struts.xml):

[S2] not re-executed on INPUT result

2008-07-30 Thread Pierre Thibaudeau
(Using Struts 2.1.2) I have a little "widget" (for want of a better word) which gets activated on most pages by a call to: the result of that action being a small JSP that will sit snuggly inside its little box on the overall page. That little widget is, in effect, independent and clueles

Re: ServletOutputStream

2008-07-30 Thread Gabriel Belingueres
A solution could be this: Store the excel data in session, then in your 'status completed' page add an onload event to its body, redirecting to the real download action: IIRC: http://blahblah/myaction.action';"> You can also add a meta in the head: http://blahblah/myaction.action";> 2008

Re: S2: possibly strange namespace use case

2008-07-30 Thread Andy Law
Jeromy Evans - Blue Sky Minds wrote: > > Andy Law wrote: >> >> e.g. >> /foo/Action1.action runs action1 passing in 'foo' and /bar/Action1.action >> runs the same action passing in 'bar'. >> >> How should I code/configure/build this kind of thing. >> > > > In Struts 2.0.x, you may be able to

Re: ServletOutputStream

2008-07-30 Thread Miguel
To send only one response it's a inherent limitation or http, so you can only send a page, or the excel result or redirect, but not many at once. What you can do is put a "downloading page" and from that page use a script to begin the downloading of the excel data from a different action. If you wa

Re: [S2] Form doesn't redirect

2008-07-30 Thread Dave Newton
--- On Wed, 7/30/08, Nick Scavelli <[EMAIL PROTECTED]> wrote: > I'm replying to this because it's somewhat related > to an issue I'm having. Not really :p > Let's say I have the following control in my jsp: > targets="resultsDiv" indicator="indicator"/> > > But let's say my session h

Disable validation when clicking back

2008-07-30 Thread Dimitris Mouchritsas
Hi all, I have a multi-page form bean for a 2 step registration form. In the second page I have a back button like this: and in my action I check if it was pressed similarly to the cancel button: if (isCancelled(request)) { targetUrl = "goHom

Wierd Validation

2008-07-30 Thread Gundersen, Richard
Hi When validation succeeds on my form, I still get returned to the input page. My execute() method does not seem to be getting called even when validation is OK. This is my Action (no @Validation annotation after I read that was deprecated)

Re: [S2] Form doesn't redirect

2008-07-30 Thread Nick Scavelli
I'm replying to this because it's somewhat related to an issue I'm having. Let's say I have the following control in my jsp: This of course will update the div defined in my jsp: Everything works great under normal circumstances. But let's say my session has timed out, and I need to redirect

Re: [S2] Testing if session variable is present

2008-07-30 Thread Milan Milanovic
So, scenario is like this: MyFirstAction.method1 [put session variable] -> show first.jsp -> user click on link in first.jsp page -> show second.jsp -> user click on link in second.jsp -> MySecondAction.someMethod is called -> show third.jsp where this session test should be done. I hope this he

Re: [S2] Testing if session variable is present

2008-07-30 Thread Milan Milanovic
Nop, it doesn't work. -- Milan Marcos Hermida-2 wrote: > > Have you tried this: > > > > Milan Milanovic escribió: >> Well, this : doesn't >> work, >> event though my class implements sessionAware and I put my your_variable >> in >> session before displaying this jsp page. >> >> What can I

Re: [S2] Testing if session variable is present

2008-07-30 Thread Milan Milanovic
Hi, just to note, I treid with this too: and it doesn't work. I put my session variable in one action class, and then redirect to another page which is connected to another action class. When that second class method is runned, and resulting jsp is shown in that page I test this. My both classes

Re: [S2] Testing if session variable is present

2008-07-30 Thread Marcos Hermida
Have you tried this: Milan Milanovic escribió: Well, this : doesn't work, event though my class implements sessionAware and I put my your_variable in session before displaying this jsp page. What can I do ? -- Thx, Milan felipe.lorenz wrote: Hummm.. Struts 1 or 2? This code is to S2

Re: ServletOutputStream

2008-07-30 Thread Mike Rooney
Thank you for the reply.  I know my action can only return one response.  However I want to avoid saving my file somewhere on the server and would like the 'File Download' dialog to appear when the file is ready.  How can I do this in struts 2 while still forwarding to a 'status completed' page?

Re: select tag: deselcting option

2008-07-30 Thread Dave Newton
Without knowing anything about the JSP causing the error it will be more difficult to help. Dave --- On Wed, 7/30/08, ms.programmer.1 <[EMAIL PROTECTED]> wrote: I tried to use the tag but I get a FreeMarker > template error. > > *FreeMarker template error!* > > Error on line 122, column 65

Re: [S2] Testing if session variable is present

2008-07-30 Thread Milan Milanovic
Well, this : doesn't work, event though my class implements sessionAware and I put my your_variable in session before displaying this jsp page. What can I do ? -- Thx, Milan felipe.lorenz wrote: > > Hummm.. Struts 1 or 2? > > This code is to S2. > > > > do something > > > > I did

Re: select tag: deselcting option

2008-07-30 Thread ms . programmer . 1
I tried to use the tag but I get a FreeMarker template error. *FreeMarker template error!* Error on line 122, column 65 in template/simple/doubleselect.ftl Expecting a string, date or number here, Expression parameters.doubleNameValue is instead a freemarker.ext.beans.ArrayModel The problematic

Re: [S2] Testing if session variable is present

2008-07-30 Thread Milan Milanovic
I have one more question, not directly connected with this one. How can I ask user with popup windows if he want to proceed when he click to some link, without using Ajax and div tags ? -- Thx, Milan Milan Milanovic wrote: > > Hi, > > it is S2, I wrote this in subject of this topis. > > Th

Re: dojo anchor: get widget id and targets attributes inside subscribed topic?

2008-07-30 Thread holod
1.I've sent email to dojo-interest@ 2.http://dojotoolkit.org/ forum keeps silence. Maybe my problems have different solutions and I'm trying to solve in the wrong way? I've spent approximately 2 business days and nothing has been found. Jim Kiley wrote: > > What did the dojo mailing list [1]

Re: select tag: deselcting option

2008-07-30 Thread Gabriel Belingueres
See if tag fits your needs. 2008/7/30 ms. programmer. 1 <[EMAIL PROTECTED]>: > I am populating the options in select list B from the option selected in > select list A, when a button is clicked. When a new option is selected in > select list A, I want the previous option in select list B to be de

Re: dojo anchor: get widget id and targets attributes inside subscribed topic?

2008-07-30 Thread Jim Kiley
What did the dojo mailing list [1] [2] recommend? jk [1] [EMAIL PROTECTED] [2] http://dojotoolkit.org/* * On Wed, Jul 30, 2008 at 8:57 AM, holod <[EMAIL PROTECTED]> wrote: > > I use dojo anchor widget (). > It successfully gets response in json from server, but I have several > problems accessing

select tag: deselcting option

2008-07-30 Thread ms . programmer . 1
I am populating the options in select list B from the option selected in select list A, when a button is clicked. When a new option is selected in select list A, I want the previous option in select list B to be deselected. The value for these select lists is being stored in the session. I have bee

dojo anchor: get widget id and targets attributes inside subscribed topic?

2008-07-30 Thread holod
I use dojo anchor widget (). It successfully gets response in json from server, but I have several problems accessing widget, that published a topic. Please, see my code: dojo.event.topic.subscribe("/after", function(data, request, widget){ alert('inside a topic event. after request'); //d

Re: There is no Action mapped for namespace / and action name ...

2008-07-30 Thread John Moose
I know...when I have two projects that use the same package namespace for my app source...I get this Action mapping error. Even when one project is "Closed" (in the Eclipse sense). I neglected to mention this previously in describing what I "changed" to make things work. There is still a 'fragility

Is it a bug in Struts 1.2 that you can't iterate through a java.util.Set?

2008-07-30 Thread Ylva Degerfeldt
Hi everyone, I'm using Struts 1.2 (bundled with NetBeans 5.5.1) and I've noticed that I can't iterate through a java.util.Set using the logic:iterate tag. The code that I've tried: I get this exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot create iterator for t

Re: ServletOutputStream

2008-07-30 Thread Gabriel Belingueres
Your action can not generate two responses (if that's what you asking). If you forward to a 'status completed' page, then you need to save your excel data somewhere to not loosing it. 2008/7/29 Mike Rooney <[EMAIL PROTECTED]>: > I created a small webapp that extracts data from a DB, creates an Exc

Redirect after stream result

2008-07-30 Thread ManiKanta G
Hi, How can I redirect to another page after stream result. For example redirecting to another page saying successfully downloaded the file or adding some action message and redirecting to the same page. Thanks in advance Regards, ManiKanta G ** DISCLAIMER ** Information

Re: There is no Action mapped for namespace / and action name ...

2008-07-30 Thread Pauli Savolainen
Hi, I "fixed" the problem by reverting back to 2.1.1-SNAPSHOT version with struts core and all the plugins. Changing eclipse to 5.0 is really not a solution for me, so I couldn't do that. I wonder what in 2.1.2 makes my program not work anymore. Pauli 2008/7/29 John Moose <[EMAIL PROTECTED]>: >

AW: Re: Implementing ParameterAware but still getting Unexpected Exception caught setting 'name' on 'class....

2008-07-30 Thread Jan Froehlich
Hi Laurie, sorry if I expressed not totally clear what I mean - have still some problems with my english! ;) > What do you mean that the parameters passed to the action 'change every > now and then'? At random?!? If you just mean that there are a variable > number of them, no problem; that's w

s:div tag and internationalization

2008-07-30 Thread vasileboris
Hello, I'm using s:div tag to load async the results of an action like this: my_action has as a result a jsp page in which we use . The text is loaded from language resource file but it is not displayed correctly. We need to display danish words and it works like this: in resource file: ... får