Re: javascript in returned jsp through xhr

2008-08-16 Thread Jeromy Evans
in the result.. Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: javascript in returned jsp through xhr

2008-08-16 Thread Jeromy Evans
Dave Newton wrote: Somewhat on-topic: we should really figure this out, enumerate go/no-go use-cases, and write something up, since it comes up pretty frequently--I was never able to reproduce that JIRA issue around this, but I'd sure like to put this issue to rest w/ an easily-spewable wiki

Re: Problems with sx tags

2008-08-15 Thread Jeromy Evans
oscar perez wrote: One of the problems is that if in the returned AJAX content is included any sx tag then if there is any javascript in the returned content this simply dissappears. I tried all the combinations with executeScripts separateScripts with no success however.. I've created

Re: URL mapping in Struts 2

2008-08-13 Thread Jeromy Evans
XML User wrote: Hi, How can I implement the URL mapping so that our URL will always look like www.abc.com/products/toys/acbtoy It should not end with something like abctoy.action OR abctoy.do. Is there a way for making this happen? If so then can you please let me know with code? See

Re: s:action/ redirect does not work with Tiles.

2008-08-11 Thread Jeromy Evans
Griffith, Michael * wrote: Jeromy, Thanks for the replies. In cases where I've needed this behaviour I've referenced the JSP instead of a Tile. Do you mean your result redirects to a JSP instead of a struts action? MG Not Redirect, DISPATCH to a JSP.

Re: yikes! : net.sf.json.JSONException: There is a cycle in the hierarchy!

2008-08-08 Thread Jeromy Evans
-lib.sourceforge.net/usage.html In struts2, substitute the default JSON ContentTypeHandler with one that uses jsonlib with your customized settings. Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: s:action/ redirect does not work with Tiles.

2008-08-08 Thread Jeromy Evans
that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Treenode, expanded onload

2008-08-06 Thread Jeromy Evans
Jack Stuard wrote: Hi, I've searched but maybe I don't have used the right term to this, I'd to know if is possible to show a Tree, with some specific treenodes already opened (or expanded) onload of a page in Struts 2 (stable version). Thanks in advance. Jack Stuard Use a client-side

Re: [S2] Ajax DIV Question

2008-08-06 Thread Jeromy Evans
Hoying, Ken wrote: I was able to update the href and formId via JavaScript and DOJO as follows: dojo.widget.byId('divId').href = 'myUrl'; dojo.widget.byId('divId').formId = 'myFormId'; This works fine as long as the form itself was not loaded infot the DIV (divId). However, if myFormId is

Re: [S2] Refactoring Action classes

2008-08-06 Thread Jeromy Evans
to the new location by the container/struts2. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: 2 Validation questions

2008-08-06 Thread Jeromy Evans
to action is validated twice for the same request or a new instance is not being created for each request (which is bad, and only possible if you're using spring and have incorrect spring config). Hope that helps, Jeromy Evans

Re: OGNL Help

2008-08-06 Thread Jeromy Evans
can invoke a method directly to get the stack. Hope that helps a little, Jeromy Evans PS. I don't think this is a good idea as it is may be vulnerable to injecting OGNL expressions depending on how surveyResult.questionEntity is set

Re: [S2] Ajax DIV Question

2008-08-06 Thread Jeromy Evans
Dave Newton wrote: http://struts.apache.org/2.x/docs/dojo-submit.html Put the notification message in a different div? Dave Yeah, use the indicator attribute to show/hide an image as show at the top of that page. It looks better too.

Re: [S2] Ajax DIV Question

2008-08-06 Thread Jeromy Evans
Dave Newton wrote: http://struts.apache.org/2.x/docs/dojo-submit.html Put the notification message in a different div? Dave Yeah, use the indicator attribute to show/hide an image as per the example at the top of that page. It looks better too.

Re: Issue with Url mapping with struts-action-extension=

2008-08-05 Thread Jeromy Evans
extension if (!name.contains(.)) { return name; } } } return null; } regards, Jeromy Evans [source] http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_11_1/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java?view=markup

Re: Issue with Url mapping with struts-action-extension=

2008-08-04 Thread Jeromy Evans
the double comma. That means a blank (no extension), or .action extension. The double-comma ensures blank isn't trimmed as whitespace. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Can't obtain object in POJO using AJAX and problem with validation

2008-08-02 Thread Jeromy Evans
, is that the Loading... text overwrites the form prior to it's values being read. If so, set the showLoadingText=false attribute on the submit button and this problem is resolved. (you can verify this is the problem by testing in Firefox before making the change) Hope that helps, Jeromy Evans Francisco

Re: S2: possibly strange namespace use case

2008-07-31 Thread Jeromy Evans
Andy Law wrote: There's nothing better than a good book though. That's agreed! What do you recommend? I have Kurniawan's Struts 2 Design and Programming and Roughley's Practical Apache Struts2 Web 2.0 projects and Starting Struts 2. None of them go into any kind of detail about this

Re: S2: possibly strange namespace use case

2008-07-30 Thread Jeromy Evans
but if none are suitable then I'd probably create a custom ActionMapper that exends the default but also looks for that param in the URI and returns it in the parameter map of the ActionMapping. Hope that makes sense. regards, Jeromy Evans

Re: S2: possibly strange namespace use case

2008-07-29 Thread Jeromy Evans
it with a CompositeActionMapper. In Struts 2.1.x, use the NamedVariablePatternMatcher to pass parameters through the namespace, as described in this thread: http://www.nabble.com/REST-plugin-URL-syntax-td17855192i20.html It can be used without the REST plugin/conventions. regards, Jeromy Evans

Re: Background Threads

2008-07-29 Thread Jeromy Evans
Frank W. Zammetti wrote: Is it still the case, given the JDK 1.5 concurrency stuff, that you are still not technically allowed to spawn threads in a J2EE container (per spec guidelines)? Did the latest J2EE spec loosen that restriction maybe? Hi Frank, I don't know of any loosening of

Re: [s2] Do I need to define the struts2 filter?

2008-07-29 Thread Jeromy Evans
Dave Newton wrote: (Ignore the billing part--for some reason this message wasn't caught by my filter and hit my inbox.) Dave I had the same issue because it was addressed to [EMAIL PROTECTED] not [EMAIL PROTECTED] or Struts Users Mailing List James - Yes, you need both the Struts 2

Re: Background Threads

2008-07-28 Thread Jeromy Evans
is to use a library that provides this level of integration already (such as is available in one of the Spring packages I believe). regards, Jeromy Evans [EMAIL PROTECTED] wrote: Hi Dave, You can just create any class that extends the Thread object or implements the runnable interface

Re: [S2} REST plugin Security

2008-07-28 Thread Jeromy Evans
is to use a third party filter. Acegi/Spring Security is the most popular and probably the most flexible as it's closely bound to your (Spring) Object Factory. There are other open source filters available too that may suite you. Hope that helps, Jeromy Evans Mike Watson wrote: I should

Re: Is it possible not to use DOJO plugin?

2008-07-28 Thread Jeromy Evans
holod wrote: As I understood, I have to use dojo plugin (additional jar). Please, tell me, is it possible to avoid usage of dojo plugin? Seems like my problem can be solved: if s:div/ would not send request automatically, when page is loaded, but only on user mouse click, I would be happy

Re: S2 REST plugin

2008-07-24 Thread Jeromy Evans
Mike Watson wrote: What I actually return is a DefaultHttpHeaders with a 404 set. getImage() returns an empty (not null) inputstream since there's no content for the body. You may need to return a different result type for the error case (HttpHeaderResult or NullResult) so it only

Re: website link info

2008-07-24 Thread Jeromy Evans
Fini Decima wrote: I'm posting here because I could not find a Web Master contact info: I'll like to know when the Reporting Security Issues link was added to the Struts home page.The link is under Support. Is it a recent addition or has it been there for some time? Subversion shows the

Re: [S2] s:text, resource key and OgnlValueStack

2008-07-23 Thread Jeromy Evans
Can you please raise this in JIRA? I think the key has always been evaluated but I'd have to check. I did make some significant changes to this tag for 2.1.2 and may have accidentally changed the behaviour. I'd be very happy to turn off evaluation of the key as it wastes cycles but would

Re: Adding Linstener tag in web.xml results in Resource not found error on browser

2008-07-23 Thread Jeromy Evans
anaeem wrote: Can any one who has used ServletContextListener class, share their build.xml. Thanks much It's not a build.xml issue. The Resource Not Found error implies your Container failed to start. The log for the Container will contain an error message. In Tomcat this may look

Re: S2 REST plugin

2008-07-23 Thread Jeromy Evans
Mike Watson wrote: Hi folks, As mentioned in previous posts I'm using the REST plugin to serve images and everything seems to work fine when the content exists. However if I return an empty inputstream to StreamResult with a 404 response code I get the exception below. Stepping through the

Re: Execute and wait interceptor and calling an action more than once

2008-07-22 Thread Jeromy Evans
Burak Doğruöz wrote: I don't think that it can be done with an ajax approach. With ajax or not, concurrent requests for the same action name returns first action's result. I tried this simple scenario with an action which outputs its query parameter. I also added a thread.sleep in execute

Re: Dojo javascript errors with ajax theme. please help

2008-07-22 Thread Jeromy Evans
profile (in this case, for example, to remove locale files). It makes a massive performance improvement by reducing the large number of GETs. http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html Hope that helps. Jeromy Evans

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Jeromy Evans
via an ajax framework. I would drop the frameset and replace it with a few s:div's tiggered by s:submit's from the ajax theme. That's much easier than what you're attempting and is what those tags are intended for. Just my 2c. regards Jeromy Evans

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Jeromy Evans
Burak Doğruöz wrote: Thanks for your response, I think, even with an ajax approach, concurrent requests for same action would result in unexpected output as these actions are stored by same action name at background. So in fact this is not a presentation constraint but a processing constraint.

Re: [S2] current URL in ValueStack?

2008-07-20 Thread Jeromy Evans
{ uri.append(request.getRequestURI()); } regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] Possible issue w/ S2.1.3

2008-07-20 Thread Jeromy Evans
Dave Newton wrote: --- On Sun, 7/20/08, Musachy Barroso [EMAIL PROTECTED] wrote: There is a good chance that it is related to ng.filter I would say. Isn't that the filter we're supposed to use now though? Is it less of a drop-in replacement than I assumed? Thanks, Dave I'm

Re: issue with ajax submit

2008-07-20 Thread Jeromy Evans
matthieu martin wrote: Hello all. I can't figure out what this message means, or even where does it come from. I have no way to know which request returns this to me ... I'm lost. Is anyone able to help me ? Dojo uses a technique called IFrame I/O when uploading a file asynchronously.

Re: [S2-ActionComponent] Action not on the stack while evaluating body

2008-07-17 Thread Jeromy Evans
by the nested action's context and is never restored afterwards, potentially causing problems for tags AFTER the closing action tag. I recommended you raise the issue in JIRA and not to use the s:action tag as a component like this. It's only useful in the simplest cases. regards, Jeromy Evans PS

Re: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Jeromy Evans
Piotr Dzeviarylin wrote: I Think I find the bug. See here: For the sake of completeness, does your form work in Firefox 2.x? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2.1 tags + JSTL EL?

2008-07-15 Thread Jeromy Evans
Oleg Mikheev wrote: Hi And, where can I find the changes between Struts 2 and 2.1? http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html Release notes and migration guides are also a good start: 2.1.2:

Re: [S2] current URL in ValueStack?

2008-07-14 Thread Jeromy Evans
Pierre Thibaudeau wrote: But your statement about EL intrigues me. How would you do that in EL? Is there some value available to EL in the request context? simply ${pageContext.request.requestURI} The benefit of EL is that your IDE (hopefully) understands it, which in my opinion is

Re: struts2 validation

2008-07-14 Thread Jeromy Evans
) instead of invoking your action. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: REST and JSON plugins

2008-07-14 Thread Jeromy Evans
Oleg Mikheev wrote: Hi! Will REST plugin replace JSON plugin in Struts 2.1? To my mind JSON plugin was very REST-like, and I was really hoping that it would evolve into something that REST plugin claims to be. Also, do REST and JSON plugins have anything in common? They're not related except

Re: Referring to Properties object via OGNL?

2008-07-14 Thread Jeromy Evans
Dave Belfer-Shevett wrote: That fixed it. Is there a chance we can update the 'collections' page in the struts docs to give information like this? Great! Can you please post a comment to the relevant docs page so one of the developers remembers to update it? You're also welcome to

Re: REST plugin URL syntax

2008-07-14 Thread Jeromy Evans
Mike Watson wrote: BTW, if I want a controller to work in multiple namespaces do I need to declare seperate packages in struts.xml instead of just relying on the @Namespace annotation? Thanks again for all your help. Unfortunately when using Codeheind, you do have to create a new package

Re: CodeBehind and index action?

2008-07-13 Thread Jeromy Evans
Paul Benedict wrote: Does the CodeBehind plugin allow me to specify a default action for a directory? So that way I can just do /dir instead of /dir/index.action? If not, how can I do it? I want any directory to go invoke index.action I am using Struts 2.0.11 Paul No, that's a feature of

Re: Thoughts of using explicit regexps instead of wilcards for action mappings?

2008-07-13 Thread Jeromy Evans
Karr, David wrote: MyStuff_(add|save|load|delete), that is still more concise than having Has anyone ever considered this? I threw this together but don't use it any more: http://code.google.com/p/struts2urlplugin/ You can plugin a regex matcher (default) or plaintext or others.

Re: question about submitting checkboxes

2008-07-13 Thread Jeromy Evans
Eric Hamacher wrote: Hello: I have a form on which there can, in theory, be an infinite number of checkboxes (Users are selecting files from a tree and there is no telling how many will be selected). The name of each checkbox is determined at runtime (= to the path of the file). That

Re: Struts Text Property together(s:text and s:property

2008-07-13 Thread Jeromy Evans
Jishnu Viswanath wrote: Hi all, I would like to achieve something like this s:text name=s: property value=someProperty / / If your action extends ActionSupport, or implements TextProvider, or a TextProvider is in the ValueStack, then you can call one of the various getText()

Re: [S2] action mapping with merely default action

2008-07-13 Thread Jeromy Evans
2008/7/13 Dave Newton [EMAIL PROTECTED]: Again, this is if you're intent on using XML configuration. Dave didn't mention that if you're NOT intent on using XML configuration, then the CodeBehind plugin was created exactly for this purpose.

Re: Referring to Properties object via OGNL?

2008-07-13 Thread Jeromy Evans
Dave Belfer-Shevett wrote: In my JSP, I have: Preferred cid is s:property value=#attr.properties[preferredcid]/br Which, when rendered: Pddreferred cid is (with nothing after it) This expression reads evaluate perferredcid, then get the value of #attr.properties[evalresult]. I expect

Re: [S2] current URL in ValueStack?

2008-07-13 Thread Jeromy Evans
Pierre Thibaudeau wrote: (Struts 2.1.2) In the JSP, is it possible through some OGNL expression to get hold of the URL of the current request? I looked through the XML output obtained through debugging, but could not find anything. (I know I can get hold of the action and parameters; so there

Re: REST plugin URL syntax

2008-07-11 Thread Jeromy Evans
Jeromy Evans wrote: Dusty, you're right. I just had a quick look and I do have a custom action mapper that checks whether the pattern above references an action or method for that exact reason (it checks the list of available actions and gives precedence to those). Works great for me. I

Re: Ajax based login not working in IE but Working in FF

2008-07-08 Thread Jeromy Evans
AjaySrini wrote: Hi all, I'm new to sturts 2.0.Currently i'm developing a web application in which i have a login screen which is ajax based(using s:head theme=ajax) It works fine in FF but when i used to login through IE it is not working. Whether Struts2.0 + ajax functionality will support

Re: REST plugin URL syntax

2008-07-08 Thread Jeromy Evans
Mike Watson wrote: The trick (I believe) is that the url should be parsed from right to left, not left to right. I don't think it's a hijack; for the application I'm working on context is very important so knowing that a given resource is being accessed in the context of another resource has a

Re: Ajax based implementation for Radio Button in Struts 2.0

2008-07-08 Thread Jeromy Evans
AjaySrini wrote: Hi, Currently i'm developing a web application which consists of 4 radio buttons using Struts 2.0 written in div tag. Based on the selection of the radio buttons i need to display the other struts tags such as s:optiontransferselect, s:groupbox, s:combobox, etc... using ajax

Re: [S2] File download save dialog

2008-07-07 Thread Jeromy Evans
Struts Two wrote: Even afterI extended the StreamResult to be able to set the content-desposition dynamically, Internet explorer would open the file in a separate browser while firefox was prompting with the save/open dialog. However, the issue was fixed when I directly got the httpresponse

Re: [S2] Issues with extending themes

2008-07-03 Thread Jeromy Evans
of the parent templates include hardcoded theme names in their include statements precisely for this reason. There is no fix without an overhaul of the S2 template system. Hope that helps, Jeromy Evans - To unsubscribe, e-mail

Re: Where to put customized template

2008-07-03 Thread Jeromy Evans
Timothy Wonil Lee wrote: I believe the default value is WEB-INF/template, but I may be wrong. Almost, the default is in the *classpath* at /template So that should read WEB-INF/classes/template Also, don't forget the theme.properties file.

Re: REST plugin URL syntax

2008-07-02 Thread Jeromy Evans
based on a URI pattern and/or user's role. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Specific extension per namespace

2008-07-02 Thread Jeromy Evans
Vanja Petreski wrote: Hello, Is it possible to solve the following problem in some other way then implementing the custom ActionMapper (Struts 2.0.11.1): 1) struts.action.extension=html 2) I am using the rome rss s2 plugin and have the special namespace for feeds: /feeds 3) I am accessing

Re: ParamPrepareParamsStack interceptor , how does this work???

2008-06-30 Thread Jeromy Evans
not setting its own parameters. I suspect you haven't applied the ModelDrivenProduct interface. You need to use that if you want to call your parameter name. Otherwise you need a getProduct() method with param names such as product.name and product.color. regards, Jeromy Evans

for review - split content type handler manager in REST plugin

2008-06-30 Thread Jeromy Evans
. The ContentTypeHandlerManager also allows handlers to be registered by mime-type and/or extension. I'm happy with it but want to ensure it doesn't conflict with other plans. I've kept in mind that in the future the manager may check the accepts header for the response content-type. Thanks, Jeromy Evans https

Re: Struts2 - OGNL Calling static method

2008-06-30 Thread Jeromy Evans
Ramanathan RV wrote: Hello I wish to call a static method from the view and make the results available to my view. I believed I would have to do something like this to achieve that : s:set name=docs scope=request value=@[EMAIL PROTECTED](product)/ The above piece of code indeed calls the

Re: for review - split content type handler manager in REST plugin

2008-06-30 Thread Jeromy Evans
Jeromy Evans wrote: Could someone with an interest in the REST plugin please glance at the changes I've committed for WW-2641 oops, that was meant for struts-dev. I'll cross-post there. - To unsubscribe, e-mail: [EMAIL

Re: Validation doubt

2008-06-30 Thread Jeromy Evans
implement all validation logic, it assumes you're using struts2 tags and markup for all fields and it generates inline javascript. See: http://struts.apache.org/2.0.11.1/docs/client-side-validation.html regards, Jeromy Evans

Re: Strange problem with content disposition

2008-06-26 Thread Jeromy Evans
Paranoid_Fabio wrote: Hello. I've a very strange problem using content disposition in stream result: result name=success type=stream ${contentType} downloadStream filename=${fileName} 1024 /result fileName

Re: Struts2 UI Tag HTML Compliance?

2008-06-25 Thread Jeromy Evans
. More importantly, the xhtml theme uses tables for layout, the css_xhtml theme uses divs, spans and css2 for layout, the simple theme outputs plain-old html 4 with no markup for layout and you can customize the theme for every tag. Hope that helps. Jeromy Evans

Re: namespace getting appended to servletPath

2008-06-25 Thread Jeromy Evans
Dwipin C wrote: result name=EXPIRED_PASSWORD WEB-INF/jsp/ChangePassword.jsp Include a / in front of WEB-INF. (/WEB-INF/jsp/ChangePassword.jsp) S2 forwards to the JSP result and without the leading slash the container assumes

Re: Rest plugin and binary data

2008-06-24 Thread Jeromy Evans
Mike Watson wrote: Hi Jeromy, Please ignore my other email, I was being a dumb-ass. Thanks heaps for the tips, I managed to get this working today. Mike Good to hear. Sorry I hadn't got back to you. regards, Jeromy Evans

Re: [S2] OGNL and enum

2008-06-23 Thread Jeromy Evans
Pierre Thibaudeau wrote: It is possible to refer to an enum value within OGNL: [EMAIL PROTECTED]@MARS} But how can I refer to the collection of all the values of an enum? In Java, that would be: com.myapp.Planets.values() With OGNL, I tried the following without success: [EMAIL

Re: my Own CSS

2008-06-23 Thread Jeromy Evans
loaded from resource bundles). I always work like this. It's much easier than it first seems. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts2: render JSP from action class

2008-06-23 Thread Jeromy Evans
Esteve Camps Chust wrote: hi all, this is my first email at struts list. I am a new user to struts2. I'm trying to get working the next scenario: having a mailer class, I want the message text be a rendered JSP. The action class calls a mailer class; this composes the mail from the rendering

Re: struts2: render JSP from action class

2008-06-23 Thread Jeromy Evans
Esteve Camps Chust wrote: The problem is renderJSP method, so it constructs a customized JSP with username data. For example, renderJSP should return something like: html body pWelcome [EMAIL PROTECTED]/p pthis is a welcome email./p /body /html Do this:

Re: validation and action names with slashes

2008-06-23 Thread Jeromy Evans
Roberto Nunnari wrote: Jeromy Evans wrote: Roberto Nunnari wrote: This is what I intend to do. At the moment the CodeBehind/Convention plugin estimates the name of view candidates (eg. package-action-result.jsp) This change would just need to extend that to check if a tile exists

Re: validation and action names with slashes

2008-06-22 Thread Jeromy Evans
Roberto Nunnari wrote: Maybe the convention plugin should look into the tiles.xml file, or check to see if the tiles plugin or tiles listener are in the game.. Most probably, the definition names in tiles.xml should follow the conventions, so that definition name=auctionView.. becomes

Re: [OT] What slows you down?

2008-06-21 Thread Jeromy Evans
Internet Explorer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: validation and action names with slashes

2008-06-20 Thread Jeromy Evans
are still permitted struts.enable.DynamicMethodInvocation = false My advice is not to use this feature of Struts2 and instead keep it simple (follow the convention of the Convention plugin, even if not in use yet). regards, Jeromy Evans

Re: validation and action names with slashes

2008-06-20 Thread Jeromy Evans
Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking the convenience of conventions? It works with

Re: validation and action names with slashes

2008-06-20 Thread Jeromy Evans
Roberto Nunnari wrote: Jeromy Evans wrote: Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking

Re: Rest plugin and binary data

2008-06-19 Thread Jeromy Evans
retrieval would have to be performed in the Controller rather than the Handler though. There is probably a bit of work to do in the plugin to handle binary results better though. Hope that gets you started. Jeromy Evans

Re: REST plugin URL syntax

2008-06-18 Thread Jeromy Evans
{ } regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: 404 error

2008-06-16 Thread Jeromy Evans
can investigate those two options, or increase your tomcat logging to obtain more information. This information is applicable to any servlet/filter/listener. It's a good idea to get familiar with common tomcat errors and logging. Hope that helps. Jeromy Evans

Re: Response already committed when using ActionTag

2008-06-14 Thread Jeromy Evans
[EMAIL PROTECTED] wrote: Hi Jeromy, thanks for the respose. The response is already committed in the action class (before the Result is executed). In the execute() method, the result of 'response.isCommitted()' is true. So I think the response is committed even before getting to the Result.

Re: Response already committed when using ActionTag

2008-06-13 Thread Jeromy Evans
[EMAIL PROTECTED] wrote: I have a JSP that uses an ActionTag s:action to call a Struts 2 action class directly from the JSP. But in the action class, the HTTP response has already been committed. This makes it impossible for me to set cookies from my action class. I tested this by calling

Re: Confused about s:include

2008-06-12 Thread Jeromy Evans
the interceptors). It can invoke any action but be wary that the ActionContext is stored in a ThreadLocal (not saved and restored after an invocation) and not all results can be safely executed within another page. Hope that helps, Jeromy Evans [1]http://java.sun.com/products/servlet/2.3/javadoc

Re: Problem with Struts 2+ Spring 2 + JPA + Ajax

2008-06-11 Thread Jeromy Evans
and ensure spring 1.x isn't there. If it is, find the source and remove it. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts s:head theme=Ajax

2008-06-11 Thread Jeromy Evans
Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Jeromy Evans
: ie. Map applicationContext = actionInvocation.getIncovationContext().getApplication(); You can also inject beans directly into you interceptor via spring or guice if you're using one of those DI frameworks. Hope that helps, Jeromy Evans

Re: Problem with Struts 2+ Spring 2 + JPA + Ajax

2008-06-11 Thread Jeromy Evans
nani2ratna wrote: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence

Re: Struts 2 and Sitemesh

2008-05-17 Thread Jeromy Evans
Asleson, Ryan wrote: page:applyDecorator name=theDecorator page=/include/footer.action http://www.biworldwide.com/info/index.html / When you use this tag, how does sitemesh invoke the action? The exception implies its looking for a file and doesn't know it needs to invoke something

Re: [Struts 2] Video Action

2008-05-16 Thread Jeromy Evans
Yousri BENDI ABDALLAH wrote: Hello , I have a problem with the integration of a video (wmv format) within a JSP page. To that end I use the tag html object which allows me to integrate my video played with Windows Media Player, these videos are stored on an application server Weblogic 8.1. But

Re: Action Validation with Slashes

2008-05-16 Thread Jeromy Evans
Yellek wrote: should I be raising a Jira issue for this? Hi Peter, yes, it's would be helpful to raise an issue for it. In this case the ActionMapper knows about the allowSlashesInActionName setting but the XWork Validation doesn't know.

Re: uniform exception handling

2008-05-16 Thread Jeromy Evans
that helps, Jeromy Evans Jakub Milkiewicz wrote: Hi i would like to know what is the best practice to handle exceptions in Struts based applications. I have defined ExceptionMappingInterceptor aka exception interceptor and it works but it can not handle all kind of exceptions. I would like to have

Re: Struts2 cancel button with ajax theme does not execute method (bug?)

2008-05-12 Thread Jeromy Evans
Yayo wrote: I don't have scripts in my results but that don't changes the fact that the action configured in the cancel button never gets executed... I thought you meant you had an s:submit theme=ajax button in your result, which implies the result needs to be parsed by dojo so it can

Re: WARNING: Parameters: Invalid chunk ignored

2008-05-12 Thread Jeromy Evans
Ram Prasad wrote: Hi All, I am using struts 2.0.11.1 form with Ajax theme, getting error Parameters: Invalid chunk ignored WARNING message when submitted the form and the form fields have not been populated. I have configured the targets as the form parent DIV. May 8, 2008 5:50:30 PM

Re: UnknownHandler

2008-05-11 Thread Jeromy Evans
with the container. regards, Jeromy Evans kal stevens wrote: I have been trying to implement an UnknownHandler, and I can not seem to find any documentation on how to integrate it into the framework. I am using spring for DependencyInjection, so I thought that I could just add a bean named

Re: TabbedPanel in Struts2

2008-05-11 Thread Jeromy Evans
Jay Bose wrote: I was using tabbedPanel, with the Ajax theme in WebWork-2; no problem. After my upgrade to Struts-2.0.11, I no longer get decorated tabs. The ajax recipes were not as helpful as I would have liked

Re: Struts2 cancel button with ajax theme does not execute method (bug?)

2008-05-11 Thread Jeromy Evans
Yayo wrote: Hi, i'd like to discuss with you for in case you've found it before. I've got a div div id=result.../div that I fill with my ajax results so I present a list inside of the result div, then user clicks on an element and the response goes inside for editing. Then in the edition

Re: Accessing ServerName property from request

2008-05-10 Thread Jeromy Evans
Zoran Avtarovski wrote: I need to access the getServerName method of the request from an action, but I¹d like to do it via the request map. What parameter do pass the get method? I couldn¹t find anything on the site. Z. Hi Zoran, it's not in the request map. The RequestMap maps only to

<    1   2   3   4   5   6   7   8   >