I believe it is technically possible to do this, but not at all
intuitive right now. This is probably my number one improvement
request for the REST plugin.
You should be able change the wildcard mapper to one that recognizes
named wildcards then use them in your namespace annotation like this:
list=#{'01': getText('message.key'), ...
Hi,
I have tried the above and it doesn't work:
the requested key list=#xx cannot be resolved as a collection/
so i do the bundle mapping in my Action class before the map is populated.
just FYI.
Eddie Lau
--
View this message in
Mike,
The safari signup requires a credit card which I'm not going to give so
I'm afraid I can't comment after seeing the book.
It has always been my understanding that the /Earth/France/Paris style
of notation is a search engine optimised (SEO) layer which has the
design goal of being
Hi Al,
Thanks for the comments. The book/chapter description is actually a
simplification of my real problem domain (which is commercially
sensitive).
The under-lying storage mechanism isn't simple but is quite abstract
from the REST API we are providing and the hierarchical model is
required to
Hmmm, I haven't come across the Namspace annotation stuff. I'll
investigate that and see how I get on. If anyone can point me at some
useful examples of how I might achieve this it'd be greatly
appreciated.
Thanks again for all the responses...
2008/6/17 Don Brown [EMAIL PROTECTED]:
I believe
Márcio Gurgel wrote:
Hi Everyone,
Some time ago I asked you about a problem with old objects in session.
I noted that my application is using diferent sessions to recovery a data
from db.
Some times the application shows the corect result, other shows old results
(with old session).
I guess
How about a Jacking Struts Day?
Dave Newton wrote:
--- On Mon, 6/16/08, dusty [EMAIL PROTECTED] wrote:
For sure, but since we are Java developers with a captial J,
then we can call it something other than hackfest which suits
the script kitties well. ;-)
No thanks; as a founding
I think he's trying to do whats at
http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html without
using the great google first :).
Al.
Laurie Harper wrote:
Márcio Gurgel wrote:
Hi Everyone,
Some time ago I asked you about a problem with old objects in session.
I noted that my
2008/6/17 Márcio Gurgel [EMAIL PROTECTED]:
Does anyone knows how to implement a session-per-request in Struts 2?
If you mean a Hibernate session, you have to implement the Open
Session In View pattern, for example using a filter.
http://www.hibernate.org/43.html
If you are using Spring, there
Hi,
I am having problems using a custom tag class derived from LinkTag and
using a runtime expression as the 'href' attribute value. It seems like
expressions in attributes that are inherited from LinkTag are not parsed
by my JSP engine (Jetty server). In my TLD file, rtexprvalue is set to
hi,
i need to populate my combo with options taken from the FormBean and
compared with the Enum values.
i have it working but i doubt it's the best way to do it (and it mixes too
much struts tags with jstl ones, in my opinion)
anybody can help?
[EMAIL PROTECTED] import=MyPackage.* //this
I'm gonna try your sugestions and post the result.
Thanks a lot!
Márcio Gurgel
2008/6/17 Antonio Petrelli [EMAIL PROTECTED]:
2008/6/17 Márcio Gurgel [EMAIL PROTECTED]:
Does anyone knows how to implement a session-per-request in Struts 2?
If you mean a Hibernate session, you have to
Hi,
I am trying to use Dojo Richtext editor in my jsp. I have specified it as
s:textarea id=editor label=editor theme=ajax/
When the page is launched I get the error
There is no Action mapped for namespace /struts/dojo/src/widget/templates
and action name EditorToolbarOneline. - [unknown
--- On Mon, 6/16/08, Musachy Barroso [EMAIL PROTECTED] wrote:
is there a #this? top does map to the object on top of the stack.
http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/projection.html
I extrapolated the idea of the current object to extend to s:iterator...
but I didn't check
--- On Tue, 6/17/08, Al Sutton [EMAIL PROTECTED] wrote:
How about a Jacking Struts Day?
That's... a little disturbing ;)
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Let me guess: a similar problem to the date/time picker tag.
--- On Tue, 6/17/08, StrutsUser [EMAIL PROTECTED] wrote:
From: StrutsUser [EMAIL PROTECTED]
Subject: Dojo Rich Text Editor Not Rendered
To: user@struts.apache.org
Date: Tuesday, June 17, 2008, 7:20 AM
Hi,
I am trying to use Dojo
Hello,
Are there any good options to integrate ajax with struts 1? I woul like
something based o tags. My problem is that i have an upload form
html:form action=/something enctype=multipart/form-data
styleId=somethingId.
and the input files are like :
html:file property=image1
It seems to be similar problem because the error messages are similar and I
have already noticed it. But it need not be that because,
in case of datetime picker the issue was with the .html extension. Now I am
able use other dojo tags with same .html extension.
newton.dave wrote:
Let me
i have used
s:head theme=ajax calendarcss=calender-green debug=true/s:head
but when i run I get error
javax.servlet.ServletException: org.apache.jasper.JasperException:
/abc.jsp(13,2) According to TLD, tag s:head must be empty, but is not
I display a Tree with more than 1000 nodes using a lazy-loading sx:tree
with struts2.1.2.
Whenever I select a node with nodeid =1000, I get a
NumberFormatException because the nodeid seems to be i18n'ized and gets
transported to (and from) the browser as a string literal 1.271
instead of 1271
--- On Tue, 6/17/08, xaero [EMAIL PROTECTED] wrote:
s:head theme=ajax calendarcss=calender-green debug=true/
Make the tag empty.
(no spaces) still creates a text node, AFAIK.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
I am sorry i forgot to mention that i want to use datepicker tag and without
ajax theme i don't think i can use it..anyways thanks for reply
the tag i m using is
s:datetimepicker name=caption label=Caption
displayFormat=dd/MM//
newton.dave wrote:
--- On Tue, 6/17/08, xaero [EMAIL
Ah yes, the projection thing, but is it still defined outside a projection?
musachy
On Tue, Jun 17, 2008 at 7:45 AM, Dave Newton [EMAIL PROTECTED] wrote:
--- On Mon, 6/16/08, Musachy Barroso [EMAIL PROTECTED] wrote:
is there a #this? top does map to the object on top of the stack.
--- On Tue, 6/17/08, xaero [EMAIL PROTECTED] wrote:
I am sorry i forgot to mention that i want to use datepicker
tag and without ajax theme i don't think i can use it..anyways
thanks for reply
newton.dave wrote:
s:head theme=ajax calendarcss=calender-green debug=true/
Are you seeing the
From time to time people ask about implementing a simple loop using
s:iterator... similar to c:forEach begin=... end=
Turns out there's some OGNL magic for doing simple loops (start at 0, go to
n-1), and the significance of it never really struck me until the #this
questions.
s:iterator
Nice, and confusing :)
//I think we should create a for tag
musachy
On Tue, Jun 17, 2008 at 9:38 AM, Dave Newton [EMAIL PROTECTED] wrote:
From time to time people ask about implementing a simple loop using
s:iterator... similar to c:forEach begin=... end=
Turns out there's some OGNL
+100 for the for tag.
It'll mean I don't end up using displaytag and including the jar just to
show simple paged lists.
Musachy Barroso wrote:
Nice, and confusing :)
//I think we should create a for tag
musachy
On Tue, Jun 17, 2008 at 9:38 AM, Dave Newton [EMAIL PROTECTED] wrote:
From
Aww, you guys are making me sad :(
--- On Tue, 6/17/08, Al Sutton [EMAIL PROTECTED] wrote:
From: Al Sutton [EMAIL PROTECTED]
Subject: Re: (!) Simple for-next loops using s:iterator..., was: Re: [S2]
using s:iterator for a sequence of integers
To: Struts Users Mailing List
See this:
http://freemarker.sourceforge.net/docs/ref_builtins_number.html
in short, try:
id: '${node.id?c}',
musachy
On Tue, Jun 17, 2008 at 8:16 AM, Gehmeyr, Andreas (CT) (EXT)
[EMAIL PROTECTED] wrote:
I display a Tree with more than 1000 nodes using a lazy-loading sx:tree
with
Hello,
I am troubleling with the Fileupload in S2.
I want to have printed my own messages on failure of the file upload
which takes place in the interceptor.
I am uploading files exceeding the set maximum size
The documentation talks about the struts-message-properties, where is
declared:
Hey gang,
I've been hoping to add comments to various documentation pages on the wiki
lately. I have an account for the wiki but instead of an add comments
link (which I'd swear used to be there) I've only got an edit page link.
And of course I don't have the necessary privileges to edit the
I was hoping that someone could tell me why this is happening. I am not looking
for a solution on this as I have found a workaround. For a moment I thought the
problem may be related to submiting the file when autocompleters submit the
form, so I used a form filter to exclude file input but of
Hi,
is it possible to do this:
action name=category/list
class=repo.CategoryAction method=list
resultcategoryList.tile/result
/action
for result = LIST rather than SUCCESS? - I mean I want to use LIST as the
default when none is defined, rather than SUCCESS - I find it more intuitive for
Are you looking at http://cwiki.apache.org/confluence/display/WW/Home
or one of the exported copies of the wiki?
Personally I like JIRA issues over page comments for wiki issues. They
are easier to keep track off.
-Matthieu
On Tue, Jun 17, 2008 at 9:44 AM, Jim Kiley [EMAIL PROTECTED] wrote:
Well that explains it. I have been looking at
http://cwiki.apache.org/WW/home.html. Thanks!
Thanks for the tip, as far as JIRA versus page comments.
jk
On Tue, Jun 17, 2008 at 11:45 AM, Matthieu Heimer [EMAIL PROTECTED] wrote:
Are you looking at
Which size limit are you exceeding?
http://cwiki.apache.org/confluence/display/WW/File+Upload#FileUpload-FileSizeLimits
The error message you are seeing is hard coded in commons upload. I
think all you can do is open up the struts.multipart.maxSize value to
be larger than the maximumSize
Hi all,
I'm trying to integrate Struts2 with JSON; what is needed beside a reference
to the JAR?
I'm trying to use the plugin and for some reason when I extends
'json-default' in the xml file - the action doesn't work (it works when
extending struts-default).
I'm using eclipse, I added the
Saying something doesn't work doesn't work :) . That tells us
nothing. What are you doing? What happens?
I tried setting up simple examples based on the documentation in the
Wiki, and it worked fine. In addition, there are some additional JSON
changes in 2.1.2 beta which I've also been able
Thank you Dave; I've been telling myself there *must* be an OGNL
solution for this for so long, but hadn't managed to track it down. It's
the first time I've seen this solution posted, and I definately think
it's worth an entry in the FAQ!
I added a code sample to IteratorComponent and threw it in to s:iterator...
tag docs but it'll take the normal amount of time to percolate.
(People complain about OGNL, but I sure do like it more than JSP EL, even with
the occasional Hmm, that's... interesting.)
Thanks for throwing it into the
you are right (I guess I was trying to be succinct),
Ok...so here's the deal, I wish to use JSON, for this, I downloaded the JAR
(jsonplugin-0.30) and had a reference to it (on my eclipse)
So, this is the previous code I was using that worked well:
XML:
struts
package name=json-support
How did you add the reference in eclipse? Make sure it is listed in
the J2EE Module dependencies.
musachy
On Tue, Jun 17, 2008 at 2:22 PM, xianwinwin [EMAIL PROTECTED] wrote:
you are right (I guess I was trying to be succinct),
Ok...so here's the deal, I wish to use JSON, for this, I
Is your URL right? Is the request being made? Is there return data on the wire?
Dave
--- On Tue, 6/17/08, xianwinwin [EMAIL PROTECTED] wrote:
From: xianwinwin [EMAIL PROTECTED]
Subject: RE: struts2 and JSON integration problem (plugin)
To: user@struts.apache.org
Date: Tuesday, June 17,
1. How did you add the reference in eclipse? Make sure it is listed in
the J2EE Module dependencies.
After placing the JAR I right clicked on the project--Properties--Java
Build Path--Libraries--Add External JAR-- jsonplugin-0.30.jar
2. Is your URL right? Is the request being made? Is there
How does this action mapper make its way into the runtime configuration? I
have studied its (and the codebehind) struts-plugin.xml files, but I do not
see where
### How request URLs are mapped to and from actions
#struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper
Is
Also, what are the alternate ReST mappers here?
RestfulActionMapper
RestActionMapper
Restful2ActionMapper
I always get nervous when I see a 2 in a class name.:-((
stanlick wrote:
How does this action mapper make its way into the runtime configuration?
I have studied its (and the
How does the test with the entries class fail? Does it produce no output
at all? Or does it just fail to render sanely due to the spurious
closing td tag? What does the HTML source look like?
L.
Alexander Bätz wrote:
Hi,
I would suggest experience or some insight to the requirements of
Paranoid_Fabio wrote:
Hello. What I want to do is a very simple thing, but I can't find a solution.
I call an action from a jsp page, and I want to display the resulting jsp
page in a new browser window.
I've already read about target=_blank, target=_new etc... but I can't
use them because I
--- On Tue, 6/17/08, stanlick [EMAIL PROTECTED] wrote:
How does this action mapper make its way into the runtime configuration?
In the plugin XML file via bean and constant configs:
bean name=rest
type=org.apache.struts2.dispatcher.mapper.ActionMapper
mfirry wrote:
hi,
i need to populate my combo with options taken from the FormBean and
compared with the Enum values.
i have it working but i doubt it's the best way to do it (and it mixes too
much struts tags with jstl ones, in my opinion)
anybody can help?
[EMAIL PROTECTED]
Daniel wrote:
Hello,
Are there any good options to integrate ajax with struts 1? I woul like
something based o tags. My problem is that i have an upload form
html:form action=/something enctype=multipart/form-data
styleId=somethingId.
and the input files are like :
html:file
hi, and thanks for your help
With all those scriptlets, mixing of taglib and RT expression values,
and the relevant Java code not included, it's a little difficult to see
exactly what you're attempting.
i'm just trying to get the duration from the FormBean, compare it with the
other possible
That's what I expected to find but instead found this:
struts
bean type=com.opensymphony.xwork2.UnknownHandler
class=org.apache.struts2.codebehind.CodebehindUnknownHandler /
bean type=com.opensymphony.xwork2.config.PackageProvider
name=codebehind
-Original Message-
From: xianwinwin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2008 11:38 AM
To: user@struts.apache.org
Subject: RE: struts2 and JSON integration problem (plugin)
1. How did you add the reference in eclipse? Make sure it is
listed in the J2EE Module
On Tue, Jun 17, 2008 at 2:38 PM, xianwinwin [EMAIL PROTECTED] wrote:
1. How did you add the reference in eclipse? Make sure it is listed in
the J2EE Module dependencies.
After placing the JAR I right clicked on the project--Properties--Java
Build Path--Libraries--Add External JAR--
--- On Tue, 6/17/08, stanlick [EMAIL PROTECTED] wrote:
Are you looking at the source in
/struts-2.1.2/src/plugins/rest/src/main/java?
No, I had been looking in trunk.
S2.1.2, however, doesn't differ from trunk w.r.t. the action mapper (see
appended diff). The config file wouldn't be in the
FYI, AjaxTags hasn't been supported or developed in a couple of years
(the AjaxTags Laurie refers to here I mean... there's a whole AjaxTags
project separate from this that's still very much alive).
AjaxTags evolved into the AjaxParts Taglib, or APT for short, which is a
component of Java Web
Scott,
The CodebehindUnknownHandler sort of does the work of the action mapper.
Think of it this way, instead of throwing a 404, the request is handled
by CodebehindUnknownHandler which will find the action/result using it's
own semantics. This allows regular struts.xml configuration at the same
though the datepicker tag is still giving me problems but thanks for the help
i m not getting that exception any more rest i'll try to figure it out
myself and thanks for telling that there is a difference between foo/foo
and foo/ i didn't knew it earlier will keep this in mind in future. thanks
Folks, this type of nested resource is how a Rails REST url work and its
awesome. So easy to configure and so easy to use with things like
link_to :chapter_path(@book)
That will make the /book/book.getId()/chapter/chapter.getId() url. There
is no doubt that providing nested resources
60 matches
Mail list logo