AW: s:url, s:param and german umlauts

2009-04-22 Thread Juergen.Leeb
Does this mean there is a bug in 2.1.16? Von: Martin Gainty [mailto:mgai...@hotmail.com] Gesendet: Mittwoch, 22. April 2009 15:19 An: Leeb Juergen, TD-311 Betreff: RE: s:url, s:param and german umlauts https://issues.apache.org/struts/browse/WW-3095 Vielen Danke, Martin _

Injecting Object in Action class good priactise ? or bad practise

2009-04-22 Thread Roberto Mabini
Hi ! Can you help me with my design . I am using strurts 2 right now with spring jpa hibernate. I am currently having problem with my application I getting error when I tried inserting data into my registration. The error say something about detached object. Well the thinks is. I have injected m

Re: pagination in struts2

2009-04-22 Thread André Diniz
It's just a sample pages... 2009/4/22 Dave Newton > http://displaytag.sourceforge.net/1.2/tut_externalSortAndPage.html > > It pays to really spend some time looking over existing documentation; it's > often quicker than waiting for someone on a list or forum to answer. > > Dave > > > Bhaarat Sha

Re: pagination in struts2

2009-04-22 Thread Dave Newton
http://displaytag.sourceforge.net/1.2/tut_externalSortAndPage.html It pays to really spend some time looking over existing documentation; it's often quicker than waiting for someone on a list or forum to answer. Dave Bhaarat Sharma wrote: jim, I found this example http://displaytag.homeip.

Re: pagination in struts2

2009-04-22 Thread Andy Sykes
Have a look at the external sorting and pagination page[1] on the DisplayTag site. Also, take a look at the PaginatedList interface[2]. It takes a little bit to get your head around it. If you get stuck, the displaytag lists are pretty good at helping with the common issues. Andy. [1] ht

Re: pagination in struts2

2009-04-22 Thread Bhaarat Sharma
jim, I found this example http://displaytag.homeip.net/displaytag-examples-1.2/example-paging.jsp?d-49653-p=1 it says "Ok, you have made a query that returns you back a list of 120 elements, but you don't want to show the user all 120 items at once, you want to allow them to page through the res

Validation with XML file using Struts 2.0.14 and Webspere 6.1

2009-04-22 Thread Fernandes Celinio
hi, I am trying to validate the fields of a JSP using the XML validation. I have a file ContactAction-validation.xml that holds the controls to be made. It fails, the validation does not occur. Is there any known bug using Struts 2.0.14 with Websphere 6.1 ? Because it works with JBoss 5, so i a

Re: pagination in struts2

2009-04-22 Thread Jim Kiley
I found this within thirty seconds of clicking Dave's link: http://displaytag.sourceforge.net/1.2/tut_sources.html Note that the contents of this page are actually fairly freakin' horrible and should not be done on a grownup application. But the instructions are right there and easy to find. jk

Re: pagination in struts2

2009-04-22 Thread Bhaarat Sharma
I wanted to use it for the purpose so that when I click NEXT or 2nd page then again I go to the DB to fetch next set of 50 records. but didnt see any examples of that sort On Wed, Apr 22, 2009 at 4:13 PM, Dave Newton wrote: > Stefano Tranquillini wrote: > >> someone has experience with this tag

Re: pagination in struts2

2009-04-22 Thread Dave Newton
Stefano Tranquillini wrote: someone has experience with this tag? i don't really understand how it works. What issues are you having? There are a number of tutorials and examples on the site: http://displaytag.sourceforge.net/1.2/tut_basic.html Dave -

Re: pagination in struts2

2009-04-22 Thread Stefano Tranquillini
someone has experience with this tag? i don't really understand how it works. On Tue, Apr 21, 2009 at 18:39, Chris Pratt wrote: > I'd suggest looking into DisplayTag (http://displaytag.sourceforge.net/) > (*Chris*) > > On Tue, Apr 21, 2009 at 4:58 AM, Bhaarat Sharma > wrote: > > > Are there

Struts 1.3.10 integration with Tomcat 6.0

2009-04-22 Thread javaskater
I downloaded the latest version of the struts 1.x serie (1.3.10) and wanted to test the most simple exmaple proposed stuts-blank-1.3.10.war. For that purpose I put the preceding war file in $TOMCAT_HOME/webapps and called $TOMCAT_HOME/bin/startup.bat...Tomcat starts When I call the corresponding u

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-22 Thread Stephen Turner
Hi Nils, I haven't tried the Struts 2 sample, but I plan to. The Oracle Portal version is 10.1.4.2.0 Thanks, Steve On Sat, 18 Apr 2009 07:32:15 -0400, Nils-Helge Garli Hegvik wrote: Have you tried deploying the Struts 2 sample app and see if it's the same problem there? And which versi

Re: Reusing GUI and Actions

2009-04-22 Thread mitch gorman
i've explicitly passed the name of the action to take into the page, in similar situations. my form has or, i've used the session, so the form tag looks like " > YMMV. -- Mitch Gorman mgor...@shadowtv.com (215) 764-6310 Skype: mitch.shadowtv.com -

Re: Disable GET site-wide

2009-04-22 Thread Wes Wannemacher
Why not write another interceptor and place it early in your stack? Disabling all GET requests seems a bit overzealous though, GET is used by so much more than form submission. I would say to inherit from MethodFilterInterceptor and then perform whatever logic you want to perform when you see a no

Disable GET site-wide

2009-04-22 Thread Security Management
Is there any way to prevent struts 2 from processing GET parameters? I have my application to only use POST forms, so the values are not visible in the URL, is there a way to have struts not call setters for the http://host/myapp/delete_person?id=12345, and only set it for the action if it's submi

RE: Struts 2 Portlet - Intermittent Session Problems

2009-04-22 Thread Kofford, C Todd
Good news! I resolved this issue. Even though it was NOT a struts problem, I still wanted to post back to this forum the issue and resolution. It was being caused by a uportal (2.5.x, 2.6.x) & pluto 1.0.1 bug. I found the following uportal patch UP-1816 "Objects attached to a PortletSession

RE: Jasper Plugin cannot find file

2009-04-22 Thread Security Management
OK, I took a smart pill, and put the following in my action: JasperCompileManager.compileReportToFile( this.getServletContext().getRealPath("/jasper/scrounger_report.jrxml"), this.getServletContext().getRealPath("/jasper/scrounger_report.jasper")); I'm logging that location with log4j, and wi

s:url, s:param and german umlauts

2009-04-22 Thread Juergen.Leeb
Hello, I have a problem with the struts tags s:url and s:param. I want to provide a link within me JSP. Therefore I use the s:url and s:param. i.e. The value of Title can include german umlauts, like ü. i.e title="Füller" In this case I get the following url in the html-source: http:

Re: How to do matematical operation in jsp.

2009-04-22 Thread Andy Sykes
Abstract the HashMap behind another class that has a getTotal(Item key) method, and do the math in there (return item.prize * quantity). Doing any math in the JSP feels dirty. On 22 Apr 2009, at 13:16, Stefano Tranquillini wrote: Because the items are stored in hashmap item contains the p

Re: How to do matematical operation in jsp.

2009-04-22 Thread Stefano Tranquillini
Because the items are stored in hashmap item contains the prize. so, to know the total for each item i've to multplay item.prize with quantity. no more else. On Wed, Apr 22, 2009 at 14:01, Dave Newton wrote: > Stefano Tranquillini wrote: > >> but i've only to display in a jsp the results, wh

Re: How to do matematical operation in jsp.

2009-04-22 Thread Dave Newton
Stefano Tranquillini wrote: but i've only to display in a jsp the results, when i use that value i compute it by the ejb. Then why are you re-computing it in the JSP? The point is only that floating-point math is inaccurate. If you don't care, or are controlling the results of the math someho

Re: How to do matematical operation in jsp.

2009-04-22 Thread Stefano Tranquillini
but i've only to display in a jsp the results, when i use that value i compute it by the ejb. On Tue, Apr 21, 2009 at 22:51, Dave Newton wrote: > Stefano Tranquillini wrote: > >> The right solution is to calculate and insert in a new bean the elements >> and >> its total value? >> > > That's *a*

RE: Display problems when tomcat is busy

2009-04-22 Thread Leleu Eric
Hello, In my logs, I have this message : Unable to find text for key 'xxx' in ResourceBundles for locale 'fr' So I add some logs into org.apache.struts2.components.i18n and com.opensymphony.xwork2.util.LocalizedTextUtil to have more details. It seems that the ValueStack of a thread 'A' is change

Re: How to get subclass objects in an arraylist?

2009-04-22 Thread Gustavo Felisberto
Hello Sunil, It is not pretty but you can: Object o = list.get(0); if (o instanceof Child) { ((Child)(o)).childMethod(); } else if (o instanceof Parent) { ((Parent)(o)).parentMethod(); } Or you can have a Enum in the parent that will store the type and in that case you can just swi

Reusing GUI and Actions

2009-04-22 Thread Richard Sayre
I have a form in my web application that can be accessd from different places (Namespaces) in the web app. It looks something like this /Admin/EditSchedule.action /MySchedules/NewSchedule.action /Create/NewSchedule.action /Create/EditSchedule.action The are subtle differences in how the data is

Re: How to get subclass objects in an arraylist?

2009-04-22 Thread sunil kumar
Hi Gustavo, Thank you for your reply. My problem is that, I have different subclasses of the Class Question. and since the form is dynamic, there is no way for me to know which Question objects are going to come through... I thought the only way is to have an interceptor or i just read about typ

Re: How to get subclass objects in an arraylist?

2009-04-22 Thread Gustavo Felisberto
I guess the problem IS the fact that the type on elements in the list not being the correct type. public class Parent { private String parent = "parent"; public String getParent() { return parent; } public void setParent(String parent) { this.parent = parent; }

How to get subclass objects in an arraylist?

2009-04-22 Thread sunil kumar
My subject line may not be close to the problem I will go straight into code so i can explain my problem clearly... I have an action class which looks like this: Please note, I have left out all the getter and setter methods public class TestAction extends ActionSupport {pri

AW: Issue in Action Chaining

2009-04-22 Thread Anastasios Patrikis
Hi Satya, in our project we have a base action with methods to read/write session attributes: ServletActionContext.getRequest().getSession.getAttribute(name) ServletActionContext.getRequest().getSession.setAttribute(name, object) This may help. Regards, Anastasios. -Ursprüngliche Nachri