Re: [struts 2] Two forms for one action

2008-05-13 Thread Jukka Välimaa
Both forms don't call the same *instance* of the action class. Neither does one form, actually. For each request, Struts 2 uses a different instance of the same class. Once the result is rendered, the action object is no longer used. If you want to retain action state information, you must store it

Re: What is the functionality of struts 2 anchor tag?

2008-05-13 Thread akshi gupta
Hello, I am unable to use this method in my tag handler can you please help me . Following is my tag handler code : package com.axis.tag; import java.util.Properties; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.jsp.JspExce

Re: TabbedPanel in Struts2

2008-05-13 Thread Jay Bose
OK User error: I had the struts.serve.static property set to false, and did not actually have all the required files copied over. All, thanks for your quick responses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: TabbedPanel in Struts2

2008-05-13 Thread Jay Bose
I do have debug on. No errors or config warnings are coming up. --- Dave Newton <[EMAIL PROTECTED]> wrote: > Do you have Dojo debugging turned on in your tag? > > Do you have an tag, I guess? I don't recall having had > any major issues with it, but it was awhile ago I used it. > > Dave

Re: TabbedPanel in Struts2

2008-05-13 Thread Dave Newton
Do you have Dojo debugging turned on in your tag? Do you have an tag, I guess? I don't recall having had any major issues with it, but it was awhile ago I used it. Dave --- Jay Bose <[EMAIL PROTECTED]> wrote: > No, not at all. I get Dojo-ififed tags, but they have no label or > anything else,

Re: problems nesting TileResults....

2008-05-13 Thread Darren James
Hi Antonio, I got a 2.0.6 snapshot and the issue is fixed! Thanks much for the tip. Also noteworthy is that now that I have actions that can forward to tiles which have nested within them actions that also forward to tiles (whew), in order for action context to be available to JSP pages I ha

Re: TabbedPanel in Struts2

2008-05-13 Thread Jay Bose
I saw this page, but no real help - http://struts.apache.org/2.0.11/docs/ajax-tags.html#AjaxTags-tabbedPanelTag Any help would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

problem with JUnit Test in Struts2

2008-05-13 Thread Pranav
Hi, I am having trouble with unit testing my validation logic in Struts2. here's the code. 1) In UserLookupAction-validation.xml I have You must enter a value for ${getText("memberId.label")}. 2) In UserLookupActionTest.java I have the following method public voi

Re: [struts 2] Table question

2008-05-13 Thread Randy Burgess
OGNL expressions. It is in the documentation. :) Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Milan Milanovic <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 13 May 2008 15:05:34 -0700 (PDT) > To: Struts Users Mailing List > Subject

Re: TabbedPanel in Struts2

2008-05-13 Thread Jay Bose
No, not at all. I get Dojo-ififed tags, but they have no label or anything else, for that matter. They are just divs with the content of the tab, but no label. I will list the JSP content I'm using, and the resulting output. The JSP code == <%@

Re: [struts 2] Table question

2008-05-13 Thread Milan Milanovic
O.K. Thanks. So, what you propose to show id and name to user ? -- Thx, Milan - Original Message From: Randy Burgess <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Tuesday, May 13, 2008 11:47:57 PM Subject: Re: [struts 2] Table question Except you can't use EL expressions in

Re: [struts 2] Table question

2008-05-13 Thread Milan Milanovic
O.K. Thanks. So, what you propose to show id and name to user ? -- Thx, Milan - Original Message From: Randy Burgess <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Tuesday, May 13, 2008 11:47:57 PM Subject: Re: [struts 2] Table question Except you can't use EL expressions in

Re: [struts 2] Table question

2008-05-13 Thread Randy Burgess
Except you can't use EL expressions in struts tags in the latest versions of S2, unless you hack the taglib. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Felipe Lorenz <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 13 May 2008 18:44

Re: [struts 2] Table question

2008-05-13 Thread Felipe Lorenz
Hi! To have a composed string you can do it in JSP. Something like: for example. And, for pagination, try displayTag, its easy to use Felipe A. Lorenz www.idealogic.com.br On Tue, May 13, 2008 at 12:00 PM, Milan Milanovic <[EMAIL PROTECTED]> wrote: > Thanks Jim! > Could you give me an examp

Re: JFreeChart plugin

2008-05-13 Thread Randy Burgess
I'm using an interceptor to store (and clear) a DefaultPieDataset in the users session from actions that give me the data needed to create charts. My chart action implements SessionAware and I get the dataset from the session. I also created a package for the charts that extends struts-default beca

Re: JFreeChart plugin

2008-05-13 Thread Felipe Lorenz
Hi, did you try put the action (DrawChart_display.action) in HREF attribute of the DIV? I use js to do it! Something like: function refresh() { var div = dojo.widget.byId('#div_id'); div.href = 'DrawChart_display.action' + params_if_have; div.refresh(); } Felipe Augusto Lorenz www.idealogic.c

Re: JFreeChart plugin

2008-05-13 Thread Leena Borle
Hi, I'm using Tomcat-5.5.25. I found out that, if I include action's url in , it gets displayed. I am trying to display chart using Remote-Button/Remote-DIV method of S2. Which means when user submits form data, I need to display chart inside a DIV below this form. something like this ...

Re: Dojo taglib?

2008-05-13 Thread Lukasz Lenart
Hi, "To use the AJAX tags from 2.1 on you must:" Reading http://struts.apache.org/2.x/docs/ajax-tags.html, this claims > You should read much more careful Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart http://jdn.pl/blog/416 http://www.lenart.org.pl/

Re: Spring Security and Struts2 Using tiles

2008-05-13 Thread Antonio Petrelli
2008/5/13 Alberto A. Flores <[EMAIL PROTECTED]>: > I would, but it seems to me like there is little that can be done on the > Struts2 side (unless a plugin of some sort is written). Essentially, when > control is forwarded to the tile, Spring security can not do much (or maybe > I'm missing somethi

Re: Spring Security and Struts2 Using tiles

2008-05-13 Thread Alberto A. Flores
I would, but it seems to me like there is little that can be done on the Struts2 side (unless a plugin of some sort is written). Essentially, when control is forwarded to the tile, Spring security can not do much (or maybe I'm missing something). The Spring Security team is well aware of (as f

Re: Spring Security and Struts2 Using tiles

2008-05-13 Thread Antonio Petrelli
2008/5/13 Alberto A. Flores <[EMAIL PROTECTED]>: > I don't thinks that's possible as the Struts2 result would be something > like: > > my.tile > > In here, I don't have access to the forward. Mmm... it's starting to be complicated, and I think that there is a bug somewhere. Can you open a JIRA i

Re: Spring Security and Struts2 Using tiles

2008-05-13 Thread Alberto A. Flores
I don't thinks that's possible as the Struts2 result would be something like: my.tile In here, I don't have access to the forward. Antonio Petrelli wrote: 2008/5/13 Alberto A. Flores <[EMAIL PROTECTED]>: My understanding is that Spring Security does not secure resources on *forwards* (I bel

Re: Spring Security and Struts2 Using tiles

2008-05-13 Thread Antonio Petrelli
2008/5/13 Alberto A. Flores <[EMAIL PROTECTED]>: > My understanding is that Spring Security does not secure resources on > *forwards* (I believe tiles2 do forward/chaining). Forwards and includes, that's where I think there may be a fault. Can you try if, using simple tags, the security tags wor

Spring Security and Struts2 Using tiles

2008-05-13 Thread Alberto A. Flores
Folks, My understanding is that Spring Security does not secure resources on *forwards* (I believe tiles2 do forward/chaining). In an application using Struts2, Spring and Tiles2, these forwards work just fine. Has anyone had success using these three frameworks together using Spring Security

Re: JFreeChart plugin

2008-05-13 Thread Randy Burgess
I used the example code from the documentation on WebLogic 9.2.2 and it ran fine. I built off that example code and now have several actions creating nice 3D pie charts. Which application server are you using? Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Le

Dojo taglib?

2008-05-13 Thread Michael Gagnon
Reading http://struts.apache.org/2.x/docs/ajax-tags.html, this claims (reasonably) that I must add <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> in order to use the sx ajax tags. but it appears that the /struts-dojo-tags uri is not available to me. Eclipse doesn't see it, and I don't see such a

Re: struts2 access session Id

2008-05-13 Thread Jakub Milkiewicz
I had the same idea when i mentioned Servlet Config Interceptor below but I just thought there is an easier way. Anyway thanks for reply and it looks like i need to do just like that. 2008/5/13 Laurie Harper <[EMAIL PROTECTED]>: > Jakub Milkiewicz wrote: > > > Hi > > I have a problem with Strut

JFreeChart plugin

2008-05-13 Thread Leena Borle
Hello, Has anyone tried out JFreeChart plugin? I am trying to run the sample code available on plugin documentation page. I see all ASCII characters getting printed on my browser screen instead of an image file. Any help is appreciated. Thanks, Leena.

Re: Tag Data Rendering Issue

2008-05-13 Thread Laurie Harper
Himanshu Rathore wrote: When using tag, the first character of error message is automatically getting converted to upper case. I haven't set any "text-transform" property in my CSS. If I do "View Source", I see proper text but on JSP its behaving weirdly. My CSS: ..errorMessage { color: red; f

Re: Selecting a jsp according to locale

2008-05-13 Thread Laurie Harper
Dimitris Mouchritsas wrote: Hi all, I want to show a system requirements page according to the web page's locale. Can I use the tiles-defs.xml to do it or I need to write code in a jsp? Thanks I'm not sure what you want to achieve. If you just want to localize the page, you can do so using t

Re: struts2 access session Id

2008-05-13 Thread Laurie Harper
Jakub Milkiewicz wrote: Hi I have a problem with Struts 2. I am looking for a way to access httpsession id? I have tried using ActionContext.getContext().getSession().get("id") but it returns null. i 've read there is a possibility to use Servlet Config Interceptor

Re: File upload issue

2008-05-13 Thread Laurie Harper
Zoran Avtarovski wrote: I¹m getting an error after uploading a file. Which manifests itself in my redirect action. I¹m using a simple post redirect pattern, where the file upload action redirects to a separate fileList action. After successfully uploading the file the browser is redirected to t

Tag Data Rendering Issue

2008-05-13 Thread Himanshu Rathore
When using tag, the first character of error message is automatically getting converted to upper case. I haven't set any "text-transform" property in my CSS. If I do "View Source", I see proper text but on JSP its behaving weirdly. My CSS: .errorMessage { color: red; font: 10px verdana, arial, h

Ajax with Struts2

2008-05-13 Thread krishna chary
My question is ... When I use this code Business in between action form ,then I got warning like WARNING: Parameters: Invalid chunk ignored. and ajax action is not performed. please answer to my question very urgent

Re: Repopulating Select Lists after Validation Error

2008-05-13 Thread Laurie Harper
Asleson, Ryan wrote: Hello, We're transitioning from a Struts 1.x and Tiles development environment to Struts 2 and Sitemesh, and I need some help getting around some of the differences. Here's what I'm planning so far. I want to have an abstract BaseAction that extends ActionSupport. Si

Re: [struts 2] Two forms for one action

2008-05-13 Thread Jim Kiley
On Tue, May 13, 2008 at 11:44 AM, Milan Milanovic <[EMAIL PROTECTED]> wrote: > Hi, > regarding multiple submit buttons for the same form, if I have ...> with > defined action (which is actually a method name in a action class), then > my submit > button calls that method. But, how can I d

Re: [struts 2] Two forms for one action

2008-05-13 Thread Milan Milanovic
Hi, regarding multiple submit buttons for the same form, if I have with defined action (which is actually a method name in a action class), then my submit button calls that method. But, how can I define another submit button that will call another method of the same action class ? -- Thx in adva

Selecting a jsp according to locale

2008-05-13 Thread Dimitris Mouchritsas
Hi all, I want to show a system requirements page according to the web page's locale. Can I use the tiles-defs.xml to do it or I need to write code in a jsp? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: [struts 2] Two forms for one action

2008-05-13 Thread Milan Milanovic
Thank you Randy. >They could, if it were me I would have different methods on the action class >to handle the different forms if I were to do it this way. Personally I >would create an action class for each form. No, I cannot do this, because both forms need to work with the same objects in a acti

Re: [struts 2] Two forms for one action

2008-05-13 Thread Randy Burgess
They could, if it were me I would have different methods on the action class to handle the different forms if I were to do it this way. Personally I would create an action class for each form. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Milan Milanovic <[E

Re: [struts 2] Table question

2008-05-13 Thread Milan Milanovic
Thanks Jim! Could you give me an example for the second thing (pagination) ? I need something simple as you said. For combo box, how can I tell my combobox to retrieve data from list of composed strings (e.g. List where I will compose "1 Apple"), but when selected to choose in my action class fr

Re: [struts 2] Two forms for one action

2008-05-13 Thread Milan Milanovic
I have one more question about this, if I define two in one page would they work with the same action class ? -- Thx, Milan Milanovic - Original Message From: Jim Kiley <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, May 12, 2008 6:15:07 PM Subject: Re: [struts 2] Two fo

struts2 access session Id

2008-05-13 Thread Jakub Milkiewicz
Hi I have a problem with Struts 2. I am looking for a way to access httpsession id? I have tried using ActionContext.getContext().getSession().get("id") but it returns null. i 've read there is a possibility to use Servlet Config Interceptor

tag with Validation problem

2008-05-13 Thread Håken Stark
Hi, I'm facing a problem when I'm using a Struts form with client validation on a jsp page which is remotely fetch from a . This div is a tabpanel inside a tabcontainer. When the form is submitted the following error displays inside the sx:div: 'ReferenceError: validateForm_saveProducer is not

Re: [struts 2] Table question

2008-05-13 Thread Jim Kiley
I have to admit that in your first instance I would cheat -- I would dummy up a method somewhere on my action class or my POJO that returned the desired string, rather than trying to compose the string within the JSP. I am unfamiliar with the various tags that can be used to display chunks of a ta

[struts 2] Table question

2008-05-13 Thread Milan Milanovic
Hi, first I'll ask again my earlier question, is there possibility to show in a combo box two values, for example I want to show id and name of the every fruit: 1 Apple ? The second question is, my struts 2 application on one jsp page will have 5 combo boxes, 4 text boxes, two buttons and two dat

Re: redirect after logging in

2008-05-13 Thread Rushikesh Thakkar
Hi, Check out the login-interceptor in Mail-Reader application given on Planet Struts. I found it useful. I think you are also looking for the same. http://www.planetstruts.org/struts2-mailreader/Tour.do (The application may be down sometimes, you can refer to cached pages in Google search for th

Re: Setting HTML form parameters to Custom classes (not action support)

2008-05-13 Thread Jim Kiley
I would handle this by creating an ordinary Java class for the page, and then having the following fields: public class MyAction { C1 a; C2 b; C3 c; //... } ...and make sure I had a public getA() and setA(), getB() and setB(), and so on. If you need to preset values for a, b, and c, one option

Re: hi, what is the difference between specify time out and do not specify the timeout value in the web.xml file

2008-05-13 Thread Alberto A. Flores
Please include container type, version, etc, etc. Laurie Harper wrote: shrimpywu wrote: hi, what is the difference between specify time out and do not specify the timeout value in the web.xml file 30 According to the Servlet specification, if you don't specify this sessio

Struts2 & Tiles2

2008-05-13 Thread Pro1712
Hallo, I'm new to struts so this may be a simple question for experts... I started developing a classical webapp: Header and Menu on top, navigation on the left side and details on the right side. When the user selects an item in the navigation, the detail is displayed on the right side. Depend

File upload issue

2008-05-13 Thread Zoran Avtarovski
I¹m getting an error after uploading a file. Which manifests itself in my redirect action. I¹m using a simple post redirect pattern, where the file upload action redirects to a separate fileList action. After successfully uploading the file the browser is redirected to the appropriate action, but