Okay, sorry, I don't remember the original post. My look at the
FailingAction from the last message was what made me point to the docs.
I also vaguely remember what Jeromy was referring to, but a quick search
in JIRA doesn't show it. The code for most of the interceptors,
especially the model
Hardik Shah wrote:
hi
we can get remoteuser using request.getremoteuser() but how we can set it?
-
One approach is to wrap the request object. Create a Filter, decorate
the HttpServletRequest with one the implements setRemoteUser() and
delegates all other methods to the original.
Jeromy Evans - Blue Sky Minds wrote:
A better approach is to use the container's authentication as intended
so the remoteUser is managed by it..
i think u are saying about jdbc realm for container's authentication!
-
Java/J2EE developer
India
blogs
my first and last goal about that i want to maintain single sign on without
storing user information in session
i have also integrated hibernate with it ,can i use for achieve somthing
like or not?
-
Java/J2EE developer
India
blogs
http://hardik4u.wordpress.com wordpress blog
--
Hardik Shah wrote:
Jeromy Evans - Blue Sky Minds wrote:
A better approach is to use the container's authentication as intended
so the remoteUser is managed by it..
i think u are saying about jdbc realm for container's authentication!
Correct. It's not as bad as it first
Jeromy Evans - Blue Sky Minds wrote:
Correct. It's not as bad as it first seems if you manage the entries in
the two tables (for tomcat) yourself.
Otherwise the next step is a third party library like Spring Security.
try to use jdbcrealm but when submit
gives error like
HTTP
Hardik Shah wrote:
my first and last goal about that i want to maintain single sign on without
storing user information in session
i have also integrated hibernate with it ,can i use for achieve somthing
like or not?
Do you mean single sign-on as in across multiple domains or webapps? If
Hardik Shah wrote:
Jeromy Evans - Blue Sky Minds wrote:
Correct. It's not as bad as it first seems if you manage the entries in
the two tables (for tomcat) yourself.
Otherwise the next step is a third party library like Spring Security.
try to use jdbcrealm but when submit
hi to all,
i am new to eclipse, my client gave a SVN work bench and told
me to work on for struts application. but i dont know from where i should
start, whre i should add my files. can any one help me regarding this .
waiting for your reply.
--
Regards,
Narasimha Raju.Naidu
Hi Narasimha,
Theres an Eclipse plugin called Subclipse which you can download from
subclipse.tigris.org. You would need to configure subclipse so that your
workspace points to the SVN repository. With this you can perform all SVN
operations from your eclipse.
Best Regards,
Krishnan Iyer
Thanks for you instant reply,
they configured every and told me that try to write
build.xml. really i dont know what is build.xml and i searched on google and
found one bild.xml and i edited that file and saved inmy application. but
still im not confident abt that. now i
Jeromy Evans - Blue Sky Minds wrote:
Do you mean single sign-on as in across multiple domains or webapps? If
so, this will probably be container specific.
If you mean a stateless authentication approach (ie. they sign in once,
then each subsequent request includes the credentials so
[EMAIL PROTECTED] wrote:
Is there something unique about the StrutsTypeConverter class that causes
auto-wire by name to work successfully (without even a bean definition of the
converter), but not @Transactional/@PersistenceContext annotations?
Thank you.
It's a guess, but I would say
Hi,
i'm currently working on a new Interceptor for EJB Injection on Actions.
I allready extendet it to work on fields and methods. But since i dont
like to make my own Annotation type i wanted to use the javax.ejb.ejb
anotation. But there is a small problem with that:
the annotation used by
Hardik Shah wrote:
this approach in single webapp
thanks
i should go with spring security ,but it works fine with s2?
\
Yes, others definitely use it with S2 and Spring. It takes substantial
amount of effort to learn. You may have to ask for specific help about
that after going
Heya!
Does Struts save the exception anywhere in the request before loading a
global-error-page?
I would not like to catch exceptions in my Action and save the error message,
and I guess that is a common problem.
So is there any way I can print the Exception.getMessage() in the global error
Alexander Baetz wrote:
Hi,
i'm currently working on a new Interceptor for EJB Injection on
Actions. I allready extendet it to work on fields and methods. But
since i dont like to make my own Annotation type i wanted to use the
javax.ejb.ejb anotation. But there is a small problem with that:
Hello,
I am trying to use “ISO-8859-1” char set in my web application. But when I try
to display “?” sign using html:text field it displays “#163;”. If I look at
the HTML source there I see that “” is escaped by the character entity “amp;”
so now instead of “#163;” the value is “amp;#163;”
The value stack will have 2 properties called exception and exceptionStack,
Thanks,
Nuwan
Jari Fredriksson wrote:
Heya!
Does Struts save the exception anywhere in the request before loading a
global-error-page?
I would not like to catch exceptions in my Action and save the error message,
Jeromy Evans - Blue Sky Minds wrote:
Yes, others definitely use it with S2 and Spring. It takes substantial
amount of effort to learn. You may have to ask for specific help about
that after going through the tutorials.
yes you are right ,i have just seen that ,it might be took so
Hardik Shah wrote:
could you provide basic stuff or link for implementing Guice/Warp with s2
-
he he, that's also a major decision if you want to go down that path.
I don't recommend jumping after whichever approach seems least effort
(btw, your original approach to use a realm
yes :-) you are right !
i just confused bcoz showing various aspects :confused::confused:
Jeromy Evans - Blue Sky Minds wrote:
he he, that's also a major decision if you want to go down that path.
I don't recommend jumping after whichever approach seems least effort
(btw, your original
make my own Annotation type i wanted to use the javax.ejb.ejb anotation. But
Maybe it will be better to use @Inject from xwork or something? The
javax.ejb.ejb annotation are used to define EJBs itself not to be used
for injecting them.
Regards
--
Lukasz
http://www.lenart.org.pl/
Hi,
You can read the docs [1] and if you defined exception handler with
default handler, then exception are stored in request object under
Globals.EXCEPTION_KEY
[1]
http://struts.apache.org/1.3.8/userGuide/building_controller.html#exception_handler
Regards
--
Lukasz
http://www.lenart.org.pl/
--- On Wed, 8/27/08, Jari Fredriksson wrote:
Does Struts save the exception anywhere in the request
before loading a global-error-page?
IIRC it's in the request under Globals.EXCEPTION_KEY. I think.
Dave
-
To unsubscribe,
Hi all
I came across this page for invalidating the session
http://struts.apache.org/2.0.11.2/docs/how-do-we-get-invalidate-the-sess
ion.html
It mentions this way of invalidating the session:
if (session instanceof org.apache.struts2.dispatcher.SessionMap) {
Hi All,
I am migrating from struts 2.0.10 to 2.1.2 ( for need of restful URLs).
Could someone help me understand the following ?
1) Is it better to use Annotations or Codebehind for Restful URLs? ( I some
how like the annotations more than assuming some standard for resources)
2) I am stuck at
rakeshxp wrote:
Hi All,
I am migrating from struts 2.0.10 to 2.1.2 ( for need of restful URLs).
Could someone help me understand the following ?
1) Is it better to use Annotations or Codebehind for Restful URLs? ( I some
how like the annotations more than assuming some standard for resources)
Jeromy Evans wrote:
rakeshxp wrote:
Hi All,
I am migrating from struts 2.0.10 to 2.1.2 ( for need of restful URLs).
Could someone help me understand the following ?
1) Is it better to use Annotations or Codebehind for Restful URLs? (
I some
how like the annotations more than assuming some
I am having this same problem. Have you had any luck fixing this?
On Tue, Aug 26, 2008 at 3:33 PM, Jimmy Shabadoo
[EMAIL PROTECTED]wrote:
Hi Folks,
I have a class, Item, that has a Set of ItemCertifications. I want to
represent ItemCertifications as a select box with the attribute
Excellent. Thanks! So now, I have the following
com.struts.example.action.AccountController
com.struts.example.action.account.LogoutController
When I hit, http://localhost:8080/myapp/account/logout , then I get the
following exception
No result defined for action
There's been no reply to this - is there something more that
I can give folks for help on this?
-Original Message-
From: Repko, Brian [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 24, 2008 11:41
To: Struts Users Mailing List
Subject: Default bundles with JDK6
We have a custom
Jeromy Evans - Blue Sky Minds wrote:
This is a approach is fine. The annotations are a feature of CodeBehind
in 2.1 (used by CodeBehind to create the configuration)
Note that CodeBehind will be replaced by the ConventionPlugin in 2.2ish
but the annotations won't need to change
rakeshxp wrote:
Jeromy Evans - Blue Sky Minds wrote:
This is a approach is fine. The annotations are a feature of CodeBehind
in 2.1 (used by CodeBehind to create the configuration)
Note that CodeBehind will be replaced by the ConventionPlugin in 2.2ish
but the annotations won't need to
I need to sign off, but have a look at the REST showcase included in the
apps directory of struts2.1
The location of results is best described here:
http://struts.apache.org/2.x/docs/codebehind-plugin.html
Codebehind doesn't have much flexibility in the result location.
If you use
Thanks bro. So am I to understand that annotations are required to take
advantage of namespaces if you are not configuring your actions in XML?
This would seem to have simply moved configuration into the actions. :(
Peace,
Scott
On Tue, Aug 26, 2008 at 5:10 PM, Musachy Barroso [EMAIL PROTECTED]
It should work with XML config also.
musachy
On Wed, Aug 27, 2008 at 9:43 AM, [EMAIL PROTECTED] wrote:
Thanks bro. So am I to understand that annotations are required to take
advantage of namespaces if you are not configuring your actions in XML?
This would seem to have simply moved
2008/8/27 Jeromy Evans [EMAIL PROTECTED]
There is something else at play here. If you put a break-point in the
interceptor it should become clear.
I vaguely an update or concern recently relating to automatic refreshing of
the model in the ModelDriven interceptor; the interceptor gets the
Don't know if it helps you, but Hibernate Validator has a credit card
validator. It will work with JPA providers other than just Hibernate.
On Thu, Aug 21, 2008 at 10:39 AM, Gundersen, Richard
[EMAIL PROTECTED] wrote:
Cheers Dave
I'll dig around and see if theres a good open source
Thanks David
I'll give it a try - thanks for the tip
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: David N. Arnold [mailto:[EMAIL PROTECTED]
Sent:
Hi,
Please see this lines:
s:property value='#parameters.eventoId'/br/
s:property value='%{hello + #parameters.eventoId}'/br/
s:property value='%{hello + #parameters.eventoId[0]}'/
Let's say that parameter eventoId == 9, it outputs:
9
hello[Ljava.lang.String;@144c5bb
hello9
The funny thing is
--- On Wed, 8/27/08, Gabriel Belingueres wrote:
[...] or is it some bug in the OGNL evaluation code?
I wouldn't call it a bug per se, but instead unexpected, designed behavior.
In other words, I believe it's doing that on purpose.
There are some other situations in which OGNL will evaluate
Parameters are an array, so parameters.eventoId is an String
array(hence [Ljava.lang.String;@144c5bb), to get the actual value
you need to always do parameters.eventoId[0]. Are you sure that it
print 9 for the first one?
musachy
On Wed, Aug 27, 2008 at 11:15 AM, Gabriel Belingueres
[EMAIL
I think I am beginning to understand this plugin :)
One issue that I am stuck at is that, assuming I have only 1 class
com.struts.example.action.AccountController , then
http://localhost:8080/myapp/account and
http://localhost:8080/myapp/account/1 ( maps to show ) works.
But the moment I have
Creating a new post for a new query on struts 2 rest plugin.
In my current app ( built on struts 2.0.10), I have a custom interceptor
stack ( which is set as default-interceptor-ref ). the code looks like this:
package name=mydefault extends=struts-default namespace=/
Obrigado :D
On Wednesday 27 August 2008 16:36:44 Pedro Borges wrote:
João,
Aqui tens os contactos que me pediste:
- MTS AGI (a que ganhou e que era mais barata): José Carvalho / +351 93
8862326
- Forevergest (a que eu gostei mais): Drª Filomena Monteiro / +351 91
I invalidate my session in my action using
request.getSession().invalidate();
Gundersen, Richard wrote:
Hi all
I came across this page for invalidating the session
http://struts.apache.org/2.0.11.2/docs/how-do-we-get-invalidate-the-sess
ion.html
It mentions this way of
IIRC it will--OGNL plays some games to try and do what it thinks you want to;
I'm not what all the rules are, though.
--- On Wed, 8/27/08, Musachy Barroso [EMAIL PROTECTED] wrote:
From: Musachy Barroso [EMAIL PROTECTED]
Subject: Re: [S2] non intuitive OGNL value evaluation?
To: Struts Users
Positively sure.
Forgot to mention: I'm testing against S2.1.2
2008/8/27, Musachy Barroso [EMAIL PROTECTED]:
Parameters are an array, so parameters.eventoId is an String
array(hence [Ljava.lang.String;@144c5bb), to get the actual value
you need to always do parameters.eventoId[0]. Are you
Unfortunately you can't use JSTL in Struts 2 tags anymore. I got around
this by using JSTL to set the parameter into page scope:
c:set var=paramName value=${param.paramName}/
Once it's in page scope #attr will find it:
s:if test=#attr.paramName == 'someStringValue'found it!/s:if
-B
Correct me if i'm wrong but afaik beans (with bean-name) are defined via
@stateless and @statefull and @entity
@EJB (in servelett context) does the injection for me.
and this doesnt work with struts.
based on the code from the plugin i thought i would have take care of
the instances. but
2008/8/27 Jeromy Evans [EMAIL PROTECTED]
I vaguely an update or concern recently relating to automatic refreshing
of the model in the ModelDriven interceptor; the interceptor gets the
model and re sets it on the stack when it thinks it should.
I followed through your suggestion, and came up
As i answered to the other mail. I'm not sure. Based on the code i
started with i thought i would have to take care of the instances (and
therefore only hold one for a stateless bean).
I'm not that familiar with EJB injection and lookups. but when i think
about it JNDI has to hold the one
2008/8/27 Dave Newton [EMAIL PROTECTED]:
IIRC it will--OGNL plays some games to try and do what it thinks you want to;
Microsoft products too try to do what they think you want...
It's absolutely maddening!
;)
-
To unsubscribe,
which EJB container are you using to implement the @EJB functionality?
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a confidential
Hi Dave,
I don't understand this, what are you saying that I cannot use Set in jsp in
this way ?
Is there any other solution ?
--
Thx, Milan
newton.dave wrote:
--- On Tue, 8/26/08, Dave Newton [EMAIL PROTECTED] wrote:
(And even if you can't or don't want to fix it on the server-side,
I am currently using my own customized EJB3InjectInterceptor for Websphere
application server (It only injects local beans as I do not use remote in my
application). Now seeing that Jeromy is working on a new Interceptor, I wonder
if all the servers follow the same lookup pattern. I know that
Hi,
I have a Struts2 web application. I'm using Spring (for autowiring of
dependency injection) to integrate JPA and Hibernate in the web app.
It's working fine.
Now I need to separate the JPA/Hibernate classes into a
separate jar file (the web app will have this jar file as a dependency).
How
Did you miss the part about ...if you are not configuring your actions in
XML?
Musachy Barroso wrote:
It should work with XML config also.
musachy
On Wed, Aug 27, 2008 at 9:43 AM, [EMAIL PROTECTED] wrote:
Thanks bro. So am I to understand that annotations are required to take
the JPA package structure would look like:
WEB-INF/classes/package/persistence/*.class
WEB-INF/classes/META-INF/persistence.xml
WEB-INF/classes/META-INF/orm.xml (optional)
OR you could jar everything into one jar and place in lib folder
WEB-INF/lib/*.jar
documentation located at
Martin,
Big thanx for a quick answer!
If I understand you correctly - both persistence.xml and applicationContext.
xml can be placed
together with the JPA/Hibernate classes in a jarfile located in WEB-INF/lib in
the web app?
/regards, Håkan
Ursprungligt meddelande
Från: [EMAIL
Hi,
Using pre-Struts 2, what is the preferred method of creating a navigation
menu? I have something that looks like this --
http://screencast.com/t/xmVBY9Te and the desire is that as I click on each
nav item it takes me to my page of choice while styling the current menu
selection differently.
laredotornado wrote:
Hi,
Using pre-Struts 2, is there a tag that will create a date (month, day, and
year)? What would I need to do in the ActionForm? In other words, it seems
I'm not sure I understand; are you asking if there is a tag which will
create separate HTML form inputs for month,
--- On Wed, 8/27/08, Milan Milanovic wrote:
I don't understand this, what are you saying that I
cannot use Set in jsp in this way ?
What would it mean to get the nth index of a set??? Sets are unordered.
Dave
-
To
--- On Wed, 8/27/08, laredotornado wrote:
Using pre-Struts 2 [...]
You mean... Struts 1?
what is the preferred method of creating a navigation menu?
There's Struts Menu, and a million other menu techniques. I know of no
preferred way; it just depends on what you need, how you want to
try the simplest of scenarios such as
html
head
titlethis is for milan/title
/head
body
s:iterator status=stat value={1,2,3,4,5}
!-- reference the index (start with 0 ... ) --
s:property value=#stat.index /
!-- reference the top of the stack which should be the --
!-- current
http://struts.apache.org/2.x/docs/editing-the-documentation.html
Dave
--- On Wed, 8/27/08, Pierre Thibaudeau [EMAIL PROTECTED] wrote:
From: Pierre Thibaudeau [EMAIL PROTECTED]
Subject: Re: [S2] ModelDriven: model not pushed on stack?
To: Struts Users Mailing List user@struts.apache.org
Hi,
I am asking if there is a tag which will create separate HTML form inputs
for month, day and year.
Thanks, - Dave
Laurie Harper wrote:
laredotornado wrote:
Hi,
Using pre-Struts 2, is there a tag that will create a date (month, day,
and
year)? What would I need to do in the
the old way for JBoss servers is a JNDI lookup, which looks something
like this:
InitialContext initialContext = new InitialContext();
service = initialContext.lookup(myEJB);
normaly myEJB would be the name used in the @stateless or @statefull
annotation or (if not set) the classname
As it
You managed three different taglib prefixes in one email; that's gotta be some
sort of record.
--- On Wed, 8/27/08, Martin Gainty [EMAIL PROTECTED] wrote:
From: Martin Gainty [EMAIL PROTECTED]
Subject: RE: [S2] Iterate through two lists
To: Struts Users Mailing List user@struts.apache.org
--- On Wed, 8/27/08, laredotornado wrote:
I am asking if there is a tag which will create separate
HTML form inputs for month, day and year.
Was there one in the taglib documentation? I don't recall there being one.
Dave
-
I'm using TreeSet and my set objects are implementing Comparable interface,
so they are ordered, aren't they ? Altough, I know that Set doesn't have
get(index) method.
O.K. I'll switch to List. Thx.
--
Milan
newton.dave wrote:
--- On Wed, 8/27/08, Milan Milanovic wrote:
I don't understand
If the underlying implementation is ordered then the 9-character JSP trick
would probably work. The solution is left as an exercise for the reader.
Dave
--- On Wed, 8/27/08, Milan Milanovic [EMAIL PROTECTED] wrote:
From: Milan Milanovic [EMAIL PROTECTED]
Subject: Re: [OT] Re: [S2] Iterate
Fair enough. Here's how I'm doing it now. Definitely interested in any
thoughts for cleaning up this mess, optimizing and using Struts 1 to the
fullest. The variable allowedTasks is a Vector of Strings representing
what the user can do within the app.
div width=100% align=left class=menuBar
Struts Two wrote:
Now seeing that Jeromy is working on a new Interceptor, I wonder if all the servers follow the same lookup pattern.
I'm not working on any interceptors related to this.
For JNDI lookups in S2 in the past I've used the DI framework's features
rather S2.
ie. Both Spring and
rakeshxp wrote:
But this does not seem to work. When I hit any restful URL, then there is a
JSESSIONID cookie being set. Could someone point out what is wrong with the
above config ?
Thanks!
CodeBehind is responsible for setting up the packages.
I don't know the history, but codebehind
Hello to all
I am using the YUI plugin with my struts2 based application. I
downloaded jsonplugin-0.30.jar put it in the lib directory.
I have also done the required coding for it. But still I am not able to
load the required class file.
Please suggest me the steps required to implement it.
Repko, Brian wrote:
There's been no reply to this - is there something more that
I can give folks for help on this?
Sounds like a bug. This section has always seemed messy to me. There's
been several changes here in the 2.1 branch.
I don't completely understand your approach, but
78 matches
Mail list logo