How to pass "id" to any method by means of and submit button?

2009-07-30 Thread bilgerkan
Hello, I'm new on struts and want to handle following problem: I am listing all the invoice items via in my invoiceList.jsp. Beside each invoice line, there is a checkbox, which I want to use as following: User clicks on any checkbox to select the appropriate invoice item beside it, and after

One Struts2-project to rule them all

2009-07-30 Thread David Canos
Hi folksI'm facing a nice problem and I would be glad to hear from you. I think it should be useful to all. Problem is easy: Gandalf and I need to build 15 websites one per domain, I really dont want to maintain 15 different and pretty small projects. I will be happy to use subdomains, but I could

Re: New to Struts, a Question

2009-07-30 Thread Paweł Wielgus
Hi Thomas, yes it is picking it from there. Empty name is same as name="success". Best greetings, Paweł Wielgus. 2009/7/30 Thomas Sattler : > In my struts.xml file, I have the UserDisplayAction class and a blank (no > "name=") result for userDisplay.jsp.  Does it pick up from there? > > > > On We

Re: How to pass "id" to any method by means of and submit button?

2009-07-30 Thread Paweł Wielgus
Hi bilgerkan, have You check the generated source of that page, is it ok in the HTML sense? Do you have editInvoice long table defined in a Form that is aplied to invoiceEdit action? Best greetings, Paweł Wielgus. 2009/7/30 bilgerkan : > > Hello, > > I'm new on struts and want to handle followin

Re: One Struts2-project to rule them all

2009-07-30 Thread Paweł Wielgus
Hi David, i don't understand well what You would like to achieve but will aliases work for You? Just like regular alias www.myapp.com inside tomcat for myapp.com, you can add myapp2.com and so on for every domain You need. Best greetings, Paweł Wielgus. 2009/7/30 David Canos : > Hi folksI'm facin

RE: New to Struts, a Question

2009-07-30 Thread Martin Gainty
in your config files look for default result assignment with /userDisplay.jsp http://struts.apache.org/2.0.14/docs/result-configuration.html Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht is

Re: EJB Injection in Interceptor

2009-07-30 Thread Struts Two
You can either use Spring or implement your own EJB3 interceptor. Though I use my own EJB3 interceptor, I believe the best option is to go with Spring. Google Juice can also be option on the table as well. --- On Thu, 7/30/09, Robin Mannering wrote: > From: Robin Mannering > Subject: Re: E

Re: One Struts2-project to rule them all

2009-07-30 Thread kishore chakraborty
Hi David, I did a similar project as few months back where we supported 15 different URL with one Enterprise Implementation. The FilterDispatacher approach I guess is the right way to modularize the code. Your own FilterDispatacher (extending the Struts FilterDispatcher this class), which pars

Re: EJB Injection in Interceptor

2009-07-30 Thread Wes Wannemacher
Sorry Robin, this is on my to-do list, but it's not something I'm working on right this second. One thing that is holding me up is the lack of knowledge of JEE. Is there a standard mechanism for creating instances of EJB-hydrated objects? For instance, if you annotated a field on a servlet with @Pe

Re: EJB Injection in Interceptor

2009-07-30 Thread Haroon Rafique
On Today at 9:16am, WW=>Wes Wannemacher wrote: WW> Sorry Robin, this is on my to-do list, but it's not something I'm WW> working on right this second. One thing that is holding me up is the WW> lack of knowledge of JEE. Is there a standard mechanism for creating WW> instances of EJB-hydrated obje

Re: EJB Injection in Interceptor

2009-07-30 Thread Wes Wannemacher
On Thu, Jul 30, 2009 at 10:34 AM, Haroon Rafique wrote: > Hi Wes, > > I don't know much of the details about the JEE spec, however, I can share > my implementation with you. The code is not in production yet, so caveat > emptor (it works for us, for now in development). > > I use glassfish as my ap

Strut2 - tag Issue

2009-07-30 Thread Atul Kumar
I am using Struts 2 tag Now I have a List where Category have attributes as {int id, String name}. Now when I implement this tag, in left hand listbox I put 'categoryList' which create option as Value 1 and so on. Now I transfer few values to right side listbox. In right side list again i have o

Re: [Struts 2] Date conversion general bug!

2009-07-30 Thread rsilva
Hi, I solved my problem replacing the xwork library by xwork-2.0.8-SNAPSHOT.jar. I was necessary to download the source of this version and build it. Aloha, Rafael Sobral Sparecreative wrote: > > I agree that date conversion is a real problem for S2, especially in multi > lingual applicati

Re: Struts 2 performance

2009-07-30 Thread Musachy Barroso
If you have a commercial profiler that works on Mac, it could be good enough. But after I have been using it for a few days I was like "whoaa" this thing has improved a lot. It has a feature for profiling lock contention which is very sweet. musachy On Wed, Jul 29, 2009 at 11:38 PM, Dale Newfield

Re: One Struts2-project to rule them all

2009-07-30 Thread David Canos
thankx for your answers > I did a similar project as few months back where we supported 15 different > URL with one Enterprise Implementation. The FilterDispatacher approach I > guess is the right way to modularize the code. What you mean with Enterprise Implementation? just an ear with a simple

Re: New to Struts, a Question

2009-07-30 Thread Dennis Atkinson
Thanks to all who helped with this - I understand it better now. Dennis From: Martin Gainty To: Struts Users Mailing List Sent: Thursday, July 30, 2009 8:32:01 AM Subject: RE: New to Struts, a Question in your config files look for default result assignmen

common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
Hi, What is the way to provide a common error page in a struts2 application? and automatically redirect to the error page when errors occur? Thanks

Re: common error page in struts2 application

2009-07-30 Thread Dave Newton
Bhaarat Sharma wrote: What is the way to provide a common error page in a struts2 application? and automatically redirect to the error page when errors occur? Map exceptions to a global result. Dave - To unsubscribe, e-mail:

Re: common error page in struts2 application

2009-07-30 Thread Wes Wannemacher
On Thu, Jul 30, 2009 at 2:41 PM, Dave Newton wrote: > Bhaarat Sharma wrote: >> >> What is the way to provide a common error page in a struts2 application? >> and >> automatically redirect to the error page when errors occur? > > Map exceptions to a global result. > > Dave > Make sure you set erro

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
how do we map exceptions to a global result? On Thu, Jul 30, 2009 at 2:41 PM, Dave Newton wrote: > Bhaarat Sharma wrote: > >> What is the way to provide a common error page in a struts2 application? >> and >> automatically redirect to the error page when errors occur? >> > > Map exceptions to a

Re: common error page in struts2 application

2009-07-30 Thread Greg Lindholm
On Thu, Jul 30, 2009 at 2:55 PM, Bhaarat Sharma wrote: > how do we map exceptions to a global result? > > On Thu, Jul 30, 2009 at 2:41 PM, Dave Newton > wrote: > > > Bhaarat Sharma wrote: > > > >> What is the way to provide a common error page in a struts2 application? > >> an

Re: EJB Injection in Interceptor

2009-07-30 Thread David Blevins
Just to note, there has been some work in OpenEJB to make it so Struts objects can use Java EE injection like Servlets or JSF components can. Karan did the work, he might be able to give more detail. -David On Jul 30, 2009, at 6:16 AM, Wes Wannemacher wrote: Sorry Robin, this is on my to-

Re: common error page in struts2 application

2009-07-30 Thread Dave Newton
Bhaarat Sharma wrote: how do we map exceptions to a global result? You may not know about the Struts 2 documentation wiki that has a page covering exception configuration: http://struts.apache.org/2.1.6/docs/exception-configuration.html Dave

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
thanks On Thu, Jul 30, 2009 at 3:21 PM, Dave Newton wrote: > Bhaarat Sharma wrote: > >> how do we map exceptions to a global result? >> > > You may not know about the Struts 2 documentation wiki that has a page > covering exception configuration: > > http://struts.apache.org/2.1.6/docs/exception

Struts2 + JPA + JSON - Help with error

2009-07-30 Thread Nathan Schulte
Hey all, I've got an issue I can't seem to solve. I'm using Struts2 with the JSON Plugin. The error I am receiving is below. This occurs when trying to access the Action. I am not sure why this error is being thrown, but I believe it has something to do with the way I implemented the "Open Sess

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
one last question: lets say my mapping comes out to be this /chapterFour/Error.jsp so will i add that in each package in my struts.xml. I have over 20 right now. Is there a way to just add it somewhere so that all 20 package mappings see it? most of the packing are using struts-default

Re: EJB Injection in Interceptor

2009-07-30 Thread Nathan Schulte
Robin Mannering mtndesigns.co.uk> writes: > http://cwiki.apache.org/S2PLUGINS/ejb3-plugin.html Are you using that plugin, or the following? http://cwiki.apache.org/S2PLUGINS/ejb3-jboss-plugin.html With the "JBoss" plugin, I am able to use Local interfaces rather than remote. I can show an exampl

Struts 2.1.6 TLD file

2009-07-30 Thread Dan Slack
Hi, Our J2EE server (Sybase EAServer 6.1) has been complaining about my struts 2 application when I deploy it. After some digging, it turns out that the "tlibversion" in the Struts2 tld file is "invalid". This seemed to happen when I changed my project to Servlet 2.5. The Struts 2 tlibv

RE: Struts 2 performance

2009-07-30 Thread Martin Gainty
detect lock contention on threads or connections? lock on something else? ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein,

RE: Struts 2.1.6 TLD file

2009-07-30 Thread Martin Gainty
webapp server's container supports a servlet spec here is an example from TC http://tomcat.apache.org/ 2.5 Servlet spec support on TC as the example illustrates Servlet/JSP Spec Apache Tomcat version 2.5/2.1 6.0.20 2.4/2.0 5.5.27 2.3/1.2 4.1.40 2.2/1

Re: common error page in struts2 application

2009-07-30 Thread Dave Newton
Bhaarat Sharma wrote: Is there a way to just add [exception mapping] somewhere so that all 20 package mappings see it? most of the packing are using struts-default You could create your own base package and extend from that. Package extension is also documented on the Struts 2 wiki (briefly):

Re: Struts 2.1.6 TLD file

2009-07-30 Thread Musachy Barroso
Yes, the version is wrong in struts, according to the JSP Spec: Describes the JSP version (number) this taglibrary requires in order to function (dewey decimal) The default is 1.1 #PCDATA ::= [0-9]*{ “.”[0-9] }0..3 //I will fix it in trunk musachy On Thu, Jul 30, 2009 at 12:50 PM, Dan Slack wro

Re: Struts 2.1.6 TLD file

2009-07-30 Thread Dave Newton
Dan Slack wrote: Our J2EE server (Sybase EAServer 6.1) has been complaining about my struts 2 application when I deploy it. After some digging, it turns out that the "tlibversion" in the Struts2 tld file is "invalid". This seemed to happen when I changed my project to Servlet 2.5. The Strut

Re: Struts 2.1.6 TLD file

2009-07-30 Thread Musachy Barroso
agr, actually I missread the regex, I read 0..3 as applied to [0..9]. So the version in the tld is ok. musachy On Thu, Jul 30, 2009 at 1:09 PM, Musachy Barroso wrote: > Yes, the version is wrong in struts, according to the JSP Spec: > > > Describes the JSP version (number) this taglibrary requir

RE: Struts 2.1.6 TLD file

2009-07-30 Thread Dan Slack
Ok, so, it's obviously an issue with my servers validation of tlibversion. I'll guess I'll have to stick with my hack until a new version of the server is tested. Thanks, Dan -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Thursday, July 30, 2009 3:12 PM To: St

Re: Struts2 + JPA + JSON - Help with error

2009-07-30 Thread Nathan Schulte
Nathan Schulte ngc.com> writes: > here, http://article.gmane.org/gmane.comp.jakarta.struts.user/170543, http://article.gmane.org/gmane.comp.jakarta.struts.user/170543 > Here is a link to the error, http://pastebin.com/m5d0d22c8. http://pastebin.com/m5d0d22c8 Also, here is the exception report (o

splitting one struts app into two

2009-07-30 Thread Kate Fox
I have an existing struts/tiles app that works great. I just got a new requirement to add another product that will share some of the infrastructure already created/used in the existing app. I thought I would do this by having three struts.xml files -- one for the new app, one for the existin

Re: One Struts2-project to rule them all

2009-07-30 Thread Zoran Avtarovski
We¹ve implemented a similar solution where we have a custom interceptor which sets a domainId value based on the url used to access the site. It¹s then a simple matter of applying the appropriate processing for each of the domains based on the domainId value. I can tell you from our perspective i

[s2] Multiple file upload using arrays

2009-07-30 Thread Nate Drake
I have a question about multiple file uploads using arrays[1]. Say I have 4 text fields with a file input field "related" to each one on a JSP like this: The user must enter a value in the text field, but uploading a file isn't required. If the user picks a file for "Fi

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
will the global exception not recognize the exception if I am catching it?? I need to catch it because I want to put it in the logs. However, in my example, if i am catching the exception then I am seeing that the error page defined with global-results is not coming up. do the global exception map

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
Sorry I am a little confused. Basically I need to be able to log the message by doing log.error(e.getMessage(), e); However, if i catch the error and put it in the catch block then the global error page does not come up (I am assuming because the exception is caught?) If I do not catch the excep