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
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
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
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:
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.
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
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
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
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
--- 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.
--- 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
--- [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
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
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
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
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
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.
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
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
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
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
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;
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
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
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]
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 +
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);
--- 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
--- 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.
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
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
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
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?
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
--- 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
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
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
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
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
--- 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
What is the best way to learn AJAX and struts 2 development? Is there any
good article ? I have just started learning AJAX.
Leena
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
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 -
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
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
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
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
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 :/
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
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
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
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
It appears as though I am not getting a new Action instance created for each
req
--
Scott
[EMAIL PROTECTED]
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
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
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
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
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
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,
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
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
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
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(),
Either of those two should solve my problem.
Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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,
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
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
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
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
69 matches
Mail list logo