Hi Pankaj,
This is the code I use when I need to get a resource string in an Action:
String text = getResources(request).getMessage(getLocale(request),
"messages.deleteFailed");
HTH,
Frank
Pankaj Gupta wrote:
Hi,
Can anyone please suggest how can I access
ApplicationResources.properties f
Hi,
Can anyone please suggest how can I access
ApplicationResources.properties from my Action class. Specifically I
want to read the labels for my LabelValueBean object from the
application resources.
regards,
Pankaj
-
T
The issue was not using the same code base, not a better apple. The issue
was substituting a code base which was foreign to the very conceptual
foundation of Struts, substituting an orange for an apple. But, you
probably knew this.
Struts needs to do a major shift. I think "lip service" is not
Don Brown wrote:
Technically, that isn't correct - PlugIn's are initialized once per
module, which may or may not be once per application.
Yes, good point, once per module, right.
But "may or may not be once per application"? This part I'm not as sure
about. The plugins, if memory serves. a
At this point I'd have to say I have no plans to migrate any apps... the
shop I'm in is pretty conservative, as evidenced by the fact that we're
still on 1.2.4 (although I snuck a 1.3 into QA a few weeks ago).
I think it was Ted who said he thinks most people don't migrate apps
upward in terms
On 6/12/06, Ted Husted <[EMAIL PROTECTED]> wrote:
And, if we are creating a SAF1 emulator, why not just use SAF1? Let
SAF1 handles the *.dos, and let SAF2 handle the *.actions.
Having two frameworks to keep track of instead of one, each with their own
idiosyncracies and release trains, is not
From the start, we have made it a priority to allow Struts Action 1
and 2 applications to exist side-by-side, and in fact, we will
probably end up shipping Struts Action 1 jars to make 2 a
one-stop-shop.
What I'm wondering if there are people that will be wanting to migrate
an existing applicati
Technically, that isn't correct - PlugIn's are initialized once per
module, which may or may not be once per application.
As for upgrading, I think converting a PlugIn to a context listener
would be pretty easy, so what I'm thinking would be better targets of
our work would be letting people use
You raise a good point... is it possible to run both in the same
context? I can't think of any reason why not, but then that changes the
overall concept, doesn't it? If you can do that, is there any reason to
even think about supporting most SAF1 concepts? (with a few exceptions
of course, th
All of those things fire per-request though, a plugin fires only at app
startup (and of course if ActionServlet is restarted by the container,
but I think that's pretty rare). I think plugins are a different use
case entirely, aren't they?
I suppose we could recommend people use ContextListe
On 6/12/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
* Unknown - I'm not seeing the ability to mark an action as mapping to
unknown paths like you can in SAF1... am I just missing it?
Yes, you can set a default-action in the configuration to use when
nothing else matches.
-Ted.
--
On 6/12/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
* Plug-ins... does SAF2 have an analogy for the Struts plug-in
mechanism? If not, this should be looked at (it doesn't strike me as
too tough if it has to be developed).
Depending on the use case, you'd either use an interceptor, depende
On 6/12/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
* HTML tag libraries - unless I'm mistaken, most, if not all of them,
should work if an ActionForm is emulated and placed in scope... do any
of them use anything else?
Yep. One tag or other other uses everything, and everything has to be
At 5:18 PM -0400 6/12/06, Ted Husted wrote:
In the field, it seems like that once a Struts application hits
production, it continues to use the same version. A new application
might use 1.2, but the old ones continue to plug along on 1.1. If it
ain't broke, why fix it?
This is definitely not tr
Some random thoughts, all of which could be way wrong :) ...
* ActionForms - What makes an ActionForm different than a SAF2 Action?
The validate() method, and the reset() method, primarily. I propose
creating a StrutsActionFormAware marker interface... when an Action
implements it, reset() an
Ok, good, that is what I am looking for: what part of your Struts app
would you want to not touch if you could help it in a migration?
I agree with Ted that migrating the best of Struts Action 1 is great,
but I think there is also a need to not require an application
migration to change everythin
How little do I have to change my JSP!
.V
6. HTML tag libraries
7. Other (please explain)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 6/12/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
There are also the cases where an existing app is going to be substantially
re-implemented, and the natural question will be whether or not to upgrade
the underlying framework to take advantage of new features. If SAF2 doesn't
even pay lip
On 6/12/06, Don Brown <[EMAIL PROTECTED]> wrote:
On 6/12/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> On 6/12/06, Don Brown <[EMAIL PROTECTED]> wrote:
> > Please let us know your thoughts so we can focus on developing tools
> > to make migration as easy as possible. Thanks,
>
> My first thought
On 6/13/06, Ted Husted <[EMAIL PROTECTED]> wrote:
On 6/12/06, Don Brown <[EMAIL PROTECTED]> wrote:
> Please let us know your thoughts so we can focus on developing tools
> to make migration as easy as possible. Thanks,
My first thought would be how would migrating one part without the
others w
On 6/12/06, Adam Brod <[EMAIL PROTECTED]> wrote:
Hi-
I want to define a managed property in an abstract base class using
shale-tiger annotations. Then the subclasses can use the same property.
You're trying to use @Property on the abstract base class, right?
Is this possible? So far, it d
On 6/12/06, Ted Husted <[EMAIL PROTECTED]> wrote:
On 6/12/06, Don Brown <[EMAIL PROTECTED]> wrote:
> Please let us know your thoughts so we can focus on developing tools
> to make migration as easy as possible. Thanks,
My first thought would be how would migrating one part without the
others wo
Hi-
I want to define a managed property in an abstract base class using
shale-tiger annotations. Then the subclasses can use the same property.
Is this possible? So far, it doesn't seem to work. Jpa allows for mapped
superclasses that are abstract, so the same thing would be great in JSF as
Hi Richard,
I tried this and it still doesnt work..here is a snippet from my jsp..
Not sure why this wont work..!!
<%@ include file="/taglibs.jsp"%>
Thanks for the response.
It is websphere 6 and I did play with classloaders to fix this. Both the
working and non-working machines are set to "Parent first" at server
level, application level and module level.
Any help is greatly appreciated.
Thanks,
Chandra.
-Original Message-
From:
On 6/12/06, Don Brown <[EMAIL PROTECTED]> wrote:
Please let us know your thoughts so we can focus on developing tools
to make migration as easy as possible. Thanks,
My first thought would be how would migrating one part without the
others would serve any practical purpose?
My second thought w
It appears your classloader is picking up the wrong jar. If this is
websphere 6, it comes with a jdom.jar that has given us problems similar
to yours. Attempt to use the parent-first parent last setting; match
with your working environment. It should be under the server(or node)
properties. If this
2.
1.
4.
5.
6.
3.
regards
leon
On 6/12/06, Don Brown <[EMAIL PROTECTED]> wrote:
As we approach the topic of migration for Struts Action 1 applications
to Struts Action 2, I want to find out what we should focus on first.
You are able to run both frameworks side-by-side, but for the
developers t
I am getting the following error during run time (ERROR Stack during
Runtime) when I invoke the Login.do. Please find the error stack down
below. I tried to put some debug statements and what I found was "module
config" is coming "null". I tried the same exact ear on a different
machine and it work
Try putting this in your of your jsp
-Richard
-Original Message-
From: Rizwan Merchant [mailto:[EMAIL PROTECTED]
Sent: Monday, June 12, 2006 1:34 PM
To: Struts Users Mailing List
Subject: Re: Page does not refresh after action
Hi,
I tried setting the response headers in the actio
Hi,
I tried setting the response headers in the action before forwarding to
the appropriate jsp page...but the pages are still cached for some
reason...here is what i did..please can you tell me what I am doing wrong.
Thanks.
In the action method...
request.setAttribute("orders", order
As we approach the topic of migration for Struts Action 1 applications
to Struts Action 2, I want to find out what we should focus on first.
You are able to run both frameworks side-by-side, but for the
developers that want to migrate a Struts 1.x application to Action 2,
what aspect of a Struts A
Are you sure that the version of the code that you are using is consistent with
the version of the Struts version that you are using?
If the signature for the validator-rules methods has changed since the example
that was provided, then it's not going to call those methods. You should be
see
pts to use
Maven2 instead. When completed, it will be *much* easier to build Shale, or
applications based on Shale.
However, in the mean time, I'm pleased to announce that creation of nightly
builds for Shale have been restored. You can get the 20060612 version from:
http://people.ap
Rizwan Merchant wrote:
Hi Manoj,
Thanks for the response.
This happens with both FF and IE.
I am not sure I understand your question "Also where are u persisting
the order (session db ..where)that you change in the action that is
not reflected in the forwarded page".
When I click on the ca
I did check the errata and downlod the code from his website, but it does not
work, I sent email to James, but still waiting.
thanks
David Friedman <[EMAIL PROTECTED]> wrote:
Have you checked the author's website, the errata (mistakes lists) and/or
downloaded their updated example code and tr
Do the pages have the same URL? Set "no-cache" response header either
individually for that page, or globally for a whole Struts application
using .
On 6/9/06, Rizwan Merchant <[EMAIL PROTECTED]> wrote:
Hi,
I have a page with a bunch of orders, and each order has a "Cancel"
button next to it an
On 6/12/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 6/12/06, Ian.Priest <[EMAIL PROTECTED]> wrote:
> Has the shale download site gone down? I can't see any directories under
> http://cvs.apache.org/builds/struts/nightly/struts-shale/...
Sorry for the inconvenience, but we're in the process o
Hi Manoj,
Thanks for the response.
This happens with both FF and IE.
I am not sure I understand your question "Also where are u persisting
the order (session db ..where)that you change in the action that is not
reflected in the forwarded page".
When I click on the cancel button, the page rel
Have you checked the author's website, the errata (mistakes lists) and/or
downloaded their updated example code and tried that?I always do that
because typos sneak in every time. See:
http://www.jamesholmes.com/StrutsTCR/
Code examples are downloadable at:
http://www.jamesholmes.com/StrutsTC
Hi,
I bought the book "Struts The Complete Reference", trying to learn validator,
but when I tried the code it does not work, I don't know what's missing in that
code,
when I type a bad social security number , I always get :
No Employees Found.
__
Hi,
I take it this is running in production, hence the reason you don't know
where/when it's happening? I *was* going to suggest this:
http://wiki.apache.org/struts/StrutsLogging
It activates a *boatload* of logging, and it does tend to help you find
problems like this. But, I would defintely
Hi..
Please forgive me if this isn't the right mailinglist for Tiles.
I'm trying a little hack using recursive putLists and items..
It looks like this
http://www.vg.no"/>
And in my JSP file I have something that looks like ( Warning, Spring code )
:
// Output
One way to do is to use lookupdispatch action where each button is
assigned it's own method in action class.
Do a google search on it or If ya have any books on struts, lookup this
action.
Another way to do it is to have a hidden variable set when a user clicks
a button. This gets set in the form
On 6/12/06, Ian.Priest <[EMAIL PROTECTED]> wrote:
Has the shale download site gone down? I can't see any directories under
http://cvs.apache.org/builds/struts/nightly/struts-shale/...
Sorry for the inconvenience, but we're in the process of converting to
Maven 2 and nightly builds should be ba
Has the shale download site gone down? I can't see any directories under
http://cvs.apache.org/builds/struts/nightly/struts-shale/...
All,
I have 4 buttons in a jsp.
The four should do four different things, with 2 being Submit and Cancel. Is
it a good way to write 3 different action classes or just one action class ?
Which is a good approach ?
Thanks
__
Do You
Hello,
In my stdout, I find the following warning :
2006-06-12 14:16:28,095 [http-8080-Processor24] WARN
org.apache.struts.action.ActionMapping - Unable to find 'Success' forward.
2006-06-12 14:16:28,095 [http-8080-Processor24] WARN
org.apache.struts.action.ActionMapping - Unable to find 'Suc
+1
using login fileter is a good way. This would be transparent and headach
free too. Your Struts would not have to know about this application
security. everything will be transparently handled by the filter.
Again check for some session attributs (eg, user name), if it is null, use a
global for
you can create a servlet filter.
i have used a custom tag to be there in each .jsp that checks the session
attribute. another way of doing is to use the template pattern, that is
create a base action whose execute method checks the session attribute and
calls the executeImpl abstract method, t
Hi,
Create a subclass of the request processor and override either the
processRoles() or the processPreprocess() methods. You can check if the
session attribute exists here and you won't need to duplicate code in
each action.
Gareth
Abhimanyu Koul wrote:
but the problem with that approach
but the problem with that approach would be that i would have to write same
code for every action or call the same method for each action. i want that
it should be automatically done for each action at the requestprocessor
level so that every developer doesn't have to worry about it. ?
Regards,
A
Nikita,
You need to change this:
action="/ListAction.do" >
to this:
Then in your action, access the parameters using
request.getParameter(String name) method with "var1", "var2", and "var3"
as the values for name.
-Richard
Nikita Desai wrote:
Hi,
I have one problem regarding how to ret
If you have some session attributes in your application, then it is very
easy to do so. Whenever a user directly tries to access any action, first
try to get that session attribute. If it is null, redirect to login page.
-Original Message-
From: Abhimanyu Koul [mailto:[EMAIL PROTECTED]
hi,
You could use a login filter. Have the filter check if they are logged
in via a session attribute. If the person is logged, then fine.
Otherwise redirect to the login page. On logging in you set the
session attribute. Now just set the web.xml so that everything has to
go through the login fil
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
sorry for this ot post, but i believe some body of you had this before.
does somebody know a taglib which renders a small calendar?
Something like this:
http://www.servletsuite.com/servlets/caltag.htm
in open source would be great.
regards,
chr
hi all!
i want to use session validation in my application. no user should be allowed
to view any page without logging in. if any user say copies the action from the
properties window into the address bar of the browser, he should be directed to
the login page. no error message should be shown n
Rudolf Lang ha scritto:
The next is, how can I get the actual tilesDefintion in the locale.jsp
(perhaps by jstl and EL)
or in the LocaleAction.java ?
Do you mean that you want to get the definition the file "locale.jsp" is
in? If yes I think it is better to start a new thread, because I don't
On 6/9/06, Shoukat, Faisal <[EMAIL PROTECTED]> wrote:
Is there a way to check if the date is a valid date in the validator
framework. If I enter a invalid date such as 67/06/2006 it returns me the
error message Created Date is not a valid date format (dd/mm/).
Which is the error.date in my
Hi Nikita,
Here is some code snippet which will help you.
java.util.Map paramMap = new java.util.HashMap();
paramMap.put("id",id);
paramMap.put("locationId",locationId);
pageCo
Hi,
I have one problem regarding how to retrieve value of hashmap parameter
action action of struts.
In jsp page I have code like this
<%
java.util.HashMap params = new java.util.HashMap();
params.put("var1","1");
params.put("var2","10");
params.put("var3","1");
request.setAttr
61 matches
Mail list logo