You're probably right, whenever the Action is created, it's
initialized. In struts 1, since the Actions didn't go away, any data
was retained. This was usually the source of many, many bugs. It's a
very rare condition when you want the data from one invocation of the
Action to carry forward to t
implementation: I have .jsp in which i have two text box and a Add button.
whenever i enter something in the two text box and click on Add button the
values needs to be added to the html table which is right down the entry
area with two text boxes. Whenver i Click on add i am calling a Action cla
Hi,
you can write your own interceptor., there was posting few months back
regarding this.
Thanks,
Nuwan
Mufaddal Khumri wrote:
Hello,
In Struts old we used to do this in struts.xml:
What is the struts 2 way of securing your actions? Is there a
predefined interceptor
Should smarturls 2.0.18 work with struts 2.1?
I get the following error:
Caused by: Unable to load bean:
type:org.texturemedia.smarturls.ResultMapBuilder
class:org.texturemedia.smarturls.DefaultResultMapBuilder - bean -
jar:file:/home/ps/devel/projects/cfmc/target/cfmc/WEB-INF/lib/smarturls-2.
Does anyone have a working example using the scopedModelDriven interceptor to
work for a session bean?
I've tried with the following:
1. define interceptor in struts.xml
...
session
myForm
complex tag nesting?
I'm pretty sure I remember someone asking this question before, but I
was unable to find it either in my archives or in nabble...
I basically want "includeParams" for a specific parameter, and I thought
I could do it just by conditionally including the parameter like so:
It doesn't work.
I
In your struts.xml for the action mapping add the roles interceptor
as following.
method="list">
/email/listemail.jsp
name="allowedRoles">Administrator,Role2,Role3,Role4
.
Yes, but how does solve this problem?
On 9/28/07, Zarar Siddiqi <[EMAIL PROTECTED]> wrote:
>
> Did you know you have all the variables declared in this class as
> public static final at your disposal:
>
>
> http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_9/core/src/main/java/org/apache
--- "Hoying, Ken" <[EMAIL PROTECTED]> wrote:
> In JSP, I would use the text tag ( name="myKey">
>
> How do I accomplish this in FTL?
Does <@s.text name="myKey"/> not work?
http://struts.apache.org/2.x/docs/freemarker.html
http://struts.apache.org/2.x/docs/freemarker-tags.html
d.
-
Can anyone assist with this?
-Original Message-
From: Givler, Eric [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 22, 2007 1:25 AM
To: user@struts.apache.org
Subject: [s1.35] Need help with Struts and Modules
Hello,
Let me just say that I'm struggling at times writing my first pro
I am new to FTL and need to access the my global properties from my
resource bundle.
In JSP, I would use the text tag (
How do I accomplish this in FTL?
Thanks in Advance!
-
***Note:The information contained in this message may be privileged
and confide
Thanks a lot.
Nico.
2007/9/28, Engelking, Nicholas <[EMAIL PROTECTED]>:
> Unfortunately, the short answer is that you can't.
>
> The compiler will yell at you about class literals for generics because in
> Java they are implemented using erasure. This is in contrast to C# (which is
> where I fir
I really recommend using something like Prototype to do your Ajax
stuff. There's no need to reinvent the wheel and introduce countless
bugs in the process, Prototype is tested for all relevant browsers and
it'll take you 10 minutes to do what you're trying to do if you use
it:
http://www.prototyp
Am I crazy or is Jennie using Struts 1.x and Mark just proposed a
solution for 2.x?
Jennie, your web.xml servler-mapping is overriding each other, you're
first saying you want /*/*.jsp sent to action but then you're saying
you want *.do's sent to action? I'm not too sure if that's valid.
Have you
Did you know you have all the variables declared in this class as
public static final at your disposal:
http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_9/core/src/main/java/org/apache/struts2/views/util/ContextUtil.java?revision=558805&view=markup
They include "stack"and "ognl".
Zara
It's been a while since I've used Struts 1.x but did you try using
to set a variable and them dump it in cssStyle using ${}
syntax? If not that, you could always add the CSS class to the input
field using JavaScript.
Zarar
On 9/28/07, prem_gadgetquest <[EMAIL PROTECTED]> wrote:
>
> I have lots
Unfortunately, the short answer is that you can't.
The compiler will yell at you about class literals for generics because in Java
they are implemented using erasure. This is in contrast to C# (which is where I
first learned how to use generics) and annoys many people to no end. It was
done to
Hello,
In Struts old we used to do this in struts.xml:
What is the struts 2 way of securing your actions? Is there a
predefined interceptor or packaged plugin I can use? Any pointers.
Thanks,
Mufaddal.
This is how I do it:
/* drugClassPropsSrv is my map */
On 9/28/07, Marco Carnevale
This was just fixed on trunk, see WW-2220. There will be a "keyValue"
attribute to set the initial value of the key. The "key" attribute is
something else, not related to the autocompleter's "key"
musachy
On 9/28/07, Giovanni Azua <[EMAIL PROTECTED]> wrote:
> Hi Meissa,
>
> Yep it is possible ...
I have lots of control (textbox, combobox n all.) in my page..what I want
is... when user logs in he shud be able to see contorls in editable
format or noneditable format depending upon his role.
Now in non struts ie. simple jsp page i wud hav done this way
String jsEdit="";
if(sCurrentU
How are you trying to download/build the beta? Maven?
What sort of problems are you having? Compile issues, deployment issues?
Did you try the nightly build?
If you are building from SVN using Maven, this might be helpful -
http://www.nabble.com/struts-2.1-beta-tf4509951.html#a12880737
-Wes
Hi Meissa,
Yep it is possible ... assuming you provide:
then include in the rendering Action associated to this JSP the
following two bean property getters:
// will provide the default display value that the user sees
public String
getSomeProperty()
{
// ...
}
// will provide the key corre
I'm trying to download and build a beta release.
I have lot of problems about that.
Maybe someone has tried successfully. If so, can someone put it somewhere
so that people (like me)
can share it.
Do we still have no date about a beta version upon 2.1
We have serious performance problems with th
I have a java.util.Map in my action (value stack) and I simply want to print
it's contents
in an HTML table in my JSP showing the key value pairs. However, I am having
an issue figuring out the proper syntax.
My initial approach is to iterate over the Maps keys and then during each
iteration, call
I would like set an initial value and key to the autocompleter with one of
the list elements.
can someone tells if it's possible.
Thanks.
Meissa
L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut
etre tenu responsable de son contenu. Toute utilisation ou diffusion no
Martin,
Our codebase is on 2.0.8 now (i know we need to upgrade asap) and we
need ti finalize some other work (our real jobs) before we can run
the regression tests (selenium, junit) against 2.0.9.
We will know the answer to the 2.0.9 question by Monday is my guess.
I will post when I hav
Hell, I give up! Can someone show me how to fetch the action context name
off the value stack from inside a jsp? This works fine from an action but
doesn't quite follow the java beans convention!
invocation.getStack().findString("com.opensymphony.xwork2.ActionContext.name
")
--
Scott
[EMAIL PR
Brian
Can you confirm this is a problem with Struts 2.0.9?
https://issues.apache.org/struts/browse/WW-2182
Thanks/
Martin--
- Original Message -
From: "Brian Trzupek" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, September 28, 2007 7:48 AM
Subject: Re: Slow Web Page,
Good idea.
I sprinkled this in the page and slowly narrowed down the culprit.
Drum roll please...
It was the head theme=ajax tag. There is another long thread in this
list on that topic entirely ( [s2] Struts head tag KILLS (> 10s) page
load time
), but the short solution to my problem wa
Thanks Brian --
I wanted it be automatic and work easily with Struts 2. After probing and
searching, I realized there was no such animal so I wrote a plug-in. This
was a testament to just how flexible the Struts 2 framework really is! I
wrote a Bread Crumb interceptor with only a few lines of c
Thank much Mark,
I talked with a colleague and we're going to give the urlrewrite a try.
Thanks!
-Original Message-
From: Mark McLaren [mailto:[EMAIL PROTECTED]
Sent: 28 September 2007 12:02
To: Struts Users Mailing List
Subject: Re: Mapping a jsp to an action
Hi Jennie,
I am fairly new
Hi Jennie,
I am fairly new to Struts 2 but you can certainly do action wildcard
mappings with it, such as:
/{1}.jsp
where foo.action would map to foo.jsp.
However, my guess is that what you are asking for is a little bit more
advanced (and judging by the "*.do" you are not using Struts 2).
Hi,
I'm trying to map a jsp page to an action. When any jsp gets loaded with
the recipe path on it I want it to go to an action.
for example:
This uri: recipes/4735/steak-with-barbecue-sauce.jsp
I want it to hit my
recipeDetails action
My struts action looks like this:
Hi,
I'm trying to map a jsp page to an action.
for example:
This uri: recipes/4735/steak-with-barbecue-sauce.jsp
I want it to hit my
recipeDetails action
My struts action looks like this:
This e-mail (and any attachments) is confidential and may contain
personal views which are not th
Thank you very much! It works!
Manu Mahajan escribió:
Hi
If you want to handle the before and after topics separately you can do
something like this. Note I am publishing a separate topic for the form
(submitForm) and then handling it using some javascript code
listenTopics=
Thanks a lot for those detailed examples !
I don't want to setup a factory, but to expose internals as optional features :
my class is a composite, with a map of "features", where the key is
the feature interface (
Map)
I'd like to get an optional feature using :
Optional opt = composite.get
Henry Park wrote:
I could not get the packaged struts2 ajax implementation to work, so I am
trying to go at it with plain javascript.
I have Struts2 ajax working fine.
What was the problem?
-
To unsubscribe, e-mail: [EMAIL
Brian Trzupek wrote:
value="[EMAIL PROTECTED]@getRequest().isUserInRole('Administrator')}"/>
Both of the above constructs should execute in no time.
I really think that there is something else that slows downs
your page load time.
You can always measure the time that your JSP page took
39 matches
Mail list logo