Re: tiles-defs.xml and extended attributes...

2007-04-17 Thread Antonio Petrelli
2007/4/17, Rod Bollinger <[EMAIL PROTECTED]>: Hi Antonio, I agree that that works. In fact, both approaches function identically. That is not the issue. The only issue I was raising was how to make the SimpleMenuItem extension attributes validate properly in an IDE. Since, they are not declared

Re: Struts 1.3.8: "Sidebar: Sharing JAR Files Across Web Applications"

2007-04-17 Thread Craig McClanahan
On 4/16/07, Ken Miller <[EMAIL PROTECTED]> wrote: Can someone point me (or at least give me a clue) where a potential problem may exist? I've configured my server to have a shared set of Commons and Struts jars (something I did before reading the above paragraph), and it appears to work, but I'

Re: [OT] Re: Force clean / reload a webapp

2007-04-17 Thread piloupy GOTTAPIL
There's no problem in my Java Build Path. I have no error and no warning on my WEB-INF/src. I only have errors and warnings on my WEB-INF directory : ERRORS : Severity and DescriptionPathResourceLocation Creation Time Id Validation rule "email" doesn't exist.

Re: [OT] Re: Force clean / reload a webapp

2007-04-17 Thread Nuwan Chandrasoma
hi, Are you sure you have the validator-rules.xml in your WEB-INF directory? Thanks, Nuwan. - Original Message - From: "piloupy GOTTAPIL" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, April 17, 2007 8:20 AM Subject: Re: [OT] Re: Force clean / reload a webapp

Re: Map-backed forms in Struts2

2007-04-17 Thread Lance
Do you have a getValue(String key) method? I am not a s2 user but I have read the OGNL spec so sorry if I'm wrong but OGNL needs public PropertyType getPropertyName(IndexType index) and public void setPropertyName(IndexType index, PropertyType value) http://www.ognl.org/2.6.9/Documentation/

Re: Interceptors and thread-safety

2007-04-17 Thread Dave Newton
--- Dale Newfield <[EMAIL PROTECTED]> wrote: > [...] so that implies only a single simultaneous use > of a single execAndWait action per login? >From the execAndWait JavaDoc: """ This interceptor works on a per-session basis. That means that the same action name (myLongRunningAction, in the abov

Re: struts2 equivalent of html:link tag?

2007-04-17 Thread Dave Newton
--- Ian Roughley <[EMAIL PROTECTED]> wrote: > generates a link in s2, you can use the > action and namespace attributes with it. is pretty different than and I would think not what the OP was looking for, which was how to give links "logical" names. I think the issue was largely solved by usin

Re: [OT] Re: Force clean / reload a webapp

2007-04-17 Thread piloupy GOTTAPIL
No, validator-rules.xml isn't in my WEB-INF directory. It's in the struts-core.jar file at location org.apache.struts.validator.validator-rules.xml. Here is the plugin declaration in my struts-config.xml : As I said earlier, it's strange, because I don't always have these errors, though I d

Re: Struts 1.3.8: "Sidebar: Sharing JAR Files Across Web Applications"

2007-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Craig, Craig McClanahan wrote: > The naive way for a library to do this is: > >String className = ...; // Calculate the name of the class you want >Class clazz = Class.forName(className); > > * If commons-foo.jar is stored in a shared classlo

Re: struts2 equivalent of html:link tag?

2007-04-17 Thread Ian Roughley
generates a link in s2, you can use the action and namespace attributes with it. Dave Newton wrote: --- Allen Gilliland <[EMAIL PROTECTED]> wrote: okay, but at that point there is no real reason to use the s:url tag at all If you're not dealing with contexts, perhaps not.

[ANN] [S2] WebWork 2.2.5 RELEASED

2007-04-17 Thread Ted Husted
From the WebWork 2.2.5 release notes: "This 2.2.5 release, 6 months after WebWork 2.2.4, marks the final chapter for the WebWork framework. Struts 2, its successor, had its first GA release, and in a final push, the WebWork team wanted to do a big effort to bring in as many optimizations and bug

Client-side validation

2007-04-17 Thread Veronica Iturrioz
I have a form with client side validation: and an Action with some annotated validations: @Validations( requiredStrings = { @RequiredStringValidator( message = "Required", type = ValidatorType.FIELD,fieldName = "name", trim = true,

[s2] Do I still need a business service layer ?

2007-04-17 Thread nicolas de loof
Hello, I've used struts1 for several years and I'm now looking at Struts². In struts1, to create a "registerUser" use-case I need a RegisterAction, a RegistrationService and some business code. My struts1 RegistrationService is only used to start a transaction using Spring @Transactional annotat

Velocity in Struts2

2007-04-17 Thread Michael
Hello, I have scratched my head and googled this for hours to no avail, so maybe you folks can give me a hand. I am trying to migrate a Struts1 site to Struts2 (from maven, struts-core 2.0.6). So far everything is fine, except for Velocity (verison 1.4). The Action is being called and returning

RE: Struts in Servlet 2.4

2007-04-17 Thread Slattery, Tim - BLS
> I'd still try it without it, because that's just the way I am ;) > I mean, it's obviously there if you're enumerating over it... I switched that directive to <% page session="true" %>, and it finds Contact in Session context! Apparently, specifying "true" makes "the session implicit variable"

RE: Struts in Servlet 2.4

2007-04-17 Thread Rod Bollinger
Hi Tim, For 2.4 the URIs have changed. They are now: <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %> HTH, -Rod -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Tuesday, Apri

Re: Struts2 select tag multiple select

2007-04-17 Thread Nate Drake
What version of Struts2 are you using? There is a bug in versions before 2.0.7, where the select tag won't pre-select your values unless it is comparing Strings. See this Jira issue for details: https://issues.apache.org/struts/browse/WW-1711

Re: Velocity in Struts2

2007-04-17 Thread Martin Gainty
would it be possible to acomplish this in a staged environment in other words preprocess all your code with Velocity Macros from Ant script http://vpp.sourceforge.net/ this way you can see your jsps and servlet code then feed the vpp output to struts2? M--- This email message and any files trans

Re: newbie alert: forward to a php script

2007-04-17 Thread Chris Pat
Hello Sorry for the persistence/naivete of this, however can someone tell me if this is possible and how? It will be a learning experience for me and I appreciate any insight. Chris Pat <[EMAIL PROTECTED]> wrote: Hi Laurie Thanks. All I need is to send a HTTP Post request to the php script

Re: Velocity in Struts2

2007-04-17 Thread Musachy Barroso
I'm not sure what the problem is, but adding $action to example.vm in showcase, I see that it prints " [EMAIL PROTECTED]" on the page, so the reference is there. Can you post more details, like the mapping for your action, the package declaration, etc? regards musachy On 4/17/07, Michael <[EMAIL

RE: Struts in Servlet 2.4

2007-04-17 Thread Dave Newton
--- "Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote: > I switched that directive to <% page session="true" > %>, and it finds Contact in Session context! Zounds. > <%@ taglib uri="http://java.sun.com/jstl/core"; > prefix="c" %> > <%@ taglib uri="http://java.sun.com/jstl/fmt"; > prefix="fmt" %> >

Struts2 + FCKeditor

2007-04-17 Thread Monttez
Has anyone integrated FCKeditor with Struts2 ? Can you point me the way ? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Velocity in Struts2

2007-04-17 Thread Michael
The problem was in my spring config. I was proxying the Action with the TransactionProxyFactoryBean. When that was removed (juggling the Hibernate Session management somewhere else) the Action was correctly set into the Velocity context. Thanks for the prompt reply, it forced to me to review my s

Re: struts2 equivalent of html:link tag?

2007-04-17 Thread Ian Roughley
My mistake (perhaps), I was scanning the email too fast. It doesn't have the action and namespace attributes. But it's not just for making dojo ajax requests either. The href attribute can use the %{} notation to search the value stack and resolve expressions. I usually use the two together

Re: Change the searchLimit for the autocompleter?

2007-04-17 Thread Adam Ruggles
Would you happen to know which attribute in dojo needs to be set or do I need to wait for a newer version to be release with struts? Musachy Barroso wrote: I didn't even know there was a limit until I saw it the other day on Dojo's code. Just adding an attribute is easy, so it can be tackled f

Questions on action chaining and validation in struts2 - please help

2007-04-17 Thread aj123
Hi I am trying to use action chaining in struts2 and am stuck. Any help would be really appreciated. Scenario - I have a page that shows a list of records and also has a form to add a new record. When user clicks on add I call addAction and chain it to list action to go back to list page again sh

RE: Struts in Servlet 2.4

2007-04-17 Thread Slattery, Tim - BLS
> > <%@ taglib uri="http://java.sun.com/jstl/core"; > > prefix="c" %> > > <%@ taglib uri="http://java.sun.com/jstl/fmt"; > > prefix="fmt" %> > > > > I get this message for both tags: > > > > No tag library could be found with this URI. > > Possible causes could be > > that the URI is incorrect,

Fwd: Call for Papers Opens for ApacheCon US 2007

2007-04-17 Thread Ted Husted
Note: The CFP announcement was inadvertently delayed, so the deadline is unusually close this year. If you'd like to submit a proposal, get busy! -- Forwarded message -- From: Rich Bowen <[EMAIL PROTECTED]> Date: Apr 16, 2007 10:40 AM Subject: Call for Papers Opens for ApacheCon U

Re: Change the searchLimit for the autocompleter?

2007-04-17 Thread Musachy Barroso
it would be easier just to wait for 2.0.8, which will probably happen this week or next, Ted can confirm on that. If you want to hack around Dojo, you can set it with something like dojo.widget.byId("autocompleter_Id_here").dataProvider.searchLimit = 100; regards musachy On 4/17/07, Adam Ruggle

Re: Struts2 + FCKeditor

2007-04-17 Thread Andrew Stepanenko
Hello, we integrated FCKeditor with Struts 2.0.3 trunk I think. It was done the same way it is done in webwork 2.2.4 (http://opensymphony.com/webwork/). I just copied necessary files from Webwork source and renamed imports. You'll need to rebuild your struts jars. Regards, Andrew Stepanenko On

Re: Struts 1.3.8: "Sidebar: Sharing JAR Files Across Web Applications"

2007-04-17 Thread Craig McClanahan
On 4/17/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Craig, Craig McClanahan wrote: > The naive way for a library to do this is: > >String className = ...; // Calculate the name of the class you want >Class clazz = Class.forName(classN

JSTL and the Value Stack

2007-04-17 Thread Ray Clough
Is it possible to use JSTL to access the value stack? If so, what is the syntax. If that doesn't work, what is the syntax for accessing it with a scriptlet? That must be possible, because that is what the tags do. Thanks very much, Ray Clough --

RE: Struts in Servlet 2.4

2007-04-17 Thread Dave Newton
I don't know what, if anything, WL provides; you may still need the jstl/standard libs, just a later version. --- "Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote: > > > > <%@ taglib uri="http://java.sun.com/jstl/core"; > > > prefix="c" %> > > > <%@ taglib uri="http://java.sun.com/jstl/fmt"; > >

Re: JSTL and the Value Stack

2007-04-17 Thread Musachy Barroso
http://cwiki.apache.org/confluence/display/WW/Can+we+use+JSTL+with+the+framework I shouldn't be linking to the wiki but the main doc has an error (fixed on wiki already). regards musachy On 4/17/07, Ray Clough <[EMAIL PROTECTED]> wrote: Is it possible to use JSTL to access the value stack?

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > Is it possible to use JSTL to access the value stack? The StrutsRequestWrapper (?) will forward... "unfulfilled" attribute requests to the OGNL stack. I wouldn't be sure of the exact syntax; it may depend on what, exactly, you're trying to access (and

Re: newbie alert: forward to a php script

2007-04-17 Thread Information Guzzler
Hi Chris, HttpClient would be an alternative to generate HTTP POST request. For info. refer http://jakarta.apache.org/commons/httpclient/ /I On 4/17/07, Chris Pat <[EMAIL PROTECTED]> wrote: Hello Sorry for the persistence/naivete of this, however can someone tell me if this is possible and h

Re: JSTL and the Value Stack

2007-04-17 Thread Ray Clough
The "why" is because I just really don't like the Struts-2 tags. I especially don't like the fact that they don't expose a variable on the page - for example the s:iterator tag does not explicitly expose a variable which I can work with, or format using jstl. They "don't play nicely with the

Re: newbie alert: forward to a php script

2007-04-17 Thread Chris Pat
Hi IG That looks like the object. Thanks. Information Guzzler <[EMAIL PROTECTED]> wrote: Hi Chris, HttpClient would be an alternative to generate HTTP POST request. For info. refer http://jakarta.apache.org/commons/httpclient/ /I On 4/17/07, Chris Pat wrote: > > Hello > Sorry for the persist

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > The "why" is because I just really don't like the > Struts-2 tags. I especially don't like the fact that > they don't expose a variable on the page - for > example the s:iterator tag does not explicitly expose > a variable which I can work with, or form

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Dave Newton <[EMAIL PROTECTED]> wrote: > ...but I'm telling you they do [expose variables to > JSTL], or at least does. Let me re-phrase that... it's not so much that they "expose" variables, but that the StrutsRequestWrappers will pass variable requests (not sure what to call this, somebody

Re: JSTL and the Value Stack

2007-04-17 Thread Musachy Barroso
The do publish a variable, if they have to, as Dave mentioned, in the case of the iterator, even if you don't specify and id, the current value will be on top of the stack which you access using %{#top}. Other tags publish values, like the url tag, etc. musachy On 4/17/07, Dave Newton <[EMAIL PR

Re: JSTL and the Value Stack

2007-04-17 Thread Musachy Barroso
In ${expression}, "expression" will be evaluated against the Value Stack. An Dave is right, the "variable publishing" name is probably not the best description for it :) musachy On 4/17/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: The do publish a variable, if they have to, as Dave mentione

struts 2.0.7 template/simple/select.ftl error/fix

2007-04-17 Thread Jason Thurston
To fix I extracted template/simple/select.ftl from the struts2-core-2.0.7.jar to WEB-INF/classes/template/simple/select.ftl I then changed line 60 from: to: and I inserted the following line before line 60: <#assign itemKeyStr=itemKey.toString() /> I got the idea from another .ftl file tha

JSTL versus Struts tags

2007-04-17 Thread Heidy Gutiérrez Guzmán
Where do I find information about the diffrence between JSTL and struts tags?

FW: Tiles refresh

2007-04-17 Thread Hehl, Thomas
_ From: Hehl, Thomas Sent: Tuesday, April 17, 2007 4:00 PM To: '[EMAIL PROTECTED]' Subject: Tiles refresh I have a tile screen that is set up roughly thus: A B C When the user clicks a button, I change the value in C, but sometimes I want to refres

Re: newbie alert: forward to a php script

2007-04-17 Thread Laurie Harper
I'm still not clear why you need the PHP script at all; why not call out to the remote server directly from your Java webapp? That would seem to be a simpler route. However, if you really do need the PHP script in there something like HttpClient, as suggested by another poster, would probably

Re: JSTL versus Struts tags

2007-04-17 Thread Dave Newton
--- Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote: > Where do I find information about the diffrence > between JSTL and struts tags? I'm not sure what kind(s) of differences you're looking for, but assuming you already know JSTL tags I'd start by looking at the documentation for the S2 tags, st

Re: Interceptors and thread-safety

2007-04-17 Thread Mark Menard
On 4/17/07 5:38 AM, "Dave Newton" <[EMAIL PROTECTED]> wrote: > --- Dale Newfield <[EMAIL PROTECTED]> wrote: >> [...] so that implies only a single simultaneous use > >> of a single execAndWait action per login? > >> From the execAndWait JavaDoc: > > """ > This interceptor works on a per-session

Re: [s2] Do I still need a business service layer ?

2007-04-17 Thread Mark Menard
On 4/17/07 10:20 AM, "nicolas de loof" <[EMAIL PROTECTED]> wrote: > In struts2, AFAIK I can use any POJO as controler. Can I use my (maybe > adapted) RegistrationService as a Controller by simply changing to a > statefull model (user to register is not a method parameter anymore but a > bean prope

Re: struts 2.0.7 template/simple/select.ftl error/fix

2007-04-17 Thread Martin Gainty
Jason Thanks for the fix Did you commit the patch? Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender i

Re: Struts 1.3.8: "Sidebar: Sharing JAR Files Across Web Applications"

2007-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Craig, Craig McClanahan wrote: > Craig McClanahan wrote: > Yep ... it's magic :-). > > Actually, what happens is that the servlet container provides a > mechanism to acquire the ClassLoader instance for the web application > itself, from which you ca

Does anyone know how to use Restful2ActionMapper??

2007-04-17 Thread Drew Kutcharian
Hi Everyone, Can anyone explain to me how I can use the new Restful2ActionMapper? I was not able to find detailed documentation on it anywhere on the web. I am trying to write a Rails style RESTful app in Java. Thanks, Drew Kutcharian Venarc Inc. www.venarc.com

Re: struts 2.0.7 template/simple/select.ftl error/fix

2007-04-17 Thread Jason Thurston
I'm not yet setup subversion so I did not create a patch. I did just report the issue to JIRA, issue number (WW-1887) On 4/17/07, Martin Gainty <[EMAIL PROTECTED]> wrote: Jason Thanks for the fix Did you commit the patch? Martin-- This email message and any files transmitted with it contain

Re: Does anyone know how to use Restful2ActionMapper??

2007-04-17 Thread Dave Newton
--- Drew Kutcharian <[EMAIL PROTECTED]> wrote: > Can anyone explain to me how I can use the new > Restful2ActionMapper? I was not able to find > detailed documentation on it anywhere on the web. > I am trying to write a Rails style RESTful app in > Java. For now, at least, I'd look at the original

Re: Does anyone know how to use Restful2ActionMapper??

2007-04-17 Thread Drew Kutcharian
Thanks Dave, I have read that. What I am trying to accomplish is to have URLs like the following and I dont know how exactly I can pull it off using Struts 2. The page that you have linked contains a Rails link http://ryandaigle.com/articles/2006/08/01/whats-new-in-edge-rails-simply-restful-suppo

Re: Interceptors and thread-safety

2007-04-17 Thread Dale Newfield
Now I'm even more confused about where dependency injection happens for interceptors. My long running process is importing large numbers of documents into my system (extracted from an uploaded .zip file), which needs DB access throughout the process. As such, I use something based upon: htt

Re: Struts 1.3.8: "Sidebar: Sharing JAR Files Across Web Applications"

2007-04-17 Thread Craig McClanahan
On 4/17/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Craig, Craig McClanahan wrote: > Craig McClanahan wrote: > Yep ... it's magic :-). > > Actually, what happens is that the servlet container provides a > mechanism to acquire the ClassLoader

Re: JSTL and the Value Stack

2007-04-17 Thread Ray Clough
My Action has a method "public Exporter getExporter()". If I use the struts2 tags I can access the "exporter" with , and it works fine. If I use the jstl syntax , nothing is found. How do I get the jstl tag to work here? Thanks a million. - Ray Clough Musachy Barroso wrote: > > http://cwi

Re: Map-backed forms in Struts2

2007-04-17 Thread James Navin
Ok. I read the OGNL spec and it looks like the way of using maps etc. is subtley different from Struts1. My JSP now looks like and the associated Action class has methods public void setAttribute(String key, Object value) public Object getAttribute(String key) The setAttribute method is still

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > My Action has a method "public Exporter > getExporter()". If I use the struts2 > tags I can access the "exporter" with > , > and it works fine. If I use the jstl syntax > var="matrix" >, nothing is found. How do > I get the jstl tag to work here?

Re: JSTL and the Value Stack

2007-04-17 Thread Ray Clough
The Exporter class is designed to make the data in my "Model" class available for use in jsp. It has a method "getDataMatrices()" and another "getNameValuePairs()". I'm using the S2 tags for the "NameValuePairs", and it works fine. I'm trying to use JSTL for the "DataMatrices", and it doesn't w

Struts2, Tiles, Velocity

2007-04-17 Thread Charlie Rehor
I asked this on the velocity lists, and they punted to this list. We're currently using Struts1.x, Velocity, and Tiles for our project, which is working great. However, we want to upgrade to Struts2, but Velocity Tools calls Struts1.2 to handle calls to Tiles, which obviously breaks. So, the qu

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > I'm using the S2 tags for the "NameValuePairs", and > it works fine. I'm trying to use JSTL for the > "DataMatrices", and it doesn't work. I'll examine this further when I get home. > Of course, I REALLY don't want to implement > ServletRequestAware, b

Re: [s2] Do I still need a business service layer ?

2007-04-17 Thread Ray Clough
Architecture is architecture, regardless of whether it is Struts-1, Struts-2, or something else. A Service Layer has the benefits of giving clear separation of function between the Controller (Struts) and the Application. The web framework (here Struts) is primarily a vehicle for delivering data

Struts 2 interceptors vs

2007-04-17 Thread Jason Wyatt
Hi, I've written a simple PagingInterceptor in a Struts 2 project to do a trivial calculation of the pageNumber used to display paged results, based on whether the user pressed either a "Search", "Next Page" or "Previous Page" submit button. I'm using the following interceptor stack:

Re: Struts2 select tag multiple select

2007-04-17 Thread Stephanie
Thank you, that was it. I updated to 2.0.7 and it works now. I can't believe I didn't think to look through the Jira issues. Thanks a bunch. On Tue, 17 Apr 2007 14:41:11 + (UTC), Nate Drake <[EMAIL PROTECTED]> wrote: > What version of Struts2 are you using? There is a bug in versions befor

Re: [OT] how to change the look and feel of checkbox

2007-04-17 Thread Pankaj Gupta
Yes I want to style the actual checkbox and not just the text. regards, Pankaj On 4/11/07, James Mitchell <[EMAIL PROTECTED]> wrote: Bolded text Or, did you mean to style the actual checkbox? -- James Mitchell On Apr 11, 2007, at 4:37 AM, Pankaj Gupta wrote: > Hi, > > I am using html:ch

[S2] How to have validation message using localization ?

2007-04-17 Thread MLENEVEUT
Hi all, With Struts 2.0.6, I try to have validation message with localization. For example, I have a "login" form, with a "loginInput" input text : I have a validation on it : And the "errors.required" is in my package.properties : errors.required=

Re: [s2] Do I still need a business service layer ?

2007-04-17 Thread nicolas de loof
I fully agree with those architecture consideration. What I see in struts2 is that I can use my business service as MVC controler with no dependency on the web framework. My business service only has to switch from a stateless-style (method with parameters) to a statefull or command-style (proper