logic:iterate - problem

2007-07-10 Thread andihartmann
Hello! I've got a problem to get a value within a logic:iterate construction (foo is an ArrayList Object): logic:iterate name=foo id=object html:textarea ... rows='bean:write name=object property=rows/' / /logic:iterate This does not work. How must it been written to address the method

XML document as data for form

2007-07-10 Thread Gert Vanthienen
L.S., I'm building a forms-based web application. Most of the times, the data that was filled in to the form needs to be send into Apache Servicemix for further processing, so it is best stored in XML format. Is there a way to use an XML document as the source of data for a Struts 2 form?

RE: Help needed in Auto complete tag in Struts2

2007-07-10 Thread Jaladanki, Ravi
Hi All, I am waiting for your valuable suggestions. Can any one help me in this Thanks Ravi -Original Message- From: Jaladanki, Ravi Sent: Monday, July 09, 2007 5:05 PM To: user@struts.apache.org Subject: Help needed in Auto complete tag in Struts2 Hi All, I want to use the

Re: [S2] Interceptor Question (Thread Safety)

2007-07-10 Thread Rene Gielen
Ken, others, now for the definitive answer: There is one instance per interceptor ref, thus interceptor instances being unique within the scope they are referenced in. Example: package name=foo extends=struts-default namespace=/foo interceptors interceptor name=foo

Re: How to control the display of Struts2 tags like s:textfield

2007-07-10 Thread TonyD
I tried your suggestions but still the ccsStyle doesn't change the checkbox label color. My checkbox is created using an interator and is display into a table. I tried changing the td Style=color:green or the tr style but nothing changes. Please other suggestions! Thanks. DNewfield wrote:

Re: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Antonio Petrelli
2007/7/10, Dave Newton [EMAIL PROTECTED]: --- Neil Aggarwal [EMAIL PROTECTED] wrote: Is there a good tutorial for the Tiles plugin in struts 2? Not yet; I was going to do that but was waiting for Tiles 2 to settle in a bit more then I got sidetracked. Dave, exactly what are you waiting

Re: How to control the display of Struts2 tags like s:textfield

2007-07-10 Thread TonyD
I tried but doesn't work. However I'am using in my form a particular theme qxhtml for displaying fields horizontaly in a table tag. I cann't believe it's so hard to change a label color with struts! Thanks for your reply. Leena Borle wrote: You can try this, set the theme of your form to

Re: How to set checkbox label value in a iterator

2007-07-10 Thread TonyD
Thanks that's what I needed. I'am sure it's a powerful language but the success of a language is also how easy it is to find what you need, the documentation is poor of examples and it's hard to someone that's new with this type of language. Hope in your collaboration in future. Thanks.

redirecting a non-secure request to one that uses https

2007-07-10 Thread Session A Mwamufiya
Hi All, I've installed SSL on my JBoss container (it works) and have created an interceptor that checks that the requests to my web app are secure (using https). I would like to redirect all non-secure requests to use ssl and have https in the address. How can this be done? I'm not sure how

Re: redirecting a non-secure request to one that uses https

2007-07-10 Thread Toni Lyytikäinen
It may be an ugly hack, but it has worked for some of my actions. If you return null instead of the action name to be invocated, you can use a response object to send information directly to the user. The HttpServletRequest object has method isSecure() which you can use to determine whether the

Re: [S2] Client side validation, hidden fields and clearErrorMessages not working in firefox

2007-07-10 Thread Theo Platt
Thanks Max, I've just been looking at exactly the same area and I can replicate the same error. It works fine in IE but fails in firefox. I think you should enter it in JIRA. Cheers Theo maxmil wrote: I'm using 2.0.8 and using client side validation which its almost working perfectly.

Re: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Eric Buitenhuis
I just finished going through a tutorial from ArcTech software ( https://www.arctechsoftware.com/tutorial/welcomePage.do) that included the Tiles plugin. They charge 29 dollars for the tutorial, but it was well worth it, since they explained quite a bit how Tiles works with Struts2 (along with

Re: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Antonio Petrelli
2007/7/10, Eric Buitenhuis [EMAIL PROTECTED]: I just finished going through a tutorial from ArcTech software ( https://www.arctechsoftware.com/tutorial/welcomePage.do) that included the Tiles plugin. They charge 29 dollars for the tutorial, but it was well worth it, since they explained quite a

Re: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Eric Buitenhuis
They have entered update paragraphs for those using 2.0.8, however for the vast majority of it, there is no difference. On 7/10/07, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/7/10, Eric Buitenhuis [EMAIL PROTECTED]: I just finished going through a tutorial from ArcTech software (

Re: Struts 2 performance

2007-07-10 Thread Ted Husted
On 7/9/07, climbingrose [EMAIL PROTECTED] wrote: I don't have a chance to do any profiling to find out where is the bottleneck Before trying any profiling, be sure to follow the tips at http://struts.apache.org/2.x/docs/performance-tuning.html. -Ted.

How do we get access to the servlet context from a class that is not an action?

2007-07-10 Thread Asaf Paris Mandoki
Hi, I have an action class (A) that uses another class (B). Is there a way to get access to the servlet context inside B without injecing it through A? Thanks in advance Asaf - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Query

2007-07-10 Thread Amit Sharma
How to have the struts action being called from the web.xmlwelcome-file-list configuration, e.g. see below welcome-file-list welcome-file/login.do/welcome-file /welcome-file-list The thing that I know is that the JSP/html pages can be configured to be the welcome page. So if above

Re: logic:iterate - problem

2007-07-10 Thread Yoge
Try following tag... html:textarea ... rows='%= ((YourObject)pageContext.getAttribute(object)).getRows()%' / On 7/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello! I've got a problem to get a value within a logic:iterate construction (foo is an ArrayList Object): logic:iterate

RE: [S2] Interceptor Question (Thread Safety)

2007-07-10 Thread Hoying, Ken
Thank you, Rene! This is a great help to me and allows me to move forward with my current implementation. It might be a good idea for someone from the Struts2 project to update the documentation with Rene's finding, as I am sure others will also find this unclear and concerning. Thank you

RE: [S2] Servlet-Config Interceptor Bug?

2007-07-10 Thread Hoying, Ken
That is great news! I am always a little apprehensive with newer frameworks. Well, with frameworks in general as I get nervous when I do not know what is going on under the covers :-) Thank you! -Original Message- From: cilquirm [mailto:[EMAIL PROTECTED] Sent: Monday, July 09, 2007

Re: How do we get access to the servlet context from a class that is not an action?

2007-07-10 Thread Ing. Andrea Vettori
You can use ServletActionContext.getServletContext() Il giorno 10/lug/07, alle ore 13:19, Asaf Paris Mandoki ha scritto: Hi, I have an action class (A) that uses another class (B). Is there a way to get access to the servlet context inside B without injecing it through A? Thanks in advance

RE: [S2] Interceptor Question (Thread Safety)

2007-07-10 Thread Rene Gielen
I'll add some words on that to the docs. Am Di, 10.07.2007, 13:42, schrieb Hoying, Ken: Thank you, Rene! This is a great help to me and allows me to move forward with my current implementation. It might be a good idea for someone from the Struts2 project to update the documentation with

Re: Query

2007-07-10 Thread Antonio Petrelli
2007/7/10, Amit Sharma [EMAIL PROTECTED]: So if above can't be done then I am planning to have a JSP being called and then redirecting it to the action. It is exactly what you have to do. Antonio - To unsubscribe, e-mail:

Re: logic:iterate - problem

2007-07-10 Thread Chad S. Lauritsen
Another way to do it (with a little bit less java) is: logic:iterate name=foo id=object bean:define id=rows name=object property=rows / html:textarea ... rows='%=rows%' / /logic:iterate [EMAIL PROTECTED] wrote: Hello! I've got a problem to get a value within a logic:iterate construction

Struts 2 validation error messages

2007-07-10 Thread Manoj . Gupta
Hi, I have written my customised java class to do the form validation within the action class. I want to render the validation error messages from a property file and not hard coding it into the code. What i understand is the struts ActionSupport class has addActionError(String msg) which takes

Re: [S2] IE crashing with ajax tabbedpanels

2007-07-10 Thread Musachy Barroso
The tab widget itself was not modified, but the tab widget (just a div) is an extended version of the dojo one. The dojo forum would be a better place to start as the tab panel is not reall ajax, but just javascript. A good test would be to reproduce your tabs using only dojo, no struts, if you

Re: Help needed in Auto complete tag in Struts2

2007-07-10 Thread Musachy Barroso
Did you look at the example in showcase and the JSON plugin? musachy On 7/10/07, Jaladanki, Ravi [EMAIL PROTECTED] wrote: Hi All, I am waiting for your valuable suggestions. Can any one help me in this Thanks Ravi -Original Message- From: Jaladanki, Ravi Sent: Monday, July 09,

RE: Help needed in Auto complete tag in Struts2

2007-07-10 Thread Jaladanki, Ravi
Hi Musachy, Thanks for your reply I have seen show case example but It is returning directly JSONList.js file which is hard coded in the JavaScript file. But I need to get them from Action and the same time I have seen json plug-in . But it is not giving complete information. If you

[1.3.8] input autocomplete=off

2007-07-10 Thread Tomas KRAMAR
Hi folks, I need to turn off the autocompletion feature on a html text input. I am using my own ajax autocompletion, but the default autocompletion interferes with mine. I have read, that struts taglib does not support this, as it is not part of HTML specification. It it is a worthwhile trade for

Re: Help needed in Auto complete tag in Struts2

2007-07-10 Thread Musachy Barroso
Hint: Look at AutocompleterExampleAction and options.ftl in showcase. musachy On 7/10/07, Jaladanki, Ravi [EMAIL PROTECTED] wrote: Hi Musachy, Thanks for your reply I have seen show case example but It is returning directly JSONList.js file which is hard coded in the JavaScript

Re: Struts 2.x mapping question

2007-07-10 Thread yitzle
I found this via Google http://struts.apache.org/2.0.8/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html Default action mapper implementation, using the standard *.[ext] (where ext usually action) pattern. The extension is looked up from the Struts

Re: Struts 2.x mapping question

2007-07-10 Thread Don Brown
You'll need to tell Struts to not use an action extension. I believe the setting is 'struts.action.extension=', so by setting it to nothing, it now won't require the '.action' extension. You shouldn't need to use the restful2 action mapper for this to work. Be warned, it may not be fully

Re: Struts 2 validation error messages

2007-07-10 Thread Don Brown
Just use the getText() method to resolve the key of your choice. For example: addActionError(getText(my.message.key)); Don On 7/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have written my customised java class to do the form validation within the action class. I want to render

Re: [S2] Form Processing - Security - ParameterNameAware

2007-07-10 Thread Don Brown
Agreed - the best practice is to be very careful what you expose via getter/setters on your Action. Of course, if you still don't trust the interceptor, just use a custom stack that doesn't include it. Don On 7/10/07, Ing. Andrea Vettori [EMAIL PROTECTED] wrote: Hi, I think you can only have

Re: [S2] config file inheritance (extending packages) - need help

2007-07-10 Thread Don Brown
I know result-types are, and I'd be pretty surprised if the other two weren't as well. File a JIRA ticket to get the docs updated, or file a CLA [1] and get access to change them yourself. Don [1] http://www.apache.org/licenses/ On 7/9/07, Bill Johnson [EMAIL PROTECTED] wrote: According to

Jasper plugin

2007-07-10 Thread aretobios
I have created some reports with iReport and I tried to integrated them with my struts2 web application. While the documentation for the jasperReport plugin explains how to use a datasource and a compiled template to generate a report, I wasn't able to find out how to use a database connection as

Tab Persistance

2007-07-10 Thread Brian Trzupek
I have a page with several Struts Tabs on it. When I submit the page, I would like it to come back to the 'active' tab (the previous selected tab). Is there a best practice on how to do this? Thanks, Brian- - To

Re: Action Based, Event Based Component Based ?

2007-07-10 Thread Don Brown
That's a huge question that is better served by spending some time with Google, but in general, action-based frameworks map a url to an action, which is generally a single class with some sort of execute or perform method. Component-based frameworks like JSF and Wicket don't deal with urls, but

Re: Tab Persistance

2007-07-10 Thread Toni Lyytikäinen
I'd like to know the best practice too. I've done this setting a parameter in the request, and in my jsp I have s:tabbedPanel id=adminpanel selectedTab=%{#parameters['active']} not very elegant but works. On 7/10/07, Brian Trzupek [EMAIL PROTECTED] wrote: I have a page with several Struts

Re: [S2] How can I get system validation message modified?

2007-07-10 Thread Don Brown
Take a look at the localization section in our documentation, and override the messages for those validation error keys. Don On 7/6/07, Wei Xu [EMAIL PROTECTED] wrote: In my scenario, I didn't use any Struts validation frame. s:textfield name=field1 / Here, field1 is a numeric field in Java

Re: Is the tooltip working in S2

2007-07-10 Thread Don Brown
It depends what theme you are using. I believe tooltips require at least the xhtml theme, and they use Dojo to render. Don On 7/9/07, tom tom [EMAIL PROTECTED] wrote: Hi, I got the following in S2, jsp. it shows nothing, infact when I saw the view source it shows nothing with regards to

Re: Tab Persistance

2007-07-10 Thread Adrian Ost
Brian Trzupek schrieb: I have a page with several Struts Tabs on it. When I submit the page, I would like it to come back to the 'active' tab (the previous selected tab). Is there a best practice on how to do this? Thanks, Brian-

Re: [S2] FreeMarker sample application

2007-07-10 Thread Don Brown
I believe our Struts 2 Starter archetype uses Freemarker. See the archetype section in our docs. Don On 7/5/07, Mark P Ashworth [EMAIL PROTECTED] wrote: Good Day, I have been using FreeMarker for the S2 plug-in development and some other projects. I find the FTL language more expressive

How to SUBMIT a form without calling an ACTION

2007-07-10 Thread TonyD
I need to SUBMIT a form without calling an ACTION because I will use a JAVASCRIPT to process it. Is it possible? How? Thanks in advance. -- View this message in context: http://www.nabble.com/How-to-SUBMIT-a-form-without-calling-an-ACTION-tf4056005.html#a11521433 Sent from the Struts - User

Re: [S2] Trying to use Struts2 in a custom framework but ...

2007-07-10 Thread Don Brown
On 7/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: == 1st Issue == - if I click on a link to another page in my menu, the URL will be: .../otherUrlEdit.action?currentFichierId=1 ... and I can't find how to avoid it. There is a parameter in the url building tag that will turn off this

Re: [s2] Performance of Ajax theme in SSL mode

2007-07-10 Thread Don Brown
The problem is some browsers, Firefox comes to mind, don't cache resources when accessed via SSL. This means every Javascript and image file will be request each time, and in Dojo's case, that is a lot of Javascript. Dojo usually relies on lazily loaded Javascript code, so that might mean

Re: [S2] Interceptor Question (Thread Safety)

2007-07-10 Thread Dave Newton
--- Rene Gielen [EMAIL PROTECTED] wrote: [this] means that there are no thread safety issues with interceptor instance variables. Well, not in terms of a property of the same name set in different interceptor references in a config file (er... it made sense in my head) but interceptors still

Re: S2: Redirect question

2007-07-10 Thread Don Brown
Hm...don't see anything glaringly wrong. Have you tried using something like Firebug and stepping through the JavaScript? Don On 7/3/07, Scott Nesbitt [EMAIL PROTECTED] wrote: We have the following: Select.jsp …… s:head theme=ajax debug=true/ ……… s:url id=historyUrl

Re: migration tutorial for JSF to S2 migration

2007-07-10 Thread Don Brown
Hmm...that's a pretty tall order :) If you have any specific questions, please ask, and you might want to check out the docs on the JSF plugin, which allows you to use JSF components in your Struts 2 apps. Don On 7/2/07, java_user [EMAIL PROTECTED] wrote: please provide some good migration

Re: [S2] Session Key for Locale

2007-07-10 Thread Don Brown
Well, at the least, it looks like it deserves a ticket. Pretty strange it only happens for one action though... Don On 6/30/07, Ray Clough [EMAIL PROTECTED] wrote: I have an application using S1, S2, and other component layers, all of which use Locale. At application startup, the

[OT] Re: How to SUBMIT a form without calling an ACTION

2007-07-10 Thread Antonio Petrelli
2007/7/10, TonyD [EMAIL PROTECTED]: I need to SUBMIT a form without calling an ACTION because I will use a JAVASCRIPT to process it. Is it possible? How? Thanks in advance. Try using a normal input type=button instead of a submit button, and specify the onclick attribute. HTH Antonio

Re: Caught OgnlException while setting property 'imageServletUrl'

2007-07-10 Thread Don Brown
Ah, good catch. Well darn, the reason I changed them to return the object instance was to make it easier to initialise results programmatically (action methods can return Result objects directly, not just Strings), but looks like that broke this case. Please file a JIRA ticket so this gets

Re: [S2] Master-Detail Form

2007-07-10 Thread Don Brown
If you are wanting to do this on the client side via JavaScript, you won't be using Struts 2 server-side tags. Look around for JavaScript tutorials about adding form elements. Perhaps one of the popular JavaScript frameworks like Dojo will be of help here. Don On 6/29/07, Luciano Costa [EMAIL

Re: [S2] Unable to access Model properties when using ModelDriven

2007-07-10 Thread Don Brown
The problem could be the order of the interceptors. Take a look at the showcase application as it has at least one model-driven example action. Don On 6/21/07, Victor Neo [EMAIL PROTECTED] wrote: I have an Action class that implements ModelDriven. My DummyForm object will be used to store

Re: [S2] Interceptor Question (Thread Safety)

2007-07-10 Thread Rene Gielen
[...] [this] means that there are no thread safety issues *of the discussed kind* with interceptor instance variables. [...] should have been clear from the discussion context, but thanks for further clarification :) Dave Newton schrieb: --- Rene Gielen [EMAIL PROTECTED] wrote: [this] means

Re: Page-by-Page Iterator on S2

2007-07-10 Thread Don Brown
You might try the Table Tags plugin - http://cwiki.apache.org/S2PLUGINS/table-tags.html Don On 6/14/07, Giovanni Azua [EMAIL PROTECTED] wrote: Hi all, Can anyone please point me please in the S2 example applications to an implementation of the Page-by-Page Iterator pattern? any ideas

Re: Jasper plugin

2007-07-10 Thread Chad S. Lauritsen
Sure. I've attached an action that will allow you to use jasperreports to write to the output stream. You'll have to tweak the classpath. Mine probably won't work. It will load, compile and cache jrxml files located in /WEB-INF/reports. It uses a javax.sql.DataSource from JNDI. It also will

Re: Struts 2 performance

2007-07-10 Thread Lionel
climbingrose wrote: Dojo just seems to be to heavy weight for most purposes. I mean if you only want a bloody calendar in your webapp, you don't want to load up a 100kb of javascript. Plus, it might be my experience only, Dojo seems to have the tendency to hang my browser everytime I open a

Re: Jasper plugin

2007-07-10 Thread aretobios
Thanx for your detailed reply. What I did was to add the following fragment of code in the JasperReportResult.java of the jasperReport-plugin . . JasperReport jasperReport = (JasperReport) JRLoader.loadObject(systemId); /** * Edited */ JRParameter []reportParameters =

Where I can get Struts 2+Ajax+Sitemesh to start without using maven?

2007-07-10 Thread lupus
Hi all, Id like to set up a template as struts2-archetype-starter provides without using maven to create the project, but I do not know how to set this template from scratch using ant build. Is there any reference or simple template for it? I am looking an example using struts 2+Sitemesh+Ajax.

Re: Struts 2 performance

2007-07-10 Thread climbingrose
Well, I prefer using Javascript library like JQuery or Mootools for Ajax rather than Dojo. With JQuery I only have 10kB after compressing with gzip. On 7/11/07, Lionel [EMAIL PROTECTED] wrote: climbingrose wrote: Dojo just seems to be to heavy weight for most purposes. I mean if you only

Re: Struts 2.x mapping question

2007-07-10 Thread Perssy Llamosas
Yes, I tried setting that constant but that makes every static file not to be served by tomcat. with: 'struts.action.extension=' there won't be .css .html .js There must be another way. I have seen examples of custom mappers without .action but I don't seem to be able to make them work in

Re: the Bootstrap tutorial

2007-07-10 Thread Ted Husted
Yes, as the bootstrap tutorial mentions, the first mapping that matches wins. I edited the note to add more emphasis to *first* and to specifically mention the name=* case. Thanks for the heads-up! -Ted. On 7/5/07, Eric Buitenhuis [EMAIL PROTECTED] wrote: Using the wildcards I had a bit of a

Re: S2: Redirect question

2007-07-10 Thread Musachy Barroso
Your are using the ajax theme for the url, which will make an ajax request, so the page won't change, if you just want to navigate to another page, use the simple theme for the a tag. musachy On 7/2/07, Scott Nesbitt [EMAIL PROTECTED] wrote: We have the following: Select.jsp …… s:head

How many jsessionid's is valid in my webapp

2007-07-10 Thread Søren Blidorf
Hi. Is there a why to tell how many jsessionid's is valid in my webapp. I want to use it to display the number of online users? Also is there a way to connect the username from my realm to the jsessionid so that I can display online users? BR Soren, DK

Re: Struts 2 performance

2007-07-10 Thread cilquirm
I've found that static html pages are blazing fast, especially those that don't involve stylesheets, images, or javascript includes. :-) Seriously, though, I don't think there's any disagreement that ognl ( or any runtime expression language ) adds a certain amount of overhead, but I've never

Re: How to control the display of Struts2 tags like s:textfield

2007-07-10 Thread Dale Newfield
TonyD wrote: I tried your suggestions but still the ccsStyle doesn't change the checkbox label color. You're right--cssStyle results in a style attribute on the checkbox, not on the label. My checkbox is created using an interator and is display into a table. I tried changing the td

Re: logic:iterate - problem

2007-07-10 Thread Andreas Hartmann
Hello Chad, hello Yoge, thanks for your hints! meanwhile, I could find a third solution: logic:iterate name=foo id=object type=my.url.classname html:textarea ... rows=%= object.getRows() % / /logic:iterate Another solution should be to use EL: html:textarea ... rows=${object.rows}/

Re: redirecting a non-secure request to one that uses https

2007-07-10 Thread Session A Mwamufiya
Hi Tony, Thanks for the reply. I use an interceptor to check the HttpServletRequest's isSecure() method in order to determine it if is secure or not. I've never used the HttpServletResponse object and I'm not sure how to redirect to the same address but with https. The redirecting won't be

[s2]how to detect changes in the available values in a list using optionstransferselect

2007-07-10 Thread petchia
I need to be able to detect when an item is added (or removed) from the right side of an optionstransferselect component. Basically if an item on the left side is added to the right side, I want to be able to run some JavaScript code to update another part of the page. I tried using the

Re: Tab Persistance

2007-07-10 Thread Brian Trzupek
Thanks, I think the latter works best for my use case. It would be nice if this feature was a built in component of the tabbedPanel and transparent to the developer. brian- On Jul 10, 2007, at 8:53 AM, Adrian Ost wrote: Brian Trzupek schrieb: I have a page with several Struts Tabs on

Re: [s2] What is the name attribute of exception-mapping tag for?

2007-07-10 Thread petchia
I've dug into the S2 and XWork code and I can't see anywhere that the name attribute of an exception mapping is used. Anyone have any clue about this? Is it just an used attribute that was intended for something that never got implemented? I'm at a loss here. -Bill petchia wrote: Anyone

RE: [s2] no result defined error after failed validation - can someone help?

2007-07-10 Thread petchia
Does this mean that errors and messages are stored in the session? If so, is this configurable? I don't see why the errors would be stored in the session by default. -Bill 徐 伟 wrote: Try this way, and it might works. Make your action beans all implement

S2: YUI plugin and yahoo calendar

2007-07-10 Thread Scott Nesbitt
I am evaluating the yahoo calendar and am having a bit of trouble with the YUI plugin. I would like to enable multiple select on calendar but do not see an option to set this through the plugin. Does anyone know of a way to do this? I tried the example code but the script in

Re: [1.3.8] input autocomplete=off

2007-07-10 Thread Niall Pemberton
On 7/10/07, Tomas KRAMAR [EMAIL PROTECTED] wrote: Hi folks, I need to turn off the autocompletion feature on a html text input. I am using my own ajax autocompletion, but the default autocompletion interferes with mine. I have read, that struts taglib does not support this, as it is not part of

Re: S2: YUI plugin and yahoo calendar

2007-07-10 Thread Musachy Barroso
The object for your datepicker will be YAHOO.datepickers.${id}, where id is the value of the id property. And there is no property for setting up multiple values (needs to be implemented, right now there is only one hidden input for the picker, for multiple selection you would need more) musachy

Re: Struts 2.x mapping question

2007-07-10 Thread Perssy Llamosas
This article answers my question: http://www.lunatech-research.com/archives/2005/07/29/struts-urls There is a big but, mapping each extension in the web.xml to the default servlet works but it's not the ideal solution since it would require that every extension in my application to be mapped,

RE: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Neil Aggarwal
Crazyreal: Thank you for the hint. I did that and now I am getting this error: java.io.IOException: Error including path '/layout.jsp'. The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application. Here is my

RE: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Hartrich, James CTR USTRANSCOM J6
Your web.xml file can have a listener for StrutsTilesListener. Make sure your TilesInterceptor is implemented. -Original Message- From: Neil Aggarwal [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 2:54 PM To: 'Struts Users Mailing List' Subject: RE: [Struts 2] Tiles plugin

[S2] How to obtain current action name from JSP?

2007-07-10 Thread Gabriel Belingueres
Hi, Which OGNL / JSTL expression could I use from a JSP page that will return the currently executed action's name? TIA, Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S2] How to Validate Indexed Lists?

2007-07-10 Thread Hoying, Ken
I am using the Type Conversion functionality (http://struts.apache.org/2.x/docs/type-conversion.html) for handling indexed lists. BTW.. Very cool stuff and worked great right off. My question is that I would now like to take it one step further and use the XML validation definitions to

Re: [S2] How to obtain current action name from JSP?

2007-07-10 Thread Musachy Barroso
Try: [EMAIL PROTECTED]@ACTION_NAME] //are you sure you need that? musachy On 7/10/07, Gabriel Belingueres [EMAIL PROTECTED] wrote: Hi, Which OGNL / JSTL expression could I use from a JSP page that will return the currently executed action's name? TIA, Gabriel

RE: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Neil Aggarwal
James: I added the listener to my web.xml: !-- Struts tiles listener -- listener listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class /listener I don’t see anything about the TilesInterceptor. What am I supposed to do there? Thanks, Neil -- Neil

Re: [S2] How to obtain current action name from JSP?

2007-07-10 Thread Gabriel Belingueres
Thanks Musachy, I'll give it a try. I want to create my menuing subsystem directly based on the called action's name to test which menu item is the currently selected one. Knowing the action's name would avoid me at least to define some sort of string identifier somewhere to test against. Any

Re: How many jsessionid's is valid in my webapp

2007-07-10 Thread Laurie Harper
Søren Blidorf wrote: Hi. Is there a why to tell how many jsessionid's is valid in my webapp. I want to use it to display the number of online users? Not directly, buy you can implement a session listener to track sessions being created and destroyed and keep count of how many are currently

RE: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Dave Newton
--- Neil Aggarwal [EMAIL PROTECTED] wrote: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application. That's not the Tiles taglib URI. http://tiles.apache.org/tutorial/basic/pages.html In general, you can find

RE: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Neil Aggarwal
Dave: In that case, the example on this page: http://cwiki.apache.org/WW/tiles-plugin.html is wrong. I changed the URI and things are working now. Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim your inbox. Visit

RE: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Dave Newton
Like I said, Tiles 2 was in a state of flux, and the Tiles plugin was experimental; I don't know when it will be considered non-experimental. When something is so labeled sometimes you need to do a little digging! d. --- Neil Aggarwal [EMAIL PROTECTED] wrote: Dave: In that case, the

Re: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Eric Buitenhuis
switch the doctype url to http://tiles.apache.org/dtds/tiles-config_2_0.dtd instead On 7/10/07, Dave Newton [EMAIL PROTECTED] wrote: Like I said, Tiles 2 was in a state of flux, and the Tiles plugin was experimental; I don't know when it will be considered non-experimental. When something is

Re: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Eric Buitenhuis
sorry...missed the answer Dave gave. On 7/10/07, Eric Buitenhuis [EMAIL PROTECTED] wrote: switch the doctype url to http://tiles.apache.org/dtds/tiles-config_2_0.dtd instead On 7/10/07, Dave Newton [EMAIL PROTECTED] wrote: Like I said, Tiles 2 was in a state of flux, and the Tiles plugin was

Re: the Bootstrap tutorial

2007-07-10 Thread Eric Buitenhuis
Thanks! I very well could have missed it. Midnight programming lends itself to that. Anyway, now I know, so it's not that big of a deal. Thanks for the response. Eric Buitenhuis On 7/10/07, Ted Husted [EMAIL PROTECTED] wrote: Yes, as the bootstrap tutorial mentions, the first mapping that

Re: Struts 2 performance

2007-07-10 Thread climbingrose
Obviously as a Struts 2 user I see the benefit of the framework. I actually convinced my company to abandon Struts 1 and go forward with Struts 2. However, I really think you need to consider carefully where you should use the the framework. From my own experience, I tend to develop public pages