Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Van Riper
On 9/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have the same problem. I'm using ajax and the response time of my pages are over 40s sometimes with the s:head theme=ajax / include. Can someone tells me if this has been fixed in struts 2.1 ? Is there a work around to this problem ?

Re: [struts] [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Don Brown
Sadly, it was a change brought by the WebWork 2 incubation process, where we had to remove all LGPL Javascript libraries. The tooltip library used LGPL, so to get through the IP clearance, we changed the tags to use Dojo, hence the import. Unfortunately, this temporary fix was never revisited

Re: [struts] [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread meissa . sakho
Does it mean that we'll still suffer from this even with the 2.1 version ? Having page load time over 40s is hard to diggest. Meissa Don Brown [EMAIL PROTECTED] 21/09/2007 08:51 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List

Re: Urgent: Is it possible to define superclass form name in jsp file

2007-09-21 Thread Antonio Petrelli
2007/9/21, Arunkumar Balasubramanian [EMAIL PROTECTED]: bean:define id=name name=Bformname scope=request/ With this piece of code, you are putting: - the bean registered with the Bformname attribute name in thr request scope - in the page scope (that it is the default) with the attribute name

Re: Struts URLs for perfectionists like Ebay's URLs

2007-09-21 Thread hezjing
I think that is called URL's parameter encryption. You may want to take a look at http://www.avedatech.com/Products/QueryCrypt/index.jsp, I haven't try it by myself though. On 9/20/07, Vo Van Thuong [EMAIL PROTECTED] wrote: Hi Vinny, I'd like users to access to my website by URLs like

Re: Iterate Hashmap with s:iterate

2007-09-21 Thread Dave Newton
--- j alex [EMAIL PROTECTED] wrote: s:if test='%{key} == card' The entire expresion is OGNL, not just the key value from the stack. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Struts Action with two or more process methods

2007-09-21 Thread michetag
Hi all!!.. I'm new with the framework and we are trying to develope a proyect with Struts 2. In the Analysys of the proyect we are trying to understand if it's possible to call different process methods ( or execution method ) in the same Action class. It is so or always when we call an action

Re: Struts Action with two or more process methods

2007-09-21 Thread Genadii Ganebnyi
Requesting action like /web-path/someAction!someMethod.action, calls SomeAction.doSomeMethod(). 2007/9/21, michetag [EMAIL PROTECTED]: Hi all!!.. I'm new with the framework and we are trying to develope a proyect with Struts 2. In the Analysys of the proyect we are trying to understand if

Dojo bug?

2007-09-21 Thread Pablo Vázquez Blázquez
Hello, I have a very strange problem. I can´t specify if it is an Struts 2 problem, a Javascript problem, a Dojo problem,... The scenario is as follows: I have a .jspx page like this: jsp:root xmlns=http://www.w3.org/1999/xhtml; xmlns:jsp=http://java.sun.com/JSP/Page;

[s2] set action error from resource bundle - issue

2007-09-21 Thread johana pin
Hi, How can I use a global resource properties file (defined in struts.xml as: constant name=struts.custom.i18n.resources value=ApplicationResources/ ) for setting an action error text in an action class having an error key ? I tried: addActionError(getText(error.business.norights)), but the

RE: Urgent: Is it possible to define superclass form name in jsp file

2007-09-21 Thread Arunkumar Balasubramanian
Thanks for your response. by having bean:define id=name name=Bformname scope=request/ in a Tile.Where Bformname is super class. If I have this piece of code, the page after tile:insert is not been displayed. Bformname is inherited in Aformname(which has reference in struts-config). Is it

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Haroon Rafique
On Yesterday at 11:25pm, VR=Van Riper [EMAIL PROTECTED] wrote: VR [..snip..] VR VR The best workaround that I have found is to Just Say NO to the built VR in support for Dojo and instead to use Prototype judiciously. All my VR ajax logic is done that way. I don't use the builtin ajax support

Re: [struts] [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Musachy Barroso
Just to confirm that, there is no dependency on Dojo anymore, the tooltips are now implemented using DomTT which is a really small js file. musachy On 9/21/07, Don Brown [EMAIL PROTECTED] wrote: No, thank goodness :) The dojo code has been moved out into its own plugin and cleaned up, from

[Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Frank W. Zammetti
If you're not going to use the built-in AJAX support in S2, you may also want to have a look at AjaxParts Taglib (APT): http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html ... which is a component of Java Web Parts (JWP):

Re: Iterate Hashmap with s:iterate

2007-09-21 Thread Cory D. Wiles
Example code: s:iterator value=%{drugClassPropsSrvc} id=prop tr th scope=rows:property value=#prop.key//th s:if test=#prop.value eq 'Yes' th scope=rows:property value=#prop.value//th /s:if

Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Musachy Barroso
I could see making this an S2 plug-in if there was some interest in that, I've had that thought before. That would be a pretty good idea :) musachy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Musachy Barroso
Setting cache=true will pretty much kill the Dojo lazy loading feature, as it will use a custom build (all the required js files compressed in one file). On top of that 2.1 won't scan the whole page for widgets, which will make it even faster. musachy On 9/20/07, Don Brown [EMAIL PROTECTED]

Re: s:if Question

2007-09-21 Thread Oleg Mikheev
Marc Eckart wrote: Any ideas? Or any other suggestions? http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Execute Action on the server

2007-09-21 Thread Oguz Kologlu
Not really suitable for what I'm after since I need the result of the rendered output on the server, not on the client. As i mentioned I've seen it done with Velocity, using something like Velocity Template Processor/Engine (can't remember the exact name). Doing the same on a JSP I'd

Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Frank W. Zammetti
I'll see if I can find some time this weekend... the only thing that's really stopped me in the past when I thought of it is that it's really so darned easy to drop in manually (two added JAR files, one config file and one context param in web.xml), there's almost no benefit to it being a

Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Pavel Sapozhnikov
Musachy where do you set this cache=true in what file exactly? On 9/21/07, Musachy Barroso [EMAIL PROTECTED] wrote: I could see making this an S2 plug-in if there was some interest in that, I've had that thought before. That would be a pretty good idea :) musachy

Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Musachy Barroso
on any file that you are using the S2 ajax tags, you have to use the sx:head, so just set its cache attribute to true. 2.1 only :) musachy On 9/21/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote: Musachy where do you set this cache=true in what file exactly? On 9/21/07, Musachy Barroso [EMAIL

Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Musachy Barroso
If you don't have plugin anything, there isn't any real benefit to it, but I haven't looked at JWP. musachy On 9/21/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: I'll see if I can find some time this weekend... the only thing that's really stopped me in the past when I thought of it is that

Re: Struts Action with two or more process methods

2007-09-21 Thread cilquirm
You can also map each method to a name in your struts.xml by using the method attribute of the action tag. action name=test class=mypackage.MyAction method=test/ Ganebnyi Genadii wrote: Requesting action like /web-path/someAction!someMethod.action, calls SomeAction.doSomeMethod().

Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread meissa . sakho
If a undestand, there is no way to get rid of this problem with struts 2.0.9. There is still no date for the 2.1 release availability ? Meissa Musachy Barroso [EMAIL PROTECTED] 21/09/2007 16:52 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List

Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Musachy Barroso
The easiest solution on 2.0.9 is just to overwrite head.ftl and remove the dojo stuff, you won't have tooltips but you are probably not using them anyway. musachy On 9/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If a undestand, there is no way to get rid of this problem with struts

[s2] generator iterator tags

2007-09-21 Thread Kevin Wade
Greetings all. I am having difficulty crafting an struts 2 iterator using the generator tag. I want to iterate over a set of string values and then test against the current one in the loop. Something like this: s:generator val=%{'wizards,dwarves,elves'} separator=, id=myAttr

Re: [s2] generator iterator tags

2007-09-21 Thread Dave Newton
--- Kevin Wade [EMAIL PROTECTED] wrote: s:generator val=%{'wizards,dwarves,elves'} separator=, id=myAttr s:iterator s:set name=groupname value=#attr.myAttr.next/ want to test groupname here, etc... /s:iterator /s:generator I'm not sure why you're

Re: Execute Action on the server

2007-09-21 Thread Leon Rosenberg
there is a mail taglib but a mail is sent from the jsp then. or you grab the reply from the server via httpclient, put it in a multipart mail message and send. Leon On 9/21/07, Oguz Kologlu [EMAIL PROTECTED] wrote: Not really suitable for what I'm after since I need the result of the rendered

ModelDriven

2007-09-21 Thread stanlick
Is there anything that ModelDriven does other than push your model on the top of the stack? -- Scott [EMAIL PROTECTED]

Re: ModelDriven

2007-09-21 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Is there anything that ModelDriven does other than push your model on the top of the stack? public String intercept(ActionInvocation invocation) throws Exception { Object action = invocation.getAction(); if (action instanceof ModelDriven) {

RE: [s2.0.9] Is there a better way to do this...

2007-09-21 Thread Jiang, Jane (NIH/NCI) [C]
Hi Al, I am having the same problem with s:select and validation. I found your thread when I searched the user group for answers. Have you found a better solution to this problem? Has it be identified as a bug? Unfortunately, I am so far along on my validation code that I really don't want to

Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-09-21 Thread Frank W. Zammetti
I agree, and that's the thought that stopped me from doing this in the past. I do think it would be nice to bring APT to a wider audience, and making it a plug-in would probably give it more exposure and have that effect, but it's not the best reason to do something like this. I may still do

Re: ModelDriven

2007-09-21 Thread stanlick
So is this 2.0.9 javadoc correct? public interface ModelDrivenT { /** * @return the model to be pushed onto the ValueStack instead of the Action itself */ T getModel(); } This sort of sound like the Action IS NOT ALSO on the stack! On 9/21/07, Dave Newton [EMAIL PROTECTED]

Re: [s2] generator iterator tags

2007-09-21 Thread Kevin Wade
Thanks for the reply. I did indeed try to create an s:iterator../ over an immediate list of those strings, but I could never get it to work. I can get it to work over numbers (i.e. s:iterator status=stat value={1,2,3,4,5} ), but not strings. Probably user error. I'd love to see a

Problem with json and encoding

2007-09-21 Thread Nicolás Pace
Hi! I'm using json-taglib [0] to populate lists of users (user: username, id, name, surname, description) to an s:autocompleter tag. I put the code in [1] of json. I put the snipplet of jsp in [2]. the system i'm developing is for spanish speakers, so some times they use non ascii characters in

Re: ModelDriven

2007-09-21 Thread Chris Pratt
On 9/21/07, Dave Newton [EMAIL PROTECTED] wrote: public String intercept(ActionInvocation invocation) throws Exception { Object action = invocation.getAction(); if (action instanceof ModelDriven) { ModelDriven modelDriven = (ModelDriven) action; ValueStack

how populate form from database ?

2007-09-21 Thread A. Lotfi
Hi, I need to populate a form with data from database, is there any example. thank you your help is appreciated. - Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.

Re: ModelDriven

2007-09-21 Thread stanlick
Yes indeed! The more I look at the code in these interceptors, the more I question the number of times Ctrl-C and Ctrl-V were pressed! Scott On 9/21/07, Chris Pratt [EMAIL PROTECTED] wrote: On 9/21/07, Dave Newton [EMAIL PROTECTED] wrote: public String intercept(ActionInvocation

Re: [S2] dynamic validation.xml file iterating of form elements

2007-09-21 Thread Gabriel Belingueres
Hi, Quite a few days ago I posted this question and nobody answered. I guess this is something we cannot currently do right now with v2.0.9? Should I post it in JIRA as an improvement for future versions? Does even anybody think it would be useful to have validation defined on multiple similar

RE: [s2.0.9] Is there a better way to do this...

2007-09-21 Thread Al Sutton
Hi Jane, Unfortunately there's been no change :(. Every now and again I get an Email out of JIRA saying that the fix version has been changed, but unfortunately it'd being changed to the version after the one being released :( Al. -Original Message- From: Jiang, Jane (NIH/NCI) [C]

[S2] Minor Documentation Issue

2007-09-21 Thread Kenton
At: http://struts.apache.org/2.x/docs/url.html it says url attribute id is deprecated in favor of var. However, var doesn't work and id does (Struts 2.0.9). I assume this is a documentation error. Can I fix this somehow? Or I will just ignore. -- View this message in context:

Re: ModelDriven

2007-09-21 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: So is this 2.0.9 javadoc correct? It's XWork, not S2; not sure which version. /** * @return the model to be pushed onto the ValueStack instead of the Action itself */ It also says: /** * ModelDriven Actions provide a model object to be pushed

Re: how populate form from database ?

2007-09-21 Thread Rick Reumann
On 9/21/07, A. Lotfi [EMAIL PROTECTED] wrote: Hi, I need to populate a form with data from database, is there any example. thank you your help is appreciated. Probably are a ton of them. (Here's one for Struts1.x using iBATIS

Re: [S2] Minor Documentation Issue

2007-09-21 Thread Wendy Smoak
On 9/21/07, Kenton [EMAIL PROTECTED] wrote: At: http://struts.apache.org/2.x/docs/url.html it says url attribute id is deprecated in favor of var. However, var doesn't work and id does (Struts 2.0.9). I assume this is a documentation error. Can I fix this somehow? Or I will just ignore. Be

Re: how populate form from database ?

2007-09-21 Thread Viplav Kallepu
Hi, If you are using struts 1.x then u need to have a database code.Call that from your action get the values. Set them to your action form thats itexample if u want... let your action form be someActionform extends ValidatorForm{ private String name; public String getName(){ return

Re: how populate form from database ?

2007-09-21 Thread A. Lotfi
thank you Rick, I will try to do what you said, in my database I have a table that has : Id Title Priority I want to populate a form with lot of rows and present them to the user as : Id Title - five radio buttons how I am gonna do it in jsp file ?

setting the background with the s:head template

2007-09-21 Thread Session A Mwamufiya
Hi, I'm trying to control all of my css styles through the s:head tag, so that I change things in only one place. I copied the template folder to my project's webcontent folder, and edited the styles.css file in template/xhtml/ with the following: .body {background-color: #00FF00;} however,

[OT] Re: setting the background with the s:head template

2007-09-21 Thread Dave Newton
--- Session A Mwamufiya wrote: .body {background-color: #00FF00;} That's defining a class called body; does your body... tag have a class='body' attribute? If you want to define a style for an HTML element you shouldn't (AFAIK, anyway; I guess I've never tried it) preface the element name with

RE: Urgent: Is it possible to define superclass form name in jsp file

2007-09-21 Thread Arunkumar Balasubramanian
Hi Let me explain you more in detail. I need to call an id which is defined in JSP page in Tile. My jsp page code looks like:tdbean:define id=addrList name=AddForm scope=request property=add type=java.util.List /tiles:insert page=/tilepage.jsp flush=true //td Where as in

Spring tutorial

2007-09-21 Thread rama krishna yalagandula
Hi, I am new to struts 2.0.9 ... Earlier I worked on oracle Developer Tools .. Now we have to migrate From Oracle to Java Struts I need to connect to database several times so do I need to use Spring Frame Work(as I heared from my supervisor) Thanks in advance Regards Rama...

Re: Spring tutorial

2007-09-21 Thread Dave Newton
You don't *need* to, but it (Spring) can make life a lot easier. --- rama krishna yalagandula [EMAIL PROTECTED] wrote: Hi, I am new to struts 2.0.9 ... Earlier I worked on oracle Developer Tools .. Now we have to migrate From Oracle to Java Struts I need to connect to database

Re: [OT] Re: setting the background with the s:head template

2007-09-21 Thread Session A Mwamufiya
I tried it without the . as well, just: body {background-color: #00FF00; } but nothing changes. I circumvented this issue by simply adding a style tag in the head.ftl, and not try to alter the styles.css file. Thanks. --- Session A Mwamufiya wrote: .body {background-color: #00FF00;}

Re: Spring tutorial

2007-09-21 Thread Frank W. Zammetti
I echo Dave's sentiment, but you need to determine what your data access needs are before deciding one way or another. Many people really like the ORM approach using something like Hibernate. Others like pure JDBC, or at least *close* to pure JDBC, which is an area Spring can help in (it can

Re: Spring tutorial

2007-09-21 Thread Martin Gainty
Im sorry.. what is the question? M-- - Original Message - From: rama krishna yalagandula [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, September 21, 2007 6:48 PM Subject: Spring tutorial Hi, I am new to struts 2.0.9 ... Earlier I worked on oracle Developer Tools . Now

Re: [S2] dynamic validation.xml file iterating of form elements

2007-09-21 Thread Don Brown
I think this would make a good jira ticket, if you can clearly describe what functionality you'd like. Even better, write a patch and it'll have a much higher chance of getting implemented ;) Don On 9/22/07, Gabriel Belingueres [EMAIL PROTECTED] wrote: Hi, Quite a few days ago I posted this

radio buttons in database ? how

2007-09-21 Thread A. Lotfi
Hi I have a question please, the user will be presented with a form that has lot of rows from a database, each line will be like this : ID --- TITLE --- 0(1) 0(2) 0(3) 0(4) 0(5) --- 5 radio buttons the user has only to select one radio button of each line (it's like a survey) and then

[S2] Freemarker Configuration?

2007-09-21 Thread Kenton
If I want to configure Freemarker within Struts 2, how do I access the FreemarkerManager instance? Ideally, I would do this one time on startup to set global settings for my application. I see there are some settings that can be configured via freemarker.properties, but other options can not. --