Hi,
Please check the complete example at
http://www.roseindia.net/struts/hibernate-spring/
Thanks
-Original Message-
From: Håkan Jacobsson [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2008 1:25 AM
To: user@struts.apache.org
Subject: Ang: RE: Struts2 with JPA/Hibernate using Spri
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 presu
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.
Tha
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 us
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 Gu
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.
-1 ? "menuLinkSelected" : "m
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] Itera
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 understa
--- 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
-
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"
> Date: Wednesd
the "old" way for JBoss servers is a JNDI lookup, which looks something
like this:
InitialContext initialContext = new InitialContext();
service = initialContext.lookup("");
normaly would be the name used in the @stateless or @statefull
annotation or (if not set) the classname
As it has be
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
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"
> Date: Wednesday,
try the simplest of scenarios such as
this is for milan
then make that example MORE complex as needed
different collection datatypes
Days of the week
then acquire values from bean defined in container:
--- 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 impl
--- 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 unsubscri
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,
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.
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 PROTEC
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
http://java.sun.
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
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
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 in
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
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 nat
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 unsubscrib
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 instan
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
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 maybe
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:
Once it's in page scope #attr will find it:
found it!
-B
"Musachy Barros
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]". A
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: "Strut
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
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 9
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:
true
WARN
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 a
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
<[EMAI
--- 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
Hi,
Please see this lines:
Let's say that parameter eventoId == 9, it outputs:
9
hello[Ljava.lang.String;@144c5bb
hello9
The funny thing is that #parameters.eventoId' is evaluated to String
when it's alone (what I expected to be), but it is evaluated to an
String array when concatenated lik
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: Wedne
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 altern
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
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 con
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]
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 freemarker
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 cha
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 (muc
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 TextProv
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
com.struts.example.action.accou
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
> mul
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 st
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)
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
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) {
((org.
--- 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, e
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/
> 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/
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 orig
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
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
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,
a
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 “£”. If I look at
the HTML source there I see that “&” is escaped by the character entity “&”
so now instead of “£” the value is “£” . Where as if
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:
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
p
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 t
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
[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 yes.
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 credent
68 matches
Mail list logo