Just to clear up my actual question from the thread below as feedback
has run dry unfortunately.
Is there anybody working daily with Struts 2 and EJB 3.0?
If so, what is the best way to obtain local references to EJB 3 session
beans from within Struts 2 action classes?
Thanks for any
Musachy Barroso wrote:
Just to save you some time (because I just spend sometime myself on
this), I would suggest you to use the profiler that comes with
JRockit:
http://www.oracle.com/technology/products/jrockit/index.html
You will have to run your application with the JRockit jre to use it.
Hello,
I'm new on struts and want to handle following problem:
I am listing all the invoice items via logic:iterate 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
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
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 tomsatt...@gmail.com:
In my struts.xml file, I have the UserDisplayAction class and a blank (no
name=) result for userDisplay.jsp. Does it pick up from
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 bilger...@yahoo.com:
Hello,
I'm new on struts and want to
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
in your config files look for default result assignment with result tag as in
result/userDisplay.jsp/result
http://struts.apache.org/2.0.14/docs/result-configuration.html
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de
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 ro...@mtndesigns.co.uk wrote:
From: Robin
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
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
On Today at 9:16am, WW=Wes Wannemacher w...@wantii.com 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
On Thu, Jul 30, 2009 at 10:34 AM, Haroon
Rafiqueharoon.rafi...@utoronto.ca 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
I am using Struts 2 tag s:optiontransferselect
Now I have a ListCategory 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 option value=1Value 1/option and so on.
Now I transfer few values to
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
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
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
Thanks to all who helped with this - I understand it better now.
Dennis
From: Martin Gainty mgai...@hotmail.com
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, July 30, 2009 8:32:01 AM
Subject: RE: New to Struts, a Question
in your
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
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:
On Thu, Jul 30, 2009 at 2:41 PM, Dave Newtonnewton.d...@yahoo.com 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
how do we map exceptions to a global result?
On Thu, Jul 30, 2009 at 2:41 PM, Dave Newton newton.d...@yahoo.com 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
global-exception-mappings
exception-mapping exception=java.lang.Exception result=error /
/global-exception-mappings
On Thu, Jul 30, 2009 at 2:55 PM, Bhaarat Sharma bhaara...@gmail.com wrote:
how do we map exceptions to a global result?
On Thu, Jul 30, 2009 at 2:41 PM, Dave
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
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
thanks
On Thu, Jul 30, 2009 at 3:21 PM, Dave Newton newton.d...@yahoo.com 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:
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
one last question:
lets say my mapping comes out to be this
global-results
result name=error/chapterFour/Error.jsp/result
/global-results
global-exception-mappings
exception-mapping exception=java.lang.Exception
result=error /
/global-exception-mappings
so will i add that in each package in my
Robin Mannering robin at 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
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
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
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
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):
Yes, the version is wrong in struts, according to the JSP Spec:
!ELEMENT tlibversion (#PCDATA)
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,
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 Struts 2
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 Barrosomusa...@gmail.com wrote:
Yes, the version is wrong in struts, according to the JSP Spec:
!ELEMENT tlibversion (#PCDATA)
Describes
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:
Nathan Schulte nathan.schulte at 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
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
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 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:
input type=text name=attrVal/ s:file label=File (1) name=attrImg
/
input type=text name=attrVal/ s:file label=File (2) name=attrImg
/
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
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
43 matches
Mail list logo