Scott,
Annotations serve a very useful purpose, and unless you're using a JRE
less than version 5 they're worth the effort.
I didn't think they were worth it until I had an opportunity to write a
Struts2/Hibernate app from scratch and saw how it moved a lot of the
config from a dis-associate
I have changed the rest action mapper class to apply Ruby Style .
there is draft, post here to find a better way to build RESTful app with
struts2
Rest style action mapper
Using with struts2-rest-plugin, replace the orginal RestActionMapper class.
With url patterns below to support CRUD operati
Hi,
ok, this is not really a struts question but we came to it while
creating tiles pages. it might be that i'm thinking wrong.
scenario:
in writing a tiles template. there i want to include an external
stylesheet x. when an action (domain/namespace/myAction.action) is
executed the result cr
What's wrong with annotations, and more importantly -
How hot is your sister?!
(sorry, couldn't resist)
-Wes
On Mon, 2008-09-01 at 08:57 -0500, [EMAIL PROTECTED] wrote:
> Thanks Jeromy --
>
> I'd rather sleep with my sister than embed annotations in my code. This
> notwithstanding, I underst
David,
I use S2 tags all the time in my sitemesh decorators. When I first did
it, I hadn't put much thought into it (maybe the filter won't be
available to sitemesh, the action is the decorated page, not the
decorator, etc.), I just did it and it worked. It wasn't until later
that I thought maybe
>
> Top action? The "ordered" property doesn't have so much to do with "top
> actions" as with making sure that nested properties are set in order, as
> determined by the number of dots in the parameter name.
>
> Not sure how that would be related to his ModelDriven issue, although it's
> hard to s
Good lord man, fix your line feeds.
--- On Mon, 9/1/08, Martin Gainty wrote:
> > > > That's kinda why I was asking for a
> tutorial/howto for> > > beginners before I make an
> idiot of myself - particularly> > > in light of my
> recent post in the tag :-(> >>
> > Since it's already too late you m
> > > That's kinda why I was asking for a tutorial/howto for> > > beginners
> > > before I make an idiot of myself - particularly> > > in light of my
> > > recent post in the tag :-(> >> > Since it's already too late
> > > you might as well post it then ;)> >> > I don't know of any tutorials,
--- On Mon, 9/1/08, Roger wrote:
> One of the (many) messages I'm seeing is;
> 02-Sep-2008 00:03:39
> com.opensymphony.xwork2.interceptor.ParametersInterceptor
> setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected
> Exception caught
> setting 'addressLine1' on 'class
> co
On Monday 01 September 2008 23:43:14 Dave Newton wrote:
> --- On Mon, 9/1/08, Roger wrote:
> > That's kinda why I was asking for a tutorial/howto for
> > beginners before I make an idiot of myself - particularly
> > in light of my recent post in the tag :-(
>
> Since it's already too late you migh
--- On Mon, 9/1/08, Roger wrote:
> That's kinda why I was asking for a tutorial/howto for
> beginners before I make an idiot of myself - particularly
> in light of my recent post in the tag :-(
Since it's already too late you might as well post it then ;)
I don't know of any tutorials, although
On Monday 01 September 2008 23:19:31 Dave Newton wrote:
> --- On Mon, 9/1/08, Roger wrote:
> > Yes, I'm in devMode and using Struts 2.0.11. Maybe I
> > was just panicing because it shows as a SEVERE error.
>
> It shouldn't; you may want to post some code, config, and stack trace.
>
That's kinda wh
--- On Mon, 9/1/08, Roger wrote:
> Yes, I'm in devMode and using Struts 2.0.11. Maybe I
> was just panicing because it shows as a SEVERE error.
It shouldn't; you may want to post some code, config, and stack trace.
Dave
-
To un
On Monday 01 September 2008 22:46:00 Dave Newton wrote:
> --- On Mon, 9/1/08, Roger wrote:
> > If the parameters are being set & retrieved from the model
> > why do I need to provide getters & setters in the action?
>
> You don't. Are you in devMode? What version are you using?
>
Yes, I'm in devMo
--- On Mon, 9/1/08, Roger wrote:
> If the parameters are being set & retrieved from the model
> why do I need to provide getters & setters in the action?
You don't. Are you in devMode? What version are you using?
Dave
-
To un
Can anyone point me to a tutorial/howto on how to use Model Driven. I've been
experimenting and I've verified that the parameters on the model are being
set, but Struts is complaining loudly that it can't set the parameters on the
action. If the parameters are being set & retrieved from the mode
Sorry for the noise. Please ignore me. My only excuse is that it's been a long
day trying to get to grips with the framework.
Regards
>Hi
>
>Using the tag when getting the data from the action, appears not
>o
>retrieve the label text from my resource bundle. but when I list the options
>in
--- On Mon, 9/1/08, Roger wrote:
> Using the tag when getting the data from
> the action, appears not to retrieve the label text
> from my resource bundle. but when I list the options
> in the jsp it does. So;
>
>label="label.homeInsurance.details.housetype"
> name="housetype"
Hi
Using the tag when getting the data from the action, appears not to
retrieve the label text from my resource bundle. but when I list the options
in the jsp it does. So;
displays "label.homeInsurance.details.housetype" as the text for the label
whereas;
correctly displays the text from
--- On Mon, 9/1/08, Ylva Degerfeldt wrote:
> [...] the List (using "#session.nameOfList") and for [...]
If you're always iterating over the list in the session then you'll always get
the values from the list in the session. If your action doesn't change the data
in the session list you'll always
Hi,
My current problem is about a hidden value which isn't saved to the Action.
This is the background information I think is needed:
The value in question (called "state") is an int property of a POJO
called "InfoObject". Other relevant properties of the POJO are "id" (a
String) and "name" (Str.
Thank you Yoda. :)
On Mon, Sep 1, 2008 at 9:10 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> Become the change you desire.
>
> http://struts.apache.org/helping.html#documentation
>
> Dave
>
> --- On Mon, 9/1/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > From: [EMAIL PROTECTED] <[EMAIL PRO
Become the change you desire.
http://struts.apache.org/helping.html#documentation
Dave
--- On Mon, 9/1/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Subject: Re: REST Showcase 2.1.2
> To: "Struts Users Mailing List"
> Date: Monday, September 1
encode the response using ISO-8859-1 charset.
2008/9/1, Esteve Camps Chust <[EMAIL PROTECTED]>:
> Hi all,
>
> I'm having a problem when using getText action method. This method gets a
> text from package.properties file. Its value is an spanish text, containing
> some encoded chars (for instance,
It can mean that you did not configured the S2 filter in the web.xml
file at all.
2008/9/1, Dave Newton <[EMAIL PROTECTED]>:
> --- On Mon, 9/1/08, Harden ZHU wrote:
> > I am using s:datetimepicker as follow
> >
> > > displayFormat="-MM-dd" />
> >
> > When user.birthDate is null, i got excepti
Someone should update the REST plug-in docs so others don't waste days
trying something that WILL NOT work as designed. Validation permutations
can be tricky enough without chasing a dead end.
On Mon, Sep 1, 2008 at 8:57 AM, <[EMAIL PROTECTED]> wrote:
> Thanks Jeromy --
>
> I'd rather sleep wit
Thanks Jeromy --
I'd rather sleep with my sister than embed annotations in my code. This
notwithstanding, I understand your reluctance to add yet another permutation
to that lookup scheme. I poked around in the code back in 2.0 and nearly
got a nose bleed. I hope there are a ton of unit tests a
the properties file will contain the properly encoded stringsassuming your xml
configuration files have UTF-8 set for characterEncoding?you can setCharacterEncoding by sending it thru a filter
(before the Action classes are called)
http://ianpurton.com/struts-utf-8-and-form-submissions/
?Martin
Use native2ascii to encode your package.properties file.
--- On Mon, 9/1/08, Esteve Camps Chust <[EMAIL PROTECTED]> wrote:
> From: Esteve Camps Chust <[EMAIL PROTECTED]>
> Subject: geText from Action encodes html entities
> To: user@struts.apache.org
> Date: Monday, September 1, 2008, 3:24 PM
>
Wouldn't a property file normally contain an escaped unicode value for "ó"?
That aside--is getText() itself doing the escaping, or is it being escaped on
the JSP side through a property tag? (I don't remember if getText escapes; I
didn't think that it did.)
(I'm also not sure about encoding a p
Hi all,
I'm having a problem when using getText action method. This method gets a
text from package.properties file. Its value is an spanish text, containing
some encoded chars (for instance, estación, for 'estación'). When
displaying this I get 'estaci&on.
My package.properties files is UTF-8 en
rakeshxp wrote:
Hi All,
I have 2 questions regarding the struts-rest plugin ( 2.1.3-snapshot)
1) How can I write a controller that will handle the request on "/" ( i.e
http://www.myhost.com )?
No, there isn't.
If you substitute the CodeBehind plugin for the Convention plugin, then
you
alvins wrote:
Hi guys,
I have been wrestling with the REST plugin for the last couple of days and
have posted some notes in another thread.
I have hit a problem which I need a little help with. Basically in my REST
controller I have a create and update method as per the REST guidelines. I
need
stanlick wrote:
Also, what is the naming convention for validation xml files using the Code
Behind/REST plug-in?
I've tried several combinations of naming, but none seem to work.
The short answer is: you can't. It doesn't work.
Fortunately annotation validation works correctly in 2.1
--- On Mon, 9/1/08, Andrew Myers wrote:
> Also the link to issue tracker on this page
> http://struts.apache.org/2.x/docs/editing-the-documentation.html
> seems to just go back to the documentation home page.
Here's the JIRA homepage:
https://issues.apache.org/struts/secure/Dashboard.jspa
The in
Hi,
I noticed a couple of things in the documentation which I thought I
would help with updating but I am having some trouble getting started.
In particular I wanted to leave a comment about the fact that the
-DarchetypeVersion=2.0.9-SNAPSHOT needs to be changed however even
when I'm logged in I
--- On Mon, 9/1/08, Harden ZHU wrote:
> I am using s:datetimepicker as follow
>
> displayFormat="-MM-dd" />
>
> When user.birthDate is null, i got exception
> ==
> Caused by: The Struts dispatcher cannot be found. This is
> usually
> caused by using Struts tags
> without the
--- On Mon, 9/1/08, Narasimha Raju Naidu wrote:
> i need to install Struts 1.2 plugin for eclipse 3.2
That doesn't help. *What* plugin? The Struts project itself doesn't have any
Eclipse plugins. There's Easy Struts, there's Struts Console, there's MyEclpise
(not really a plugin), there may be m
I have found a work-around. It works properly if I add in the parent page:
but it is not "correct" because not all pages need it. Has anybody a better
solution?
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: OptionsTransferSelect issue
> Date: Mon, 1 Sep 2008 09:46:56 +00
Hi there,
I'm using sitemesh with struts 2 and am currently applying a decorator to all
my actions, including a static menu in a div.
So something like
menuitem 1
menuitem 2
menuitem 3
What I want to do is make that menu build dynamically to have, in spirit:
I have my menu ac
Hi,
I am trying to use the optionsTransferSelect but it shows me the error
"moveSelectedOptions is not defined".
I have this jsp page and it works if I open this page directly; but I access
to this page using ajax in another page. Any idea?
<%@ page pageEncoding="ISO-8859-1" %>
<%@ ta
THANK you, Laurie!!
That worked!!
You have no idea how stressed I am about finishing this project so I
Really appreciate that kind of help right now!
:-)
/Ylva
> I find myself with a few spare bones, so I'll throw one to Ylva ;-) Try
> document.forms.NameOfForm... of document.getElementById('N
Hi,
I am using s:datetimepicker as follow
When user.birthDate is null, i got exception
==
Caused by: The Struts dispatcher cannot be found. This is usually
caused by using Struts tags
without the associated filter. Struts tags are only usable when the
request has passed through
thanks for your reply,
i need to install Struts 1.2 plugin for eclipse 3.2
On 8/31/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- On Sun, 8/31/08, Narasimha Raju Naidu wrote:
> > I am new to eclipse, can any one help me. i need
> > instructions for installing struts 1.2 pl
44 matches
Mail list logo