Struts

2007-06-19 Thread bindhu
hai, can u help me out solving this problem. i have dowloaded struts1.3.8. but while compiling struts enabled java i get error msg. C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\appjavac RegisterForm.java RegisterForm.java:2: package org.apache.struts.action does not exist import

Getting datas from session objects

2007-06-19 Thread andihartmann
Hello! I've got an object, which has getter an setter methods, e.g.: Object test { String foo=something; public String getFoo() { return (foo;) } public void setFoo(String foo) { this.foo=foo;} } The object is set to the session with rq.getSession().setAttribute(test,test); The jsp uses the

Re: Struts Help ME PLSSSS

2007-06-19 Thread nuwan chandrasoma
hi, you dont have struts jar in your classpath, try to add all the struts jar's in your classpath and compile. Note: this is not a good way to build applications, try to use a IDE or a Ant script to build your application and minimize the adding of jars to your classpath. Thanks, Nuwan On

RE: Struts

2007-06-19 Thread Bizard Nicolas \(KIRO 43\)
Hi, try the following : javac *.java to compile all at once. Also try javac --help to solve your classpath problems. Try google to solve the lack of responses to absolutely non struts related questions on this list. -Original Message- From: bindhu [mailto:[EMAIL PROTECTED] Sent:

Re: Automatic trimming

2007-06-19 Thread Jeromy Evans
Is there any way to automatically trim data from textfields etc? I don't believe so, but in S2 you could write a converter or an interceptor to do it for you. In both cases you'll have to come up with a convention that determines when trimming is applied.

Spring-webflow exception

2007-06-19 Thread Rikard
Hi im trying out the spring-weblow example. But i get this exception: 09:43:42,494 ERROR [[/spaceport].listenerStart] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

Re: Spring-webflow exception

2007-06-19 Thread Manfred Wolff
Wrong mailinglist? This is struts even not spring. Rikard schrieb: Hi im trying out the spring-weblow example. But i get this exception: 09:43:42,494 ERROR [[/spaceport].listenerStart] Exception sending context initialized event to listener instance of class

Re: linking struts2 action to pre-existing pure Java servlet

2007-06-19 Thread Jeromy Evans
A result of type redirect and address any URL: result name=success type=redirect param name=locationhttp://localhost:8080/myproject/myapplication/param param name=param1value1/param param name=param2value2/param /result Properties from your action can be passed as parameters in the URL using

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Adrian Ost
David Durham, Jr. schrieb: On 6/18/07, Jeff Amiel [EMAIL PROTECTED] wrote: On 6/18/07, Skip Hollowell [EMAIL PROTECTED] wrote: I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper plugin is included. Does that mean that Jasper is the endorsed recommended way to export data

Re: How checkbox issue is solved in S2

2007-06-19 Thread Dave Newton
--- tom tom [EMAIL PROTECTED] wrote: In S1.x as we got reset method is ActionForm we used to reset the corresponding property in the ActionForm, hence it correctly reflects what user did when submitting. In the absense of the Action Forms, What is the best practice to sort this out in S2.

RE: Struts1 and 2

2007-06-19 Thread Dave Newton
--- Jason Wyatt [EMAIL PROTECTED] wrote: - we got bitten by the dependency on JDK 1.5. Our S2 web app worked fine on Tomcat 5.5, but our client's production application server (Oracle AS 10.1.2) didn't support JDK 1.5 by default, and I've spent the last 2 weeks coming up with a satisfactory

Re: Getting datas from session objects

2007-06-19 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: The jsp is loaded correctly and works fine so far. After I submitted the form (the jsp doesn't crash while submitting), I can see in the debug log, that the changed data is transfered - but I can't see it in the session test. Now the question: How can I

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Ing. Andrea Vettori
Anyone ? Anyone knows who's calling freemarker.ext.beans methods ? Il giorno 17/giu/07, alle ore 19:08, Ing. Andrea Vettori ha scritto: Hi, I've a struts 2.0.8 app that runs on Linux and JBoss 4.0.5. I'ts an e-commerce site. I have the following problem. The app seems to generate lot of

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Antonio Petrelli
2007/6/19, Ing. Andrea Vettori [EMAIL PROTECTED]: Anyone knows who's calling freemarker.ext.beans methods ? Did you try asking the FreeMarker team? Antonio

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Ing. Andrea Vettori
yes but their list and forum seems almost dead... I hope someone in the struts team can help me found what's the problem... Il giorno 19/giu/07, alle ore 11:39, Antonio Petrelli ha scritto: 2007/6/19, Ing. Andrea Vettori [EMAIL PROTECTED]: Anyone knows who's calling freemarker.ext.beans

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Ing. Andrea Vettori
Moreover I'm not using freemaker in my project! It's struts that's using it. My page are all jsps !! Il giorno 19/giu/07, alle ore 11:41, Ing. Andrea Vettori ha scritto: yes but their list and forum seems almost dead... I hope someone in the struts team can help me found what's the

Re: usage of s:param

2007-06-19 Thread Roberto Nunnari
Dave Newton wrote: --- Roberto Nunnari [EMAIL PROTECTED] wrote: I tried to use the same code, and your code in a jsp page without tiles, but the result is exactly the same. What version of S2 are you using? What container? Struts 2.0.6 Tomcat 5.5.17 JRE: jdk1.5.0_11 d.

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Antonio Petrelli
2007/6/19, Ing. Andrea Vettori [EMAIL PROTECTED]: Moreover I'm not using freemaker in my project! It's struts that's using it. My page are all jsps !! This is pretty strange... Is FreeMarker servlet declared in your web.xml? Antonio

Re: usage of s:param

2007-06-19 Thread Roberto Nunnari
Hi Cuong. Thank you. Your reply solved the prolem. climbingrose wrote: From your JSP code: s:url value=/Image s:param name=storyId value=%{id}/ /s:url There are two things worth noting: 1)Because you're not using includeParams='none', any parameters from your current page will be appended

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Ing. Andrea Vettori
Il giorno 19/giu/07, alle ore 12:07, Antonio Petrelli ha scritto: 2007/6/19, Ing. Andrea Vettori [EMAIL PROTECTED]: Moreover I'm not using freemaker in my project! It's struts that's using it. My page are all jsps !! This is pretty strange... Is FreeMarker servlet declared in your

Re: ChartResult - howto

2007-06-19 Thread Mark P Ashworth
Good Day, Is it possible for you to share the solution? Regards, Mark P Ashworth http://www.connext.co.za torben wrote: torben wrote: Hi, I am making an application, where I have jsp page with a Chart generated by the JFreeChart API. I would like to the

How to use the s:param tag with s:textfield?

2007-06-19 Thread Luiz Henrique Rossetti
Hi guys, How can I use the s: param with s:textfield? I need to format a Timestamp property of my Action using the mask dd/MM/. MyAction public BlablaAction extens ActionSupport{ private Employee employee; getters and setters } public class Employee{ private Timestamp finalDate;

Re: [S2] FreeMarker syntax to use in the theme templates

2007-06-19 Thread Mark P Ashworth
Good Day, Found how textfield and the like are doing it. These tags make use of the @s.url FreeMarker command to create a link to the action or url for the property given in the page. A question though, what are the lt;/#rtgt; tags in between the #if statements in the FreeMarker templates? Did

Re: [OT] Serious memory leak

2007-06-19 Thread Balazs Michnay
Thanks for your reply on the memory leak issue Well, recently I found out that my memory consumption of my application is nothing compared to the memory consumption of my database server (MySQL). I'm theoretically using connection pool to save resources of my database server, but each time I

Re: [OT] Serious memory leak

2007-06-19 Thread Balazs Michnay
I forgot to include the link to the image. Here it is: http://www.inf.u-szeged.hu/~michnay/db/db_connections.jpg - Original Message From: Balazs Michnay [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, June 19, 2007 2:16:06 PM Subject: Re: [OT]

Struts 2 + Spring 2 + DAO + Hibernate

2007-06-19 Thread hezjing
Hi! What is the difference between a Model object and DAO? In Struts 2 + Spring 2 + JPA + AJAX tutorial, we have an annotated quickstart.model.Person class. Do we still require Person class say, if we create a PersonDao? I'm trying to figure out how to implement Struts 2 + Spring 2 + DAO +

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Skip Hollowell
The simple days of just dropping my values onto the response stream seem to be very much over. // Back in the Day... (Struts 1) response.setContentType(application/text); response.setHeader(Content-disposition, filename=\Testing.csv\); out.println(Column1,Column2,Column3,Column4);

Re: Struts 2 + Spring 2 + DAO + Hibernate

2007-06-19 Thread Dave Newton
--- hezjing [EMAIL PROTECTED] wrote: What is the difference between a Model object and DAO? DAOs get models. (Hmm, I think I need a DAO t-shirt now--maybe it'll help.) Do we still require Person class say, if we create a PersonDao? Yes. The Person class is the thing being represented in the

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Dave Newton
--- Skip Hollowell [EMAIL PROTECTED] wrote: The simple days of just dropping my values onto the response stream seem to be very much over. Yay! I attempted to play with the Stream Result but crashed and burned in a big way. How so? d.

Re: Spring-webflow exception

2007-06-19 Thread Rikard
Maby i should write that im trying out the struts-webflow plugin.. Manfred Wolff wrote: Wrong mailinglist? This is struts even not spring. Rikard schrieb: Hi im trying out the spring-weblow example. But i get this exception: 09:43:42,494 ERROR [[/spaceport].listenerStart] Exception

RE: Struts1 and 2

2007-06-19 Thread Sivapatham, Hari
Thanks a lot for the information Jason. The pros and cons list will be very helpful. Jeff's and your response backup my suggestion of going with struts2 instead of struts1. Thanks again! Priya -Original Message- From: Jason Wyatt [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Skip Hollowell
Hi Dave: Quite honesty, I couldn't make the connection, in my head, on how the result parameters in my .xml file corresponded to the action and method I am working in. 1. I don't believe I have to use the execute method, correct? In my case, I have an exportCSV() method in my action, and

[S2] Best way to catch specific exception at any point?

2007-06-19 Thread yitzle
I'm working on a web app that got a weird tendency to throw a specific exception - at any action. What's the best way to redirect to a specific JSP on that error? With an interceptor? Or stick in a try/catch in all my execute()'s?

RE: [S2] Best way to catch specific exception at any point?

2007-06-19 Thread Raghupathy, Gurumoorthy
What is the name of the class of the exception You can define an error page in the web.xml if you know the class then this may help http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1017571http://edocs. bea.com/wls/docs61/webapp/web_xml.html#1017571 This is not bea specific / struts

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Dave Newton
--- Skip Hollowell [EMAIL PROTECTED] wrote: Quite honesty, I couldn't make the connection, in my head, on how the result parameters in my .xml file corresponded to the action and method I am working in. I think the stream result is specifically to stream the contents of an existing file, not

RE: [S2] Best way to catch specific exception at any point?

2007-06-19 Thread Dave Newton
http://struts.apache.org/2.x/docs/exception-configuration.html is the S2 way of handling exceptions if you need more than a simple JSP page; it may not be the best answer for non-application specific exceptions--YMMV. Whether or not you need to wrap the exception in the action class depends

Re: Spring-webflow exception

2007-06-19 Thread Ian Roughley
The source is available from the project site on google code. I haven't seen this error before, but I imagine it is a XML config issue. /Ian Rikard wrote: Hi im trying out the spring-weblow example. But i get this exception: 09:43:42,494 ERROR [[/spaceport].listenerStart] Exception

[ANN] YUI plugin

2007-06-19 Thread Musachy Barroso
I'd like to announce the alpha release of the YUI plugin. Home Page Doc: http://cwiki.apache.org/confluence/display/S2PLUGINS/YUI+Plugin Downloads: http://code.google.com/p/struts2yuiplugin/downloads/list Comments/Complaints/Request/etc :) : http://code.google.com/p/struts2yuiplugin/issues/list

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Musachy Barroso
Or you can write your own result, and generate the CSV file there (reusable, clean, bla bla) regards musachy On 6/19/07, Dave Newton [EMAIL PROTECTED] wrote: --- Skip Hollowell [EMAIL PROTECTED] wrote: Quite honesty, I couldn't make the connection, in my head, on how the result parameters

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Dave Newton
--- Musachy Barroso [EMAIL PROTECTED] wrote: Or you can write your own result, and generate the CSV file there (reusable, clean, bla bla) I did that, to a very small degree (not to the extent of JSONResult; I'm lazy) but haven't gotten around to cleaning it up yet--it's pretty hacky. Someone

AJAX and Struts2

2007-06-19 Thread Leena Borle
What is the best way to learn AJAX and struts 2 development? Is there any good article ? I have just started learning AJAX. Leena

Re: [OT] Serious memory leak

2007-06-19 Thread Christopher Schultz
Balazs, Balazs Michnay wrote: recently I found out that my memory consumption of my application is nothing compared to the memory consumption of my database server (MySQL). I'm theoretically using connection pool to save resources of my database server, but each time I make a query, I have

[S2] Validation, actionerrors, actionmessages and redirect

2007-06-19 Thread Guillaume Carré
This one has been talked about quite a few times here. But I haven't seen any good solution, so I would like to raise it again. IMHO (with the broken datepicker tag that is being reworked for 2.1) this is THE big issue with Struts 2.0.x. At least this is mine. When you have: Action A - jsp -

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Skip Hollowell
Hack Alert: public String exportCSV() throws Exception { // Search based upon the entered criteria // TODO: pass the previously found List in, instead of performing the locate again // Use the Criteria, create a list of transactionBeans, and return it

[S2] Ajax validation

2007-06-19 Thread Dave Newton
Hi, If I'm using the Ajax theme and an s:form ... validate=true .../ where are the messages being built into the JavaScript coming from, can I change them, and to what extent (i.e., action-alias level properties etc.)? Thanks, Dave

Re: [S2] Validation, actionerrors, actionmessages and redirect

2007-06-19 Thread Jeff Amiel
On 6/19/07, Guillaume Carré [EMAIL PROTECTED] wrote: IMHO (with the broken datepicker tag that is being reworked for 2.1) this is THE big issue with Struts 2.0.x. At least this is mine. Ya know...I cannot believe that people categorize the datepicker 'issue' as a 'big issue'. I mean...it's a

Re: [S2] Ajax validation

2007-06-19 Thread Dave Newton
Never mind :/ During editing the form's ajax theme got deleted and I didn't notice. Actually leads to another problem regarding a form with validation errors that updates a different div on success, though, but that's a new topic :) d. --- Dave Newton [EMAIL PROTECTED] wrote: Hi, If I'm

Re: [S2] Ajax validation

2007-06-19 Thread Musachy Barroso
By the way, remember there is a javascript validation (validate=true on form), and an ajax validation (DWR on 2.0, and interceptor+dojo on 2.1), if that is not confusing enough, you can used them together :) regards musachy On 6/19/07, Dave Newton [EMAIL PROTECTED] wrote: Never mind :/

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Matt Filion
Without knowing much more about your application I dont know if we are going to be of much more help. Especially since most people here already have struts 2 apps running and dont have this issue. I have a couple of resources that might help you though while you dig through this issue. You can

Re: Spring-webflow exception

2007-06-19 Thread Rikard
Thanks Ian for the quick response. Now i can continue explore the spring-webflow plugin! :) Ian Roughley wrote: The source is available from the project site on google code. I haven't seen this error before, but I imagine it is a XML config issue. /Ian Rikard wrote: Hi im trying

Re: Spring-webflow exception

2007-06-19 Thread Ian Roughley
Let me know how it goes. I've worked with it a little, but had to drop the integration due to time constraints. /Ian Rikard wrote: Thanks Ian for the quick response. Now i can continue explore the spring-webflow plugin! :) Ian Roughley wrote: The source is available from the project

Re: [S2] Validation, actionerrors, actionmessages and redirect

2007-06-19 Thread Guillaume Carré
2007/6/19, Jeff Amiel [EMAIL PROTECTED]: Ya know...I cannot believe that people categorize the datepicker 'issue' as a 'big issue'. when I loose several hours trying to make a, as you say, small 'nice to have' component, work, in a GA struts version, I call it a big issue (and it's not

Spring Action Instantiation

2007-06-19 Thread stanlick
It appears as though I am not getting a new Action instance created for each req -- Scott [EMAIL PROTECTED]

Spring Action Instantiation

2007-06-19 Thread stanlick
It appears as though I am not getting a new Action instance created for each request! I have placed a logging statement in the constructor of my Action class and it is not emitting output. The Bean inside the Action *is* emitting log statements from its constructor so I must have the Spring

Re: Spring Action Instantiation

2007-06-19 Thread Adam Ruggles
Are you specifying the entire class name in the action mapping definition instead of using the spring bean id? [EMAIL PROTECTED] wrote: It appears as though I am not getting a new Action instance created for each request! I have placed a logging statement in the constructor of my Action

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Pierre Goupil
Hello ! You were talking about the DisplayTag library. It looks great for what I presently need : to export my JSPs as Office files. But still three questions remain : - only being able to export my Excel data on a table-per-table basis looks maybe a bit poor to me : the pages I want to export

Documentation added to Wiki

2007-06-19 Thread Zarar Siddiqi
I've just added a few links to the Wiki that show how to deal with some common issues when using Struts. Unit Testing http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ Validation http://arsenalist.com/2007/05/10/struts-2-validation-using-annotations/ Zero

RE: Struts1 and 2

2007-06-19 Thread Jason Wyatt
The j4 jars worked, but we hit a slowness problem. I backported about a dozen jars to 1.4 to get our app working on Oracle AS 10.1.2 with JDK 1.4. Our app ran very responsively on my PC (3GHz dual core pentium with XP) with Tomcat 5.5 JDK 5, but ran like a wet weekend on our development Solaris

[s2] Case-insensitive request parameter binding

2007-06-19 Thread Bruyn, Bill-p6141c
Apologies in advance if this somehow gets posted twice - I sent the first message from another account, which is not subscribed to the list. I don't suppose it should go through, but it hasn't bounced either... Anyway, I have a requirement that reads, parameter names shall not be case sensitive,

Re: [s2] Case-insensitive request parameter binding

2007-06-19 Thread Jeromy Evans
Bruyn, Bill-p6141c wrote: Or maybe I could replace the ParametersInterceptor with one that used reflection to figure out which property to set, ignoring case. Do either of those options seem right to anyone else? Something like //for each request parameter //for each getter method on

Re: Spring Action Instantiation

2007-06-19 Thread Zarar Siddiqi
It sounds to me like your Action class might be configured as a singleton. If that's the case the action class' constructor would only be called once on startup. Make sure you have singleton=false in your Spring config for the action class. The default value for singleton is true. stanlick

RE: [s2] Case-insensitive request parameter binding

2007-06-19 Thread Bruyn, Bill-p6141c
Yeah, that's about what I'd come up with too (unless I'm misunderstanding you, this sounds like my option 1.) That'll work I guess, but I was hoping not to have to muck up all my method names (e.g., getWhatwouldordinarilybeacamelcasename(), getWHATWOULDORDINARILYBEACAMELCASENAME()) if there's

Re: [s2] Case-insensitive request parameter binding

2007-06-19 Thread Jeromy Evans
Bruyn, Bill-p6141c wrote: Yeah, that's about what I'd come up with too (unless I'm misunderstanding you, this sounds like my option 1.) That'll work I guess, but I was hoping not to have to muck up all my method names (e.g., getWhatwouldordinarilybeacamelcasename(),

Re: [S2] Best way to catch specific exception at any point?

2007-06-19 Thread yitzle
Either of those two should solve my problem. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AJAX and Struts2

2007-06-19 Thread yitzle
I may be quite wrong, but I would suggest first learning and becoming somewhat familiar with AJAX independent of Struts before you try to mix the two... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Oguz Kologlu
You may want to have a look at using a bit better profiler that can tell you what is instantiating the freemarker classes. I've noticed Code Gear (ex Borland) have released a free version of JBuilder with OptimizeIt built in: Have a look at

problem with showing ActionMessages

2007-06-19 Thread Aleksandar Matijaca
Hi there, I am having some really stupid issues -- I am using Struts 1.2, and I have an action that does the following: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionMessages

Struts2 limitations with DOJO

2007-06-19 Thread tom tom
Hi, Can someone let us know the limitations of using DOJO library with S2 provided AJAX features. What exactly these limitations are? Any references or articles would be advantageous. Thanks, Lalitha

Re: problem with showing ActionMessages

2007-06-19 Thread Jeff Amiel
On 6/19/07, Aleksandar Matijaca [EMAIL PROTECTED] wrote: All resources keys are available etc... The code looks rightare you sure that the key invalid.login is available? I'm pretty sure that the results would be as you see if it was not. Try bean:message key=invalid.login/ somewhere