Thanks for the reply,
That's possible but it implies that my action knows which exceptions can
be raised from the business layer. I was thinking of a generic way to
do that.
In Struts 1, it was possible to link an exception to a key of the
application.properties file:
global-exceptions
exception
Thanks also for the answer,
I'm using Velocity so no problem with the null values.
And yes that's a way to manage exceptions, but I as said in my previous
post, I was looking for something more generic, without specific code in
all my actions.
I'm still searching for a more generic solution
--- Sekhar, Raja [EMAIL PROTECTED] wrote:
The above three derive of CalculatorActionSupport,
where they support create, read, update and price actions ( CRUP )
This flexibility in struts2 allows me to use the power OOP on server
side action methods.
Struts1 cannot do the same.
We may
I don't know how to do this but a generic solution sounds desirable (and
technically feasible if I was more familiar with the S2 architecture).
Are you asking for a struts2 solution to catch a business exception, put it in
the errors collection and choose the 'input' result?
Presumably you
Ray on 18/12/07 02:32, wrote:
How can I pass parameters between actions.
For example, there is a parameter username in firstAction, and I want
to use this value in secondAction
How can I get the username value in the secondAction
There are many ways. It depends heavily whether your 2
Yes that's what I'm looking for.
If this is possible, the way to manage a new Exception is very simple:
1) Create the new exception class (it must extends RuntimeException)
2) Add the associated message in the ApplicationResources.properties
3) Somewhere in the struts.xml, add a link between the
At this point, I'd suggest that we are all just preaching to the choir :)
S1 and S2 are similar, and anything we can do with S2 we can do with
S1. But the elegant, flexible S2 design makes many things a lot easier
to do.
It's great that S2 is working well for you, Raja, and I hope you'll
post
Adam Hardy 写道:
Ray on 18/12/07 02:32, wrote:
How can I pass parameters between actions.
For example, there is a parameter username in firstAction, and I
want to use this value in secondAction
How can I get the username value in the secondAction
There are many ways. It depends heavily
I really appreciate the feedback from everyone that responded, you
really helped get me looking in the right direction. Our problem is
pretty much solved at this point, and it looks like it was essentially
not having a favicon.ico file (used as the little icon for
bookmarks/favorites).
I ended
When a workflow automatically opens and closes a transaction, so that
it can cover multiple operations, and something goes wrong during the
course of the transaction, then we need to rollback the transaction.
In the case of validation, sometimes changes are made to a property
which causes it to
On Dec 17, 2007 4:24 PM, Jeromy Evans [EMAIL PROTECTED] wrote:
Personally I think writing to attached entities from the view is a bad
idea precisely due to this issue (and exception handling, and others),
even though it's recommended practice on the struts2 wiki.
Where?
-T.
Hi,
That is ok,but i am using war deployment not ear architecture.
Actually I am not having any problem with default context assign by war
archive same as project name.
But once i am going to host my application with apache web server my web
master suggested to eliminate extra names from
Hello,
I´m building a web application using Struts 2.0.9. Till now, I have been
using only Firefox to check it works successfully and it was OK, but
now, when the development process is being finished I tried the
application in IE7 and no Ajax tag work!! Is it a bug?? Which is the
best way
Ted Husted wrote:
On Dec 17, 2007 4:24 PM, Jeromy Evans [EMAIL PROTECTED] wrote:
Personally I think writing to attached entities from the view is a bad
idea precisely due to this issue (and exception handling, and others),
even though it's recommended practice on the struts2 wiki.
Pablo Vázquez Blázquez wrote:
Hello,
I´m building a web application using Struts 2.0.9. Till now, I have
been using only Firefox to check it works successfully and it was OK,
but now, when the development process is being finished I tried the
application in IE7 and no Ajax tag work!! Is it a
Thanks to all for your answers. I completely missed that thread (Adam).
I'll try it today.
Alberto
Adam Hardy wrote:
Alberto A. Flores on 17/12/07 21:06, wrote:
Is it possible to redirect the input result (after validation has
finished) of an action mapping properly?
I currently have
Hi,
we have a fairly tricky question. We have a Struts 1 application which is
very big. We do not have the time to migrate it all to Struts 2 so we want
to do it step by step. We run into a situation in which we want to have a
Struts 1 Action class forward to a Struts 2 action. Is this possible
Filipe,
Funny, I was looking for the same information. Here's the Spring
configuration I'm moving forward with to use the Oracle connection pooling:
!-- Database connection using the Oracle connection pool --
bean id=dataSource class=oracle.jdbc.pool.OracleConnectionCacheImpl
property
Ray
This error of string returning String[] was resolved for Struts 2.0.8
https://issues.apache.org/struts/browse/WW-1714
Let us know if an upgrade to 2.0.8 fixes this
Thanks/
M--
- Original Message -
From: Ray [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent:
--- Martin Gainty [EMAIL PROTECTED] wrote:
This error of string returning String[] was resolved for Struts 2.0.8
https://issues.apache.org/struts/browse/WW-1714
Let us know if an upgrade to 2.0.8 fixes this
The resolution was to lower the log level to DEBUG (rather than WARN); no
behavior was
Thank you too, without your help i could have been debugging the
applications for weeks.
Very Appreciated...
Andrea
Dave Mills wrote:
I really appreciate the feedback from everyone that responded, you
really helped get me looking in the right direction. Our problem is
pretty much solved at
Glad you found the solution to the problem. This is a humorous look at
favicon that I got from a co-worker.
The Book of Favicon
Chapter One
1 Now in those days, a Decree did go
down from Caesar Romero that all
servers should be subject to registration
and the taxation thereof.
2 So a great
First all, thank you for your reply.
I´m giving you an example:
I have the following jspx:
** CODE ***
jsp:root xmlns=http://www.w3.org/1999/xhtml;
xmlns:jsp=http://java.sun.com/JSP/Page;
xmlns:fmt=http://java.sun.com/jsp/jstl/fmt;
I'm trying to get all the details of the checkbox straight. It works fine
if I simply map it to a boolean property on the JAva side, AND only use the
checkbox as a checked equals true component. The interface to the tag
seems to suggest that you could also use the checkbox as a checked equals
The S1 action can be mapped to a S2-url. This is a redirect, not a forward.
Something like this:
action path=/BookACruise
type=SomeS1ActionClass
forward name=success path=/someS2Action.action /
/action
Or
Well I have solved it by setting the attribute showLoadingText=false.
Now my app works OK in FF and IE{6,7}
Pablo Vázquez Blázquez escribió:
First all, thank you for your reply.
I´m giving you an example:
I have the following jspx:
** CODE ***
jsp:root
The Manning book is available in early release form. It seems very well
explained and good for learning the system, especially for a newbie. I like
it it.
On Dec 13, 2007 8:18 AM, bhaarat Sharma [EMAIL PROTECTED] wrote:
I am new to struts2 as well and had no prior knowledge of Struts1.
I want to enter the date and the hour into the same input field: the
date with only the datepicker, and the hour directly into the same input
field.
For example:
By default the field is empty
[ ]
Select a date with the DatePicker:
[ 18/12/07 12:00 AM ] (12:00 AM by
Hi all,
I have a French bundle with this key/value inside:
button.close=Fermer la fenêtre
In a JSP, s:property value=getText('button.close')/ outputs Fermer la
fenêtre. The letter ê is not rendered properly. I use Eclipse and UTF-8
for properties file encoding.
I guess something is wrong with
you need to do a native2ascii on your application resources and then it
will work. We had same problem with our application.
*Radu Solomon*
/Software Developer/
N-able Technologies®
450 March Road, 4th Floor
Ottawa, Ontario
K2K 3K2
www.n-able.com http://www.n-able.com/
[EMAIL PROTECTED]
Hi,
DateTimePicker with the time calendar not initializing the time passed to it.
It always initializes to 12:00 AM no matter what time is passed to it.
Looks like a struts bug to me. I am using 2.0.11. Does anyone has seen similar
problem? Any workaround?
Thanks,
-Akash
Hi,
Which are the options to use Dojo 1.0 with S2? Using 2.1.x will be enough?
Alvaro.
--
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect Instructor
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
This should be a new thread perhaps.
But I suspect that latin-1 has been used somewhere in your chain; UTF-8
disagrees with Latin -1 about the special european characters.
On Dec 18, 2007 11:06 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi all,
I have a French bundle with this key/value
Thanks Radu.
You mean all values of keys need translating using native2ascii. If yes, the
properties files will not be readable. Can you please clarify that?
Thanks again.
On Dec 18, 2007 1:08 PM, Radu Solomon [EMAIL PROTECTED] wrote:
you need to do a native2ascii on your application
--- Alvaro Sanchez-Mariscal [EMAIL PROTECTED] wrote:
Which are the options to use Dojo 1.0 with S2? Using 2.1.x will be enough?
AFAIK, yes.
I have a converted S2.1 plugin that *should* work with S2.0, but I'm wary of
releasing it to the general public because I really have no intention of
What we did was to run the native2ascii during the build/compilation
time using ant. Our ant task looks something like this:
!-- Native2Ascii Task --
target name=convert_native_encodings depends=all
delete dir=${resourcesDist}/
mkdir dir=${resourcesDist}/
Struts 2.1 uses dojo 0.4.3 :( ...
Why don´t you support for struts 2.1 ??
Herrera
newton.dave wrote:
--- Alvaro Sanchez-Mariscal [EMAIL PROTECTED] wrote:
Which are the options to use Dojo 1.0 with S2? Using 2.1.x will be
enough?
AFAIK, yes.
I have a converted S2.1 plugin that
Thank you everyone for all your input.
I'm currently opting for changing my code (luckily is not that much) to
never maintained a persistent object within the ValueStack, but rather
a transient object. Of course, this is an additional overhead (have to
copy the object, query, etc, etc), but I
Martin Gainty wrote:
good call dale!
http://freemarker.org/docs/ref_builtins_expert.html
implementing has_content will definitely detect no content condition
Rather than detecting no content, what we really want to do is insure
that there is valid content. (The previous patch detected this
Hi all,
I need to build a path to an image file in a JSP based on the value passed
to the JSP's action, either using an English button from context
path/*en*/closeBtn.gif
or using a French button from context path/*fr*/closeBtn.gif. Suppose the
parameter is called lang so the URL is like*
Thanks! :)
By the way, I have bad news...
The OracleConnectionCachingImpl class is actually deprecated. Use
OracleConnectionCacheManager with OracleDataSource instead.
Take a look at:
oracle JDBC reference:
http://download-west.oracle.com/docs/cd/B12037_01/java.101/b10979/toc.htm
oracle JDBC
Hi everyone,
Is it legal to define a EL variable to hold ${lei}s:property value=lang
/?
Thanks.
On Dec 18, 2007 4:23 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi all,
I need to build a path to an image file in a JSP based on the value passed
to the JSP's action, either using an
take a look at this example
[EMAIL PROTECTED] prefix=s uri=/struts-tags %
div style=background-color:yellow;
p
JSP Custom Template -
parameter 'paramName' - s:property value=%{paramName} /
/p
/div
reference any parameter using OGNL ..this will help..
http://struts.apache.org/2.x/docs/ognl.html
I try to use the following
html:submit html:img / /html:submit
or
html:submit img src= /html:submit
but image can not be displayed, but why?
any expert give the tip?
tks
john
-
Be a better friend, newshound,
s:datetimepicker label=US format with initial date of 2006-06-26 and long
formatting (parse not supported) name=dddp12
formatLength=long
language=en-us /
change language to null and specify value..
s:datetimepicker label=US format with initial date of 2006-06-26 and long
formatting (parse not
--- Pedro Herrera [EMAIL PROTECTED] wrote:
Struts 2.1 uses dojo 0.4.3 :( ...
Hmm, that appears to be correct; I thought it had been updated. My mistake.
Why don´t you support for struts 2.1 ??
The only thing my plugin does is takes the S2.1 Dojo plugin and makes it
usable under S2.0, as
change to
%@ taglib prefix=s uri=/struts-tags %
s:submit type=image src= value=Submit/
http://struts.apache.org/2.0.11/docs/submit.html
M--
- Original Message -
From: john lee [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Tuesday, December 18, 2007 6:29 PM
Subject: html:submit
There's a brief page with some links regarding Hibernate integration
*
http://struts.apache.org/2.x/docs/does-the-framework-integrate-with-hibernate.html
which may have been it.
-Ted.
On Dec 18, 2007 6:43 AM, Jeromy Evans [EMAIL PROTECTED] wrote:
Ted Husted wrote:
On Dec 17, 2007 4:24
Ok, so provided there is not an official way to use Dojo 1.0...
Dave, are you willing to contribute your code?
Alvaro.
On Dec 19, 2007 12:46 AM, Dave Newton [EMAIL PROTECTED] wrote:
--- Pedro Herrera [EMAIL PROTECTED] wrote:
Struts 2.1 uses dojo 0.4.3 :( ...
Hmm, that appears to be
There's a wiki page with some examples of accessing Hibernate (or JPA)
from an Action or an Interceptor.
*
http://struts.apache.org/2.x/docs/does-the-framework-integrate-with-hibernate.html
The interceptor case could be improved in a couple of ways. One way
might be to only handle the
Jeremy JGR. Grumbach wrote:
Thanks also for the answer,
I'm using Velocity so no problem with the null values.
And yes that's a way to manage exceptions, but I as said in my previous
post, I was looking for something more generic, without specific code in
all my actions.
If you want a
Could anyone tell me where i can find the example for using file download
feature of Struts 1.x?
tks
john
-
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
I'm saying that my plugin uses whatever version of Dojo is included in the
S2.1 plugin--if it uses 0.4.3 then so does my S2.0 backport.
d.
--- Alvaro Sanchez-Mariscal [EMAIL PROTECTED] wrote:
Ok, so provided there is not an official way to use Dojo 1.0...
Dave, are you willing to contribute
This post is going to make a few assumptions:
1) You're using S2 and Spring
2) You're using Spring's OSIV filter (as opposed to Hibernate's)
3) You're using Spring's Hibernate DAO framework
4) You're using a Spring-configured transaction manager
5) You're declaring transaction boundaries and
Alvaro Sanchez-Mariscal wrote:
Ok, so provided there is not an official way to use Dojo 1.0...
Dave, are you willing to contribute your code?
Alvaro.
I just thought I'd make the obvious point there's no reason why you
can't use Dojo 1.0 with Struts2 already.
You can't use the current
Surely I can use Dojo 1.0 with theme=simple. But in that case, I
will not leverage Dojo Struts Tags in the server side.
What I would like is to use the s:* (or sx:*) tags rendered with Dojo
1.0. And in the cases where there is not a suitable tag, I will have
the chance to use raw Dojo.
Alvaro.
If you have a new query, please always use a new thread. as starting a new
topic in old thread will not help you a lot
On Dec 19, 2007 12:03 AM, Radu Solomon [EMAIL PROTECTED] wrote:
What we did was to run the native2ascii during the build/compilation time
using ant. Our ant task looks
Try this
In the form define a hidden field and set its value like
s:hidden name=startdatevalue=s:property
value=%{securityBean.startdate} /
theme=simple /
I could get the value of this field later by accessing using
document.getElementById( 'startdate' ) inside my javascripts.
Hi,
http://wiki.apache.org/struts/StrutsFileDownload
Thanks,
Nuwan
(http://code.google.com/p/struts2-ssl-plugin)
john lee wrote:
Could anyone tell me where i can find the example for using file download
feature of Struts 1.x?
tks
john
-
i am seeking the S2 2.1.x binary
anyone can share your binary
so i can use and test the feature
F
Hi,
I need to access certain url parameters and pass them on as the query string
to an iframe within the jsp
So, if the incoming url is :
http://localhost:9080/myapp/searchForm.action?mainObj.childObj=xyzabc=123
i need to pass to iframe as :
iframe
hi all
i am using JSON Plugins and RSS plugin in my S2Project
and we know there will be REST in S2 2.1
anyone can give me the glue
will S2 JSON Plugins retired and or part of RSS
and can give me the inptu also where will we implement JSON RPC in S2
will REST also have REST RPC?
Frans
Alvaro Sanchez-Mariscal wrote:
Surely I can use Dojo 1.0 with theme=simple. But in that case, I
will not leverage Dojo Struts Tags in the server side.
What I would like is to use the s:* (or sx:*) tags rendered with Dojo
1.0. And in the cases where there is not a suitable tag, I will have
the
My App is using ajax theme of struts2.0.9.
It takes more than 3 seconds to load Myserver/struts/ajax/dojoRequire.js
and Myserver/struts/dojo/dojo.js.
The JS files are served static and not served by struts filter.
Is there any way to improve the load time of dojo*.js ???
--
Yoge,
AdventNet,
64 matches
Mail list logo