Re: Struts2 OGNL Problem

2008-11-18 Thread PhoenixelRay
i tried it like this, but it didnt work. tiles:importAttribute name=myListAttribute / s:iterator value=#myListAttribute #item.link s:text name=#item.value/ /s:iterator newton.dave wrote: --- On Fri, 11/14/08, PhoenixelRay wrote: in this case I have to use OGNL to get access to the list

Re: Struts2 OGNL Problem

2008-11-18 Thread Lukasz Lenart
2008/11/18 PhoenixelRay [EMAIL PROTECTED]: i tried it like this, but it didnt work. tiles:importAttribute name=myListAttribute / s:iterator value=#myListAttribute #item.link s:text name=#item.value/ /s:iterator Try with force evaluation tiles:importAttribute name=myListAttribute /

Re: Tabbed panel performance

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

Re: How do I generate an ID attribute with my text field

2008-11-18 Thread Sébastien Domergue
Hi, actually, the styleId allow you to define your own id but i think that struts generate an id if you don't force one. At least, it's the default behaviour for a field into a form in Struts 2 (but i'm not sure in struts 1). Regards Sébastien Kawczynski, David a écrit : styleId=blah You

Re: Struts2 OGNL Problem

2008-11-18 Thread PhoenixelRay
No output and error message with both :-(( Lukasz Lenart wrote: 2008/11/18 PhoenixelRay [EMAIL PROTECTED]: i tried it like this, but it didnt work. tiles:importAttribute name=myListAttribute / s:iterator value=#myListAttribute #item.link s:text name=#item.value/ /s:iterator Try

Re: Struts2 OGNL Problem

2008-11-18 Thread Lukasz Lenart
2008/11/18 PhoenixelRay [EMAIL PROTECTED]: No output and error message with both :-(( Did you try with #attr or #request ? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Struts2 OGNL Problem

2008-11-18 Thread PhoenixelRay
I tryed it like this s:iterator value=%{#attr.myListAttribute} with the same Problem. Is this maybe a tiles problem? Lukasz Lenart wrote: 2008/11/18 PhoenixelRay [EMAIL PROTECTED]: No output and error message with both :-(( Did you try with #attr or #request ? Regards -- Lukasz

Re: Tabbed panel performance

2008-11-18 Thread Andras Balogh
Hi, As I see you include different jspf in each tab, can you try to use the href attribute to load the content of each tab and see if there is a difference in the performance? See here about the href attribute: http://struts.apache.org/2.0.11.2/docs/tabbedpanel.html Best regards, Andras.

Re: Struts2 OGNL Problem

2008-11-18 Thread Lukasz Lenart
2008/11/18 PhoenixelRay [EMAIL PROTECTED]: I tryed it like this s:iterator value=%{#attr.myListAttribute} with the same Problem. Is this maybe a tiles problem? Did you try to use s:debug/ tag on that page? Regards -- Lukasz http://www.lenart.org.pl/

Re: Struts2 OGNL Problem

2008-11-18 Thread Jeromy Evans
PhoenixelRay wrote: I tryed it like this s:iterator value=%{#attr.myListAttribute} with the same Problem. tiles:importAttribute places the object into page scope if not specified otherwise. This means in OGNL it's only available via #attr. First, confirm you can access the attribute

Re: Tabbed panel performance

2008-11-18 Thread Pablo Vázquez Blázquez
Hi Andras, thank you for your response. I am using struts 2.0.9 with a dojo-0.4.3 build, so if I have a s:div with a href attribute for each tab, I would be invoking the action each time I go to the tab, isn't it? If so, it doesn't work for me, as my tabbed panel represents an only form, but

Re: Struts2 OGNL Problem

2008-11-18 Thread PhoenixelRay
This helped me a lot, thank you! =) Now the list is iterated and i get the output as a ressource. The solution was: tiles:importAttribute name=myListAttribute/ s:iterator value=%{#attr.myListAttribute} s:a href=#links:text name=%{#attr.value}//s:a /s:iterator Greets Ray Jeromy Evans -

Re: Tabbed panel performance

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

Re: Tabbed panel performance

2008-11-18 Thread Pablo Vázquez Blázquez
I don't recall the 0.4 dojo tabbed panel being particularly slow to render, other than the extreme initial page load while Dojo makes too many http requests. I can't think of any reason why it would get slower after a genuine page reload with the same content (if it's reloading via ajax

Re: Tabbed panel performance

2008-11-18 Thread Pablo Vázquez Blázquez
If in my code I comment the tabbedpanel tag, it works fine... !-- TABS -- !-- s:tabbedPanel id=jobTabs doLayout=false theme=simple -- !-- EXTRACTION SECTION -- s:div id=extractionTab cssClass=tab label=%{getText('EditJob.ExtractionSection')} theme=ajax jsp:directive.include

Re: Tabbed panel performance

2008-11-18 Thread Pablo Vázquez Blázquez
Just a bit more information. I have profiled (using firebug) the action (always the same action with the same content) with and without the s:tabbedpanel tag and here are the results: Without: --- 1727.355ms 1424.947ms 1748.429ms 1523.518ms 1539.649ms 1606.369ms 1657.058ms 1599.767ms

Client Side Validation Not Working

2008-11-18 Thread Rabin Aryal
Guys, I don't know what I am doing wrong. I am missing the actual validation JavaScript code in the generated html when accessing add_comment.do?blogid=23. I have included the snippet below. addcomment.jsp s:form action=save_comment method=POST validate=true s:actionerror /

A Strange Error with My Own Tag

2008-11-18 Thread KE LI
Guys, I am writing my own tag as: public class PageTag extends ComponentTagSupport For ComponentTagSupport, it's org.apache.struts2.views.jsp.ComponentTagSupport. But the error appears, it says: Description Resource Path Location Type The project was not built since its build path is

Re: Client Side Validation Not Working

2008-11-18 Thread Lukasz Lenart
And the server-side validation is working? I think not, name of xml is not as it should be - it should be CommentAction-save_comment-validation.xml Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL

Re: A Strange Error with My Own Tag

2008-11-18 Thread Lukasz Lenart
You are missing reference to javaee.jar library and it's not related to Struts project Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: A Strange Error with My Own Tag

2008-11-18 Thread KE LI
Got it.Thanks a lot! 2008/11/18 Lukasz Lenart [EMAIL PROTECTED] You are missing reference to javaee.jar library and it's not related to Struts project Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe,

RE: Client Side Validation Not Working

2008-11-18 Thread Rabin Aryal
Lukasz, Thanks a lot. I changed the action name and then what a silly mistake... Rabin -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 10:31 AM To: Struts Users Mailing List Subject: Re: Client Side Validation Not Working And

Re: A Strange Error with My Own Tag

2008-11-18 Thread KE LI
For further information: The Eclipse said: The type javax.servlet.jsp.tagext.BodyTagSupport cannot be resolved. It is indirectly referenced from required .class files 2008/11/18 KE LI [EMAIL PROTECTED] Guys, I am writing my own tag as: public class PageTag extends ComponentTagSupport For

[S2] Plugin architecture

2008-11-18 Thread Relph,Brian
Hello, I am trying to build a struts2 app that has support for plugins - not a struts2-plugin - but more like an additional set of functionality for the app itself. The plugins would be uploadable, need to have an isolated classpath, and contribute both actions and views, and be able to add

Re: [S2] Plugin architecture

2008-11-18 Thread Wes Wannemacher
I am not sure if it does exactly what you want (isolated classpaths), but this might help get you started - http://cwiki.apache.org/S2PLUGINS/osgi-plugin.html Note, this plugin is experimental and hasn't seen updates in a while, but still worthwhile. -Wes On Tue, Nov 18, 2008 at 11:10 AM,

Custom Validators?

2008-11-18 Thread David C. Hicks
Is there a decent guide somewhere on the Internet about writing customer validators? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Custom Validators?

2008-11-18 Thread Dave Newton
--- On Tue, 11/18/08, David C. Hicks wrote: Is there a decent guide somewhere on the Internet about writing customer validators? For which version of Struts? I was able to find several references by searching the fine web with struts +custom validator. For S2 the link from the S2 validation

Re: Custom Validators?

2008-11-18 Thread Musachy Barroso
Dave Meta-Google Newton When did I get fired? musachy -- Hey you! Would you help me to carry the stone? Pink Floyd

Re: Custom Validators?

2008-11-18 Thread Dave Newton
--- On Tue, 11/18/08, Musachy Barroso wrote: Dave Meta-Google Newton When did I get fired? You know, economic downturn and all. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

s1: get Class object

2008-11-18 Thread farmer2008
In my project with struts 1.3.5, Class object can only be created via anInstance.getClass(). If I use Class.forName(...) or .class, I get java.lang.NoClassDefFoundError: class name. Is it a struts issue? Is there a way we still can use .class syntax to get a Class object? Thanks. -- View this

Re: Custom Validators?

2008-11-18 Thread David C. Hicks
I'm mainly looking for information on S2 validators. I think I've figured out what I needed, though. Thanks. Dave Newton wrote: --- On Tue, 11/18/08, David C. Hicks wrote: Is there a decent guide somewhere on the Internet about writing customer validators? For which version of

JasperReports Plugin datasource

2008-11-18 Thread Milan Milanovic
Hi, I want to use JasperReports from my Struts 2 app. But I have a problem with datasource param. I want to pass Connection object (created or if possible bean id=dataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource... spring bean) as a parameter and not a list, because

Re: JasperReports Plugin datasource

2008-11-18 Thread Dave Newton
--- On Tue, 11/18/08, Milan Milanovic wrote: I want to use JasperReports from my Struts 2 app. But I have a problem with datasource param. I want to pass Connection object (created or if possible bean id=dataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource... spring

Unrelated Action method being called repeatedly - How to debug?

2008-11-18 Thread scspieker
I am developing an application that utilizes Struts 2.0.9 and Spring that will perform as a CMS type system. It is a rewrite of a PHP application from several years ago. Within the PHP app, there was a logical tie between 'model' objects. A category was a logical demarcation of types of

Re: JasperReports Plugin datasource

2008-11-18 Thread Milan Milanovic
Dear Dave, I'm not sure how to do this. Please, give me an example. -- Thank you in advance, Milan newton.dave wrote: --- On Tue, 11/18/08, Milan Milanovic wrote: I want to use JasperReports from my Struts 2 app. But I have a problem with datasource param. I want to pass Connection

RE: [S2] Plugin architecture

2008-11-18 Thread Relph,Brian
That plugin looks promising, the isolated classpaths requirement could be bent ... Does the plugin require that all actions be loaded from bundles? Brian Relph -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 10:18 AM To: Struts

Loading CSS files in Struts......

2008-11-18 Thread Casinova
Hi all. I have css files located at different directory.. and i am loading thease css files in struts jsp page like below link rel=stylesheet type=text/css href=html:rewrite page='/css/abc.css'/ link rel=stylesheet type=text/css href=html:rewrite page='/css/xyz.css'/ the problem is ...when

Re: JasperReports Plugin datasource

2008-11-18 Thread Milan Milanovic
Dear Dave, as far as I can see, I can pass Connection object as dataSource parameter from my action class ? Altough I don't know how to pass dataSource bean from Spring configuration. But, it seems that JR result type use parameters from value stack that can be used directly in report (without

Re: JasperReports Plugin datasource

2008-11-18 Thread Milan Milanovic
Dear Dave, as far as I can see, I can pass Connection object as dataSource parameter from my action class ? Altough I don't know how to pass dataSource bean from Spring configuration. But, it seems that JR result type use parameters from value stack that can be used directly in report (without

Re: JasperReports Plugin datasource

2008-11-18 Thread Milan Milanovic
Dear Dave, as far as I can see, I can pass Connection object as dataSource parameter from my action class ? Altough I don't know how to pass dataSource bean from Spring configuration. But, it seems that JR result type use parameters from value stack that can be used directly in report (without

Re: Tabbed panel performance

2008-11-18 Thread Jeromy Evans
Hi Pablo, Consider creating a custom profile for dojo. This makes a significant improvement to the page load time as it reduces the number of http requests (read on first though) http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html The reload problem you're

Re: JasperReports Plugin datasource

2008-11-18 Thread Milan Milanovic
Dear Dave, I'm not sure how to use this. Can you please show an example ? -- Milan newton.dave wrote: --- On Tue, 11/18/08, Milan Milanovic wrote: I want to use JasperReports from my Struts 2 app. But I have a problem with datasource param. I want to pass Connection object (created or

Re: JasperReports Plugin datasource

2008-11-18 Thread Milan Milanovic
Dear Dave, as far as I can see, I can pass Connection object as dataSource parameter from my action class ? Altough I don't know how to pass dataSource bean from Spring configuration. But, it seems that JR result type use parameters from value stack that can be used directly in report (without

RE: [S2] Plugin architecture

2008-11-18 Thread Wes Wannemacher
To be honest, I don't know. But, what makes the s2/osgi different from other OSGi integration libraries is that bundles are deployed within the single web-app. This means, you could create one bundle with your base actions and then deploy other bundles without restarting your app. I could be

Re: [S2] Plugin architecture

2008-11-18 Thread Musachy Barroso
Any bean registered as com.opensymphony.xwork2.config.PackageProvider (since 2.1 I think) will be loaded and added to the configuration. So the short answers is yes, you should be able to mix regular action definitions with bundled actions. The plugin still needs some love, but it is functional,

Re: [S2] Plugin architecture

2008-11-18 Thread Don Brown
FWIW, I'm working with James to port the OSGi parts of the Atlassian Plugins framework over to Apache Archiva, which recently moved to Struts 2. We are planning on releasing that bit as its own project, although the whole Atlassian Plugins framework is also now open source. Don On Wed, Nov 19,

Re: Struts2: Handling a Missing Action (404)

2008-11-18 Thread Allen Lee
I just got done dealing with this issue as well. On my naive reading of the struts Dispatcher code, it appears to convert the Exceptions arising from non-existing actions into invocations of sendError() with the appropriate error code (when devMode is enabled, I actually get a 500 caused by an

Re: s1: get Class object

2008-11-18 Thread Mead Lai
Do you create an object In the struts Action? or others, i.e formBean? On Wed, Nov 19, 2008 at 1:16 AM, farmer2008 [EMAIL PROTECTED] wrote: In my project with struts 1.3.5, Class object can only be created via anInstance.getClass(). If I use Class.forName(...) or .class, I get

Re: Captcha in Struts2

2008-11-18 Thread Yohan Liyanage
Check out http://code.google.com/p/jcaptcha4struts2/ JCaptcha4Struts2 . Its a Struts2 plugin for integrating JCaptcha. Project is still in development level, but it is quite usable for most of the needs. It provides features like automatic validation of captcha, so that you can focus on problem

Re: [S2] Plugin architecture

2008-11-18 Thread alvins
Hi Don, Can you point me over to where the Atlassian plugins source is available? Thanks, Alvin Don Brown-5 wrote: FWIW, I'm working with James to port the OSGi parts of the Atlassian Plugins framework over to Apache Archiva, which recently moved to Struts 2. We are planning on

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

2008-11-18 Thread Mississippi John Hurt
Does anyone have sample JSP with a clean, easy way to utilize the same JSP page for multiple views, maybe even by users with different roles? Is there any best practice? I wonder if anyone has found a way to do it with as little hardcoding as possible, and also being able to handle multiple modes,