[s1.35] Need help with Struts and Modules

2007-09-21 Thread Givler, Eric
Hello, Let me just say that I'm struggling at times writing my first production Struts application. The issue that I'm trying to wrestle with now is that part of the application requires security, and part of it should allow general access to the public. This sounds like a case for modules (

[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. --

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 s

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 t

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: 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 we have to mig

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: [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

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 > data

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: 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: Where as in tilepage.jsp the code looks like: The Date: Fri, 21 Sep 2007 09:10:21 +0200> From: [EMAIL PROTECTED]> To: > user@struts.apache.org> Subje

[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 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 a "

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, t

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 ? t

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 name

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 ig

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 http://www.learntechnology.net/content/ibatis/spring_ib

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 pus

[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: http://www.nab

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 f

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] [mailt

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: 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; > >

Re: [s2] generator & iterator tags

2007-09-21 Thread Kevin Wade
Thanks for the reply. I did indeed try to create an 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. >), but not strings. Probably user error. I'd love to see a solution to that. But your suggestion to use the id parame

Re: ModelDriven

2007-09-21 Thread stanlick
So is this 2.0.9 javadoc correct? public interface ModelDriven { /** * @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: [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

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 tho

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: 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) { ModelDri

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: 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 > rendere

Re: [s2] generator & iterator tags

2007-09-21 Thread Dave Newton
--- Kevin Wade <[EMAIL PROTECTED]> wrote: > separator="," > id="myAttr"> > > > < want to test groupname here, etc... > > > I'm not sure why you're using at all since you could over an immediate list. will return the current iteration object. You sh

[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: id="myAttr">

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 >

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" A "Struts Users Mailing List" cc Objet Re:

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. Ganebnyi Genadii wrote: > > Requesting action like /web-path/someAction!someMethod.action, calls > SomeAction.doSomeMethod(). > > 2007/9/21, michetag <[EMAIL PROTECTED]>: >> >> >> Hi

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 t

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 wrote: > 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 >

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 probably

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 plug-

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: Iterate Hashmap with s:iterate

2007-09-21 Thread Cory D. Wiles
Example code: On 9/21/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > --- j alex <[EMAIL PROTECTE

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, e-ma

[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): http://javawebparts.sourcefo

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

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]> w

Re: 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: [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

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 in a Tile.Where Bformname is super class. If I have this piece of code, the page after Date: Fri, 21 Sep 2007 09:10:21 +0200> From: [EMAIL PROTECTED]> To: > user@struts.apache.org> Subject: Re: Urgent: Is it possible to define > superclass form name in

[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: ) for setting an action error text in an action class having an error key ? I tried: addActionError(getText("error.business.norights")), but the problem is that the text is not found and the key is returned. When I

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: http://www.w3.org/1999/xhtml"; xmlns:jsp="http://java.sun.com/JSP/Page"; xmlns:fmt="http://java.sun.co

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 understa

Re: Iterate Hashmap with s:iterate

2007-09-21 Thread Dave Newton
--- j alex <[EMAIL PROTECTED]> wrote: > 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 PROTECTED]

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 actio

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 Eb

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]>: > > > 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 "name". Is it really what you want? Ant

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

2007-09-21 Thread Don Brown
No, thank goodness :) The dojo code has been moved out into its own plugin and cleaned up, from what I hear. Don On 9/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 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 dig

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" A "Struts Users Mailing List" cc Objet Re: [struts] [s2] St