Re: struts2 and tiles

2009-01-31 Thread Jeromy Evans
that helps, Jeromy Evans - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Problem with Dojo in struts2

2009-01-29 Thread Jeromy Evans
anything? Your example doesn't provide sufficient attributes. Also don't do too much at once; ensure sitemesh works, then tiles works, then that the widgets work. Hope that helps a little, Jeromy Evans - To unsubscribe, e

Re: [s2] rest plugin and rss output with Rome

2009-01-28 Thread Jeromy Evans
not. eg. Have your action mapper direct the request to a different controller to create the alternative model. regards, Jeromy Evans - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail

Re: IE ajax theme form data problem

2009-01-28 Thread Jeromy Evans
Try turning off the loading text. It's a guess, but it sounds similar to the loadingText bug due to Dojo in IE. If the target div contains the source form and loadingText enabled, the loadingText overwrites the form before the its new values are read. Details are mentioned several times

Re: Embedded Maps as arguments

2009-01-26 Thread Jeromy Evans
On 27/01/2009, at 4:57 AM, Matthew Seaborn wrote: As I have grid of checkboxes I am currently trying to use embedded maps as arguments in Struts 2, for example using @CreateIfNull( value = true ) @Element( value = HashMap.class ) public MapInteger, MapInteger, Boolean getTestMap() { return

Re: Struts 2: What do i need to do to be able to upload files

2008-11-20 Thread Jeromy Evans
(String fileName); void setUploadContentType(String contentType); That's slightly different than your quoted configuration (as calling the File file implies there should be a setFileFileName method). That shouldn't cause a 500 error though. On Thu, Nov 20, 2008 at 2:56 PM, Jeromy Evans

Re: Problem customizing dojo

2008-11-19 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: Hi all! I have followed the instructions in http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html, with a dojo-0.4.3 release. Now, my s:datetime tags don´t work, neither the images of a tabbedpannel are loaded. Any idea? Thanks.

Re: Use Same JSP Page For Several Modes (View, Edit, Approve, Create)

2008-11-19 Thread Jeromy Evans
Alberto Flores wrote: The way I did was to override the backing components of the struts tags. I added logic there to simple control which template is used (depending on the role). I felt that I could use the Components (and Tag objects) as controllers for this purpose. I've taken a similar

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Jeromy Evans
Milan Milanovic wrote: Hi, I have a simple jsp form: head s:head theme=ajax debug=true / /head s:form action=showReport namespace=/reports validate=true snip And when user click submit button, this form get submitted twice, i.e. showReport form action method is

Re: Struts 2: What do i need to do to be able to upload files

2008-11-19 Thread Jeromy Evans
ryan webb wrote: Hello, first I would like to thank you for reading my email. I am trying out some examples for uploading a file. And I always get HTTP 500 error from tomcat. I can't see why, I followed and copied the example. For sure I missed something but I don't know what? I tried

Re: Struts2 OGNL Problem

2008-11-18 Thread Jeromy Evans
, so s:property value=link/ will get the property name link of the current item, and so on. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tabbed panel performance

2008-11-18 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: Any idea about why am I getting increasing response times each time I access to the page? I have already a great response time the first time I access to the page (which is also a problem), but my main problem is that after 6 or 7 accesses it in unmanageable...

Re: Tabbed panel performance

2008-11-18 Thread Jeromy Evans
so I think you'll find conversion a positive experience without regret. Good luck! regards, Jeromy Evans Pablo Vázquez Blázquez wrote: Just a bit more information. I have profiled (using firebug) the action (always the same action with the same content) with and without the s:tabbedpanel tag

Re: using CompositeActionMapper

2008-09-28 Thread Jeromy Evans
Allen Lee wrote: Hey there, Has anyone successfully gotten CompositeActionMapper to work and how? !-- Define the action mappers -- bean type=org.apache.struts2.dispatcher.mapper.ActionMapper name=addressMapper class=com.mycompany.actionmapper.CustomActionMapper / bean

Re: Performance and High CPU utilization

2008-09-19 Thread Jeromy Evans
Dave Newton wrote: --- On Thu, 9/18/08, sajanv007 wrote: It is a solaris box and has 16 GB memory and 4 CPU it is high end server class machine . Some how I suspect it is the OGNL or Freemarker rendering issue. Perhaps, but if so, I'll stick with my old dev box with a P4 and 2G

Re: Maven Archetype

2008-09-18 Thread Jeromy Evans
Yanis Kekatos wrote: HI all, I am trying to run the Struts Maven Archetype following the instructions of the page http://struts.apache.org/2.1.2/docs/ready-set-go.html but I get the following error. Any help on this? The starter archetype for 2.0.11.2 is here:

Re: URL Mapper Best Pracitices Question

2008-09-17 Thread Jeromy Evans
Frans Thamura wrote: http://www.jroller.com/fthamura - my login fthamura There's several ways to do this in struts 2. The best approach depends on what else your application does. Option 1. Low effort Implement a custom ActionMapper. It'll contain the logic to detect that the URI

Re: [S2] Velocity Integration

2008-09-17 Thread Jeromy Evans
Christopher Schultz wrote: I'm an S1 user and a member of the Velocity team. I recently posted a message to the velocity-dev list regarding the ugly syntax required by the S2 tag Velocity implementation. Hi Chris, It's probably worth posting to the struts-dev list with a more specific

Re: [S2] Avoiding usage of struts-tags

2008-09-17 Thread Jeromy Evans
Andreas Mähler wrote: Hello Everyone, do you know if the communication between the S2 Action and the struts-tags is standardised? Or am I opening a black box if I replace sth. like s:textarea id=description name=object.description cols=40 rows=6/ with a VanillaHTML+JSTL version like

Re: [S2] Avoiding usage of struts-tags

2008-09-17 Thread Jeromy Evans
Andreas Mähler wrote: I've already tried that, but I don't know Freemaker yet and I don't even like the code that is generated by the simple theme. (e.g: it was my intention to write a 100% JavaScript-free webinterface) I also think that the interface is quirky and not as straightforward as

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-12 Thread Jeromy Evans
])) { e.returnValue = There are unsaved changes.; } } /script When calling topic /cancelNavigation the event paremeter is undefined... Do you know any way to cancel navigation? I mean, cancel rendering the served page. Jeromy Evans escribió: Pablo Vázquez Blázquez wrote: Using

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-12 Thread Jeromy Evans
Bobby Mitch wrote: hi, thanks for the explanations. Which means if you work from a snapshot version of xwork it's fixed (which is a 2.1 stream though, which you don't want). What do you mean here ? I didn't realise you could move to 2.1.x. It's not a trivial migration normally. A

Re: [S2] PropertyTag display data

2008-09-12 Thread Jeromy Evans
Jeromy Evans wrote: Roger wrote: Hi s:iterator value=valueables status=status s:textfield name=valueables[%{#status.index}].description/ s:property value=%{valueables[%{#status.index}].description}/ s:property value=valueables[%{#status.index}].description/ /s:iterator The textfield property

Re: [S2] PropertyTag display data

2008-09-12 Thread Jeromy Evans
Roger wrote: Hi s:iterator value=valueables status=status s:textfield name=valueables[%{#status.index}].description/ s:property value=%{valueables[%{#status.index}].description}/ s:property value=valueables[%{#status.index}].description/ /s:iterator The textfield property correctly displays

Re: [S2] PropertyTag display data

2008-09-12 Thread Jeromy Evans
Dave Newton wrote: My first response was to say it was because you spelled valuables wrong and the framework is just really snooty. he he, I'd be in a lot of trouble if it was narky about typos. Obviously for the text field you'd still need to set the name appropriately using the

Re: [S2] Indexed Lists

2008-09-12 Thread Jeromy Evans
Roger wrote: Hi I'm trying to get indexed lists working so that I can get any amendments back into my model. At the moment I've got In the last line, did you confirm that count has the correct value? What if the list is empty? (in that case count has never been set) s:textfield

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread Jeromy Evans
UseTheFork wrote: When I refresh my browser with http://localhost:8080/tutorial/HelloWorld.action, I do not get any WARNING or SEVERE kind of messages in the Glassfish Logs. I only get more of the above. I have also checked for CONFIG, FINE, FINER, FINEST messages, but I don't get any. The

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-11 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: No idea or miss-explanation? Use dojo's event model. You need to register a listener/subscriber for the event via dojo. If you assign a listener directly to onbeforeunload or onload you'll overwrite the listeners that dojo needs to assign (or vice-versa, dojo

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-11 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: Using dojo.addOnUnload(function) neither works. Besides that, I would need sht like dojo.addOnBeforeUnload, but it does not exist. I don´t think I should subscribe for an ajax-request-completion event, but for the beforeunload one, don´t I? Thanks. Use the

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-11 Thread Jeromy Evans
this all complete and closed yourself within an hour instead of waiting around for someone to volunteer to do it for you... regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: error when rendering - java.net.SocketException: Broken pipe

2008-09-11 Thread Jeromy Evans
sharath karnati wrote: Hi All, In weblogic server log, I found these error multiple times. Is anyone come accross this kind of problem? 2008-09-11 07:12:47,415 ERROR [org.apache.struts2.components.UIBean] - error when rendering java.net.SocketException: Broken pipe One cause is

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Jeromy Evans
Bobby Mitch wrote: yes, but i wrote that with this XML file or without this XML file, that is with annotations only (@Validation etc), i still get the same error. So i do not see the point of me trying to change that file. And I want this to work with annotations too. Thanks anyway for

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Jeromy Evans
Bobby Mitch wrote: ok, well for your information I asked about that problem in the JBoss problem, thinking that the problem could come from JBoss, and I just posted the question on the XWORK forum where i hope they will help me fix it.

please remove: [EMAIL PROTECTED] - User unknown!

2008-09-10 Thread Jeromy Evans
Anyone listening that has the kudos to remove [EMAIL PROTECTED] from struts-dev and struts-user? I've grown weary of the warning received whenever I post a message to either list. Original Message Subject:Warning: [EMAIL PROTECTED] - User unknown! Date: Wed, 10 Sep

Re: ajax validation issue

2008-09-10 Thread Jeromy Evans
Gawain Hammond wrote: A really nice solution so far has been to an action tag to populate forms, which has worked nicely the rest of the time. I've really liked using this approach to fill drop-downs, like so: s:action namespace=/admin name=crud.Group.listAll id=groupAction/ ... s:select

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Jeromy Evans
Musachy Barroso wrote: this ticket: https://issues.apache.org/struts/browse/WW-2653 ? Yeah, that's a fix for the same issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-09 Thread Jeromy Evans
Bobby Mitch wrote: Any other suggestion, anyone ? Thanks for helping. Did you try my suggestion of changing the doctype to point to a local file? Or a local catalog? Or perhaps even removing the doctype? It appears to be failing to parse the XML and the only URI present is in the

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-09 Thread Jeromy Evans
Bobby Mitch wrote: hi, thanks again for helping. What XML file exactly are you talking about ? The decriptor file strugs-tag.tld from the The validators XML file you provided in your original email: ?xml version=1.0 encoding=UTF-8? !DOCTYPE validators PUBLIC -//OpenSymphony

Re: ajax validation issue

2008-09-09 Thread Jeromy Evans
you go back to basics; create a new minimal form with a minimal action and it get it to work. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-07 Thread Jeromy Evans
(it relates to DocBook XML but the principle applies) Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] s:select and Integer lists

2008-09-06 Thread Jeromy Evans
Lyallex wrote: I'm starting to feel that way about Struts2, the other day I wanted to add some params to a url .. lo and behold the framework automatically appended all the params available on the action to the URL ... bloody madness. I ended up turning this ludicrous 'feature' off and doing it

Re: Default includeParams value, was: Re: [S2] s:select and Integer lists

2008-09-06 Thread Jeromy Evans
Dave Newton wrote: The default value defines this behavior--you told it what to do implicitly by not changing it. Barring disagreement from others I'm changing the default to none as other people have also had an problem reading the documentation, and personally, I also think the default is

Re: REST plug-in Tiles

2008-09-06 Thread Jeromy Evans
[EMAIL PROTECTED] wrote: I don't understand how the codebehind or convention plug-in could provide the inheritance and layout functionality of tiles. Moreover, we use conventions to tag CSS to tile definitions. Can you elaborate please? Maybe I misinterpreted your intent.

Re: REST plug-in Tiles

2008-09-05 Thread Jeromy Evans
stanlick wrote: Does the plug-in support tiles definition names in its search? No. It was discussed briefly once in srtuts-dev that the codebehind plugin tiles plugin together could support tiles naming conventions. eg. if OrderController.show() is invoked then search for a tile called

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Jeromy Evans
Roger wrote: I often use: link type=text/css rel=stylesheet href=/css/main.css link type=text/css rel=stylesheet href=${pageContext.request.contextPath}/css/main.css link type=text/css rel=stylesheet href=${initParam.css}/main.css where ${initParam.css} refers to an init param in web.xml

Re: on the chrome bandwagon

2008-09-03 Thread Jeromy Evans
dynamicd wrote: Well i Just caught something. For some reason my listentopics or action from the form is not working It shows loading.. in the Chrome browser. but never loads. nothing in the logs Works on both firefox and IE s:div s:form id=selectreport theme=ajax action=ShowConfigureDZ

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Jeromy Evans
Al Sutton wrote: Any reason not to use; link type=text/css rel=stylesheet href=s:url value='/css/main.css'/ or did I miss something? Al. That had never occurred to me! - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [S2] REST Plugin + Validation

2008-09-02 Thread Jeromy Evans
alvins wrote: Thanks for the response Jeromy. I am actually already using that setting actually - I have two sets of different validations - one on the create method and one on the update method. However the problem is that when validation fails - I need an input result which is specific for

Re: REST Showcase 2.1.2

2008-09-02 Thread Jeromy Evans
Al Sutton wrote: Scott, Annotations serve a very useful purpose, and unless you're using a JRE less than version 5 they're worth the effort. Similar thoughts here. I found using validation annotations within actions and XML validation for models (visitor validation) was a good

Re: [S2] REST Plugin + Validation

2008-09-02 Thread Jeromy Evans
alvins wrote: Hmm I might just have to do that. I am guessing alot of people will run into this issue with the REST plugin - might be an idea to get some annotation into conventions or rest plugin (not sure where it would go) to allow for method specific result for validation failure? How do

Re: [S2] RestfulActionMappers and Namespace

2008-09-02 Thread Jeromy Evans
alvins wrote: I've added comments to the REST plugin wiki - not sure if these want to get filed as Jira's? Alvin I think that's worth raising as an issue. I don't understand why this happens. Thanks for reporting it!

Re: Some Idea On REST mapping

2008-09-02 Thread Jeromy Evans
Ryan Wong wrote: 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 I thought the RestActionMapper was already a copy of the RoR convention? I think it already matches all your mappings except

Re: Dynamic include of a CSS stylesheet

2008-09-02 Thread Jeromy Evans
Alexander Baetz wrote: 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)

Re: Some Idea On REST mapping

2008-09-02 Thread Jeromy Evans
Ryan Wong wrote: Thanks Jeromy... There is not any document about this one.. So i missed that feature... Yeah, the NamedVariablePatternMatcher is only documented within messages in struts-user so far. I quite like it, although messing with the namespace introduces other complications

Re: Some Idea On REST mapping

2008-09-02 Thread Jeromy Evans
Ryan Wong wrote: But there is still a question. With the namespace we have to place the parameter like prefix... eg. http://example.org/namespace/page/1/posts to call postsController index() method. It seems it cannot handle urls like http://example.org/namespace/posts/page/1 The follow one

on the chrome bandwagon

2008-09-02 Thread Jeromy Evans
the struts 2 dojo tags in chrome yet? cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: REST Showcase 2.1.2

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

Re: [S2] REST Plugin + Validation

2008-09-01 Thread Jeromy Evans
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

Re: Rest Plugin + IndexController and disabling content types

2008-09-01 Thread Jeromy Evans
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

Re: REST Showcase 2.1.2

2008-08-29 Thread Jeromy Evans
stanlick wrote: So any ideas why the model is being created inside the action and not injected by the framework? private Order model = new Order(); I think Don was just being lazy in the quick example ;-) I load or create the model in the appropriate prepare method. All that matters is

Re: REST 2.1.2

2008-08-28 Thread Jeromy Evans
[EMAIL PROTECTED] wrote: Has anyone experienced a problem with a trailing front slash being added to the generated URL? I've seen it before. I can't look at my code right now, but I think it's because you have a trailing slash on a property either in struts xml (default namespace?) or in

Re: Next Struts Release with support dojo 1.x i.e. digits

2008-08-28 Thread Jeromy Evans
deepakdabas wrote: I want to know when apache is planning to have the release of struts with support of dojo1.x i.e. support of digits in Struts tags. Have you tried using dijit? If so, I'm interested to hear what benefit you think struts tags would provide over using dijit directly?

Re: REST 2.1.2

2008-08-28 Thread Jeromy Evans
in Struts 2.0.x. cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to set remoteuser

2008-08-27 Thread Jeromy Evans
Hardik Shah wrote: hi we can get remoteuser using request.getremoteuser() but how we can set it? - One approach is to wrap the request object. Create a Filter, decorate the HttpServletRequest with one the implements setRemoteUser() and delegates all other methods to the original.

Re: how to set remoteuser

2008-08-27 Thread Jeromy Evans
Hardik Shah wrote: Jeromy Evans - Blue Sky Minds wrote: A better approach is to use the container's authentication as intended so the remoteUser is managed by it.. i think u are saying about jdbc realm for container's authentication! Correct. It's not as bad as it first

Re: how to set remoteuser

2008-08-27 Thread Jeromy Evans
Hardik Shah wrote: my first and last goal about that i want to maintain single sign on without storing user information in session i have also integrated hibernate with it ,can i use for achieve somthing like or not? Do you mean single sign-on as in across multiple domains or webapps? If

Re: how to set remoteuser

2008-08-27 Thread Jeromy Evans
Hardik Shah wrote: Jeromy Evans - Blue Sky Minds wrote: Correct. It's not as bad as it first seems if you manage the entries in the two tables (for tomcat) yourself. Otherwise the next step is a third party library like Spring Security. try to use jdbcrealm but when submit

Re: S2: TypeConverters and Spring Injection

2008-08-27 Thread Jeromy Evans
[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

Re: how to set remoteuser

2008-08-27 Thread Jeromy Evans
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

Re: Extending EJBInjection interceptor

2008-08-27 Thread Jeromy Evans
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:

Re: how to set remoteuser

2008-08-27 Thread Jeromy Evans
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

Re: Struts 2 + Rest URLs

2008-08-27 Thread Jeromy Evans
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)

Re: Struts 2 + Rest URLs

2008-08-27 Thread Jeromy Evans
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

Re: Struts 2 + Rest URLs

2008-08-27 Thread Jeromy Evans
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

Re: Struts 2 + Rest URLs

2008-08-27 Thread Jeromy Evans
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

Re: Extending EJBInjection interceptor

2008-08-27 Thread Jeromy Evans
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

Re: Struts 2 Rest + Prevent Session creation

2008-08-27 Thread Jeromy Evans
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

Re: Default bundles with JDK6

2008-08-27 Thread Jeromy Evans
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

Re: Can anyone help me with an example of REST with mutiple paras

2008-08-26 Thread Jeromy Evans
Ryan Wong wrote: how can I apply the URL http://localhost:3000/ontrack/1/sprints/1 to action to show item with ontract id - 1 and sprints id - 1 Here's an example using the REST plugin: http://www.blueskyminds.com.au/url-hierarchy/

Re: [S2] ModelDriven: model not pushed on stack?

2008-08-26 Thread Jeromy Evans
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 the model and re sets it on the stack when it

Re: S2: Unable to undeploy app in Tomcat

2008-08-25 Thread Jeromy Evans
Paul Benedict wrote: I can't see how this could be a Tomcat or Windows problem. With Struts 2.1.2 and setting antiJARLocking=true, I was able to undeploy. However, the necessity of the option tells me Struts (or XWork) is leaky somewhere and is not properly cleaning up its house. When running

Re: [OT] Re: MySQL Monitoring

2008-08-25 Thread Jeromy Evans
Frans Thamura wrote: On Mon, Aug 25, 2008 at 10:21 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Mon, 8/25/08, Frans Thamura wrote: my concept is like programmer factory Oh. That sounds depressing. i make this program because several reason, snip Your

Re: S2: Unable to undeploy app in Tomcat

2008-08-24 Thread Jeromy Evans
); } } Paul On Sat, Aug 23, 2008 at 12:20 AM, Jeromy Evans [EMAIL PROTECTED] wrote: Paul Benedict wrote: https://issues.apache.org/struts/browse/WW-2167 Yes, it's easy to retrofit to 2.0. It only requires a finally statement in the init and destroy methods

Re: [S2] Double conversion issue

2008-08-23 Thread Jeromy Evans
Milan Milanovic wrote: Uf, bug again :-(((. Is there any custom type-converter for Double-s that doesn't have this error ? -- Milan A custom type-converter means you can write one yourself for that specific property. It's very simple:

Re: [S2] Struts and blob image from Oracle

2008-08-22 Thread Jeromy Evans
. Jeromy Evans Alessio Bandini wrote: I'm sorry again. The mailing list manager does not allow attached files. But the problem is still the same. I get the image from DB, but I see binary characters and not the image. Probably I have to use some special tags but I cannot understand what. Thanks

Re: [S2] Double conversion issue

2008-08-22 Thread Jeromy Evans
I've seen this reported previous as a bug in S2/Xwork (appending an extra 0 character). I can't recall where I saw that. Write a custom type-converter for that field to work-around it. Milan Milanovic wrote: This is some wierd Struts behaviour for Double conversion, e.g., if my prop

Re: S2: Unable to undeploy app in Tomcat

2008-08-22 Thread Jeromy Evans
Paul Benedict wrote: I am unable to have Tomcat delete the physical directory of my webapp when I undeploy from Tomcat Manager. My application gets undeployed, but there is a lock is on the struts2-core library. Anyone encounter this problem? I am using 2.0.11.2 and Tomcat 6.0.16. Paul

Re: S2: Unable to undeploy app in Tomcat

2008-08-22 Thread Jeromy Evans
Paul Benedict wrote: https://issues.apache.org/struts/browse/WW-2167 Yes, it's easy to retrofit to 2.0. It only requires a finally statement in the init and destroy methods. PS. stop developing java on windows... ;-) My estimate is that Sun's java compiler is at least 50% faster

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Jeromy Evans
MyAshok wrote: Hi all, Thanks for all your response. Finally i isolated the problem and found that the problem is with the ajax submit of the same div. (i.e) my form and the submit targets to the same div. This scenerio creates the problem that the values in the jsp is not populated to the

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Jeromy Evans
Dave Newton wrote: - On Wed, 8/20/08, MyAshok wrote: Can you tell me whats might be the problem with my IE. It's IE. Dave He he he. I don't know for certain, but I think it's due to IE's non-standard event-handling (event ordering) and Dojo's/widget's failure to accommodate

Re: Authentication way: Should I interceptor s:url or s:a before it render?

2008-08-19 Thread Jeromy Evans
Haulyn R. Jason wrote: Hi,all I have an Authentication problem. I use Interceptor to authenticate actions and methods, based on different member and different role. Everything works well.But my client can not access some resource, for example a url, so they should not see the url. I think

[OT] Re: sitemesh +yui problem

2008-08-19 Thread Jeromy Evans
Hardik Shah wrote: i am trying to use several yui elements in strtus 2.0.11.2 problem is that it can not get its styles (for exp tab shows only in link format ,it can not use tabview.css) when i try to exclude action like cflist.do in decorators.xml then yui works fine (bt my constant view

Re: [OT] Re: sitemesh +yui problem

2008-08-19 Thread Jeromy Evans
Hardik Shah wrote: i can not get perfectly you ,can you be more descriptive about you say(what i have to do for this problem) You're welcome. Use the FireFox browser and install the FireBug extension. Load your page, open FireBug and view the Net tab. Determine whether error's

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Jeromy Evans
MyAshok wrote: I do have the same issue. on click of submit, the loadingtext is displaying but the result in a new page as i am redirect to a action. Any solutions? please asap. action name=activateSubscriber class=subscriberAction method=activateSubscriber

Re: NullPointer Exception On IE7

2008-08-18 Thread Jeromy Evans
Dave Newton wrote: So... we still have no idea what exception is being thrown. That makes it really hard to even begin. Dave I think MemberId is null: memberID = memberID.substring(memberID.lastIndexOf('\\') + 1); Or pageRequested is null

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Jeromy Evans
Dave Newton wrote: I'd be immediately suspicious of your manual form submission; as a guess I'd say that bypasses the normal form submission process, making it a non-XHR request. Off-the-cuff guess, though. Dave Absolutely positive that's it. This line:

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Jeromy Evans
Martin Gainty wrote: var xmlhttp=dojo.hostenv.getXmlhttpObject() var response= xmlhttp.responseXML; var parsed_response=SomeXMLParser(response); document.getElementByTagId(div).innerHtml = parsed_response; -- /script yes/no? Martin That would work, but dojo already includes code to

Re: Could not find property [struts.valueStack] using struts 2.1.2

2008-08-18 Thread Jeromy Evans
David N. Arnold wrote: You're not the only one. I can't remember if I was running trunk or 2.1.2, but I have seen the same messages. On Thu, Aug 14, 2008 at 9:47 AM, Stephan Schröder [EMAIL PROTECTED] wrote: 14.08.2008 15:12:34 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn

Re: Problem with no configaration found

2008-08-18 Thread Jeromy Evans
Muralidhar Y wrote: s:form action=executePoPSearch.action It's an (annoying) warning caused by the line above. It means it searched for an action in the configuration called executePoPSearch.action but couldn't find it, so it's going to use the literal value

Re: Struts2 Application Structure

2008-08-16 Thread Jeromy Evans
Al Sutton wrote: Not sure where you get the action-per page is the generally accepted norm, but if your page is purely static (i.e. accesses no variables and includes no forms), go straight to the html page. Not only does this save you the JSP compile/post-compile interpretation time it also

  1   2   3   4   5   6   7   8   >