Doh, my bad :-( I guess I was reading too fast (or with my eyes closed
perhaps?...) Re-reading what you're doing, I'd say this is either a bug
or a design limitation. It's probably worth a Jira ticket either way.
L.
billgloff wrote:
Laurie,
As you can see above in my sample code, I am
Brian Trzupek wrote:
s:if test=%{(#isAdmin == true) or (#isScanner == true)}
s:set name=isAdmin
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
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
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:
action
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
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 (
MapClass, Object)
I'd like to get an optional feature using :
Optional opt =
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
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=;
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
This is how I do it:
/* drugClassPropsSrv is my map */
s:if test=drugClassPropsSrvc.size 0
s:iterator value=%{drugClassPropsSrvc} id=prop
tr
th scope=rows:property value=#prop.key//th
s:if test=#prop.value eq 'Yes'
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
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 ... assuming
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
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
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
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
Hello,
In Struts old we used to do this in struts.xml:
!-- secure plugin --
plug-in className=org.apache.struts.action.SecurePlugIn
set-property property=enable value=true/
set-property property=addSession value=true/
/plug-in
What is the struts 2 way of securing your actions?
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
Hi Meissa,
Yep it is possible ... assuming you provide:
s:autocompleter name=someProperty/
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()
{
//
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
s:div id=treeAndSelector
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,
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
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 user@struts.apache.org
Sent: Friday, September 28, 2007 7:48 AM
Subject:
Hi Jennie,
I am fairly new to Struts 2 but you can certainly do action wildcard
mappings with it, such as:
action name=*
result/{1}.jsp/result
/action
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
It's been a while since I've used Struts 1.x but did you try using
c:set 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
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
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:
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 first
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=558805view=markup
They include stackand ognl.
Zarar
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 (s:text name=myKey
How do I accomplish this in FTL?
Thanks in Advance!
-
***Note:The information contained in this message may be
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
--- Hoying, Ken [EMAIL PROTECTED] wrote:
In JSP, I would use the text tag (s:text
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.
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:
In your struts.xml for the action mapping add the roles interceptor
as following.
struts
package name=email extends=default namespace=/email
default-interceptor-ref name=crudStack/
!-- Users --
action name=list class=com.xxx.NotificationEmailAction
method=list
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:
a href='s:url
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
...
interceptors
interceptor name=myForm
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 -
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:
!-- secure plugin --
plug-in className=org.apache.struts.action.SecurePlugIn
set-property
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
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
40 matches
Mail list logo