Re: struts 1 ajax integration

2008-06-17 Thread Daniel
I saw ajaxparts, i have tried to use it, but when i have put a button in the page, according to their tutorial, nothing happened. Not even a javascript error. Other fmw, not necessarily based on tags that can be integrated in struts 1, are any? I think that dojo can be integrated, but it is impera

Re: REST plugin URL syntax

2008-06-17 Thread dusty
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 w

Re: datepicker tag problem

2008-06-17 Thread xaero
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 and i didn't knew it earlier will keep this in mind in future. thanks for help ne

Re: RestActionMapper

2008-06-17 Thread Wes Wannemacher
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

Re: struts 1 ajax integration

2008-06-17 Thread Frank W. Zammetti
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

Re: RestActionMapper

2008-06-17 Thread Dave Newton
--- 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

Re: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Musachy Barroso
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-

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Karr, David
> -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 Mod

Re: RestActionMapper

2008-06-17 Thread stanlick
That's what I expected to find but instead found this: Are you looking at the source in /struts-2.1.2/src/plugins/rest/src/main/java? newton.dave wrote: > > --- On Tue, 6/17/08, stanlick <[EMAIL PROTECTED]> wrote: >> How does this action mapper mak

Re: populate combo after comparing bean values with enum

2008-06-17 Thread mfirry
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

Re: struts 1 ajax integration

2008-06-17 Thread Laurie Harper
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 . and the input files are like : The values are mapped on the form, private FileForm image1; .. Now, i whant to submit this f

Re: populate combo after comparing bean values with enum

2008-06-17 Thread Laurie Harper
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] import="MyPacka

Re: RestActionMapper

2008-06-17 Thread Dave Newton
--- 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: and Dave - To unsubscribe, e-mail: [

Re: s:a and result in new window

2008-06-17 Thread Laurie Harper
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

Re: problems when using

2008-06-17 Thread Laurie Harper
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 stru

Re: RestActionMapper

2008-06-17 Thread stanlick
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 code

RestActionMapper

2008-06-17 Thread stanlick
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 b

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread xianwinwin
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 the

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Dave Newton
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 1

Re: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Musachy Barroso
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 do

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread xianwinwin
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:

Re: (!) Simple for-next loops using , was: Re: [S2] using for a sequence of integers

2008-06-17 Thread Dave Newton
I added a code sample to IteratorComponent and threw it in to 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 FAQ; not su

Re: (!) Simple for-next loops using , was: Re: [S2] using for a sequence of integers

2008-06-17 Thread Laurie Harper
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! http://cwiki.apache.org/confluence/pages/viewpage.acti

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Karr, David
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

struts2 and JSON integration problem (plugin)

2008-06-17 Thread xianwinwin
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 json

Re: Struts2 Fileupload user defined messages

2008-06-17 Thread Matthieu Heimer
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 intercept

Re: Wiki

2008-06-17 Thread Jim Kiley
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 http://cwiki.apache.org/confluence/display/W

Re: Wiki

2008-06-17 Thread Matthieu Heimer
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: >

default result name other than SUCCESS?

2008-06-17 Thread Adam Hardy
Hi, is it possible to do this: categoryList.tile 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 my app. Thanks Adam

Re: Autocompleter tag fails when file tag is added

2008-06-17 Thread Struts Two
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 n

Wiki

2008-06-17 Thread Jim Kiley
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

Struts2 Fileupload user defined messages

2008-06-17 Thread Dirk Schumacher
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: s

Re: [Struts2] NumberFormatException with large sx:tree

2008-06-17 Thread Musachy Barroso
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 struts2.

Re: (!) Simple for-next loops using , was: Re: [S2] using for a sequence of integers

2008-06-17 Thread Dave Newton
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 , was: Re: [S2] > using for a sequence of integers > To: "Struts Users Mailing List" > Date: Tuesday, June 17, 2008

Re: (!) Simple for-next loops using , was: Re: [S2] using for a sequence of integers

2008-06-17 Thread Al Sutton
+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: F

Re: (!) Simple for-next loops using , was: Re: [S2] using for a sequence of integers

2008-06-17 Thread Musachy Barroso
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 > similar to . > > Turns out there's some OGNL magic for doing simple loops (start

(!) Simple for-next loops using , was: Re: [S2] using for a sequence of integers

2008-06-17 Thread Dave Newton
>From time to time people ask about implementing a simple loop using > similar to . 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. Narnar Aww yeah. Dave "OGNL FTW" Newton ---

Re: datepicker tag problem

2008-06-17 Thread Dave Newton
--- 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: >> Are you seeing the difference between what you had and the above? is

Re: differences btw and

2008-06-17 Thread Musachy Barroso
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. >

Re: datepicker tag problem

2008-06-17 Thread xaero
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 newton.dave wrote: > > --- On Tue, 6/17/08, xaero <[EMAIL PROTECTED]> wrote: >> > > Make the tag empty. > > "" (no spaces) still

Re: datepicker tag problem

2008-06-17 Thread Dave Newton
--- On Tue, 6/17/08, xaero <[EMAIL PROTECTED]> wrote: > Make the tag empty. "" (no spaces) still creates a text node, AFAIK. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[Struts2] NumberFormatException with large sx:tree

2008-06-17 Thread Gehmeyr, Andreas (CT) (EXT)
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"

datepicker tag problem

2008-06-17 Thread xaero
i have used 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 org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515) org.apache.struts2.dispatcher.Fil

Re: Dojo Rich Text Editor Not Rendered

2008-06-17 Thread StrutsUser
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 gue

struts 1 ajax integration

2008-06-17 Thread Daniel
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 . and the input files are like : The values are mapped on the form, private FileForm image1; .. Now, i whant to submit this form with ajax, a

Re: Dojo Rich Text Editor Not Rendered

2008-06-17 Thread Dave Newton
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

Re: What can you do with S2?

2008-06-17 Thread Dave Newton
--- 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]

Re: differences btw and

2008-06-17 Thread Dave Newton
--- 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 but I didn't check the

Dojo Rich Text Editor Not Rendered

2008-06-17 Thread StrutsUser
Hi, I am trying to use Dojo Richtext editor in my jsp. I have specified it as 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 location] at com.opensymphony.xwork2.DefaultAc

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Márcio Gurgel
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 t

populate combo after comparing bean values with enum

2008-06-17 Thread mfirry
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 pa

LinkTag 'href' attribute problem

2008-06-17 Thread Glock, Michael
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, is set to 'true' but the re

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Antonio Petrelli
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, the

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Al Sutton
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 applic

Re: What can you do with S2?

2008-06-17 Thread Al Sutton
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 m

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Laurie Harper
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 tha

Re: REST plugin URL syntax

2008-06-17 Thread Mike Watson
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

Re: REST plugin URL syntax

2008-06-17 Thread Mike Watson
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