Good Evening John
i found this link helpful for explaining namespace and action resolution
http://struts.apache.org/2.0.14/docs/namespace-configuration.html
HTH
Martin Gainty
__
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / N
Sorry i was not very clear: when you configure your application to allow the
bang (!) notation, the client gets to choose *any* of the
public methods on your action and use them as action methods as opposed to you
listing what your action methods are explicitly.
So?the developer has to be cautiou
Hi Nikhil,
Thanks for the suggestion. I tried, but it is still not working. I am using
struts tags and instead of .
If my class structure was like the below one, then the values will be
updated without any problem when the form submitted. The problem comes when
I have two logic iterates(as shown
Are you including the interceptor in your interceptor-stack?
Stefano Tranquillini wrote:
>
> I'd try.
> i've use the @InjectEJB(name="..")
>
> but the variable is null
>
> tomorrow i take a better look.
>
> thanks.
>
> anyway, i can use the ejb2 jndi method, works and no contradiction (or
>
I'd try.
i've use the @InjectEJB(name="..")
but the variable is null
tomorrow i take a better look.
thanks.
anyway, i can use the ejb2 jndi method, works and no contradiction (or not?)
2009/4/14 Ignacio de Córdoba :
>
> Hi there...just google "struts2 ejb3 plugin"
>
> In the 2 first links you'
Bhaarat Sharma wrote:
Again, for reference here is the link for the sample application wiki:
http://struts.apache.org/2.0.14/docs/crud-demo-i.html
In this sample there is a page called employee.jsp where there is a link for
Edit. code is:
OK, makes perfect sense now. Thanks to both Dave and Jeroen for your
prompt replies!
--john
Dave Newton wrote:
john.c.cartwri...@noaa.gov wrote:
I'm trying to understand why the following does not produce a URL w/ the
requested parameter appended. Can someone please help me?
var url = "nam
I will definitely look into that.
I have another question regarding this same sample.
Again, for reference here is the link for the sample application wiki:
http://struts.apache.org/2.0.14/docs/crud-demo-i.html
In this sample there is a page called employee.jsp where there is a link for
Edit. co
john lee wrote:
Yes, i need to further do variable processing at scriptlet(jsp) page,
> the reason is to do different kind of summary etc...
but how? can i still use Context...same as i did in Struct 1.X's example?
You *could* put it in a scope (request, most likely) and retrieve it in
a sc
On Tuesday 14 April 2009 17:22:25 john lee wrote:
> Yes, i need to further do variable processing at scriptlet(jsp) page, the
> reason is to do different kind of summary etc...
> but how? can i still use Context...same as i did in Struct 1.X's example?
>
> tks
>
> john
>
There is a way to g
Yes, i need to further do variable processing at scriptlet(jsp) page, the
reason is to do different kind of summary etc...
but how? can i still use Context...same as i did in Struct 1.X's example?
tks
john
--- On Tue, 4/14/09, Dave Newton wrote:
From: Dave Newton
Subject: Re: referen
john.c.cartwri...@noaa.gov wrote:
I'm trying to understand why the following does not produce a URL w/ the
requested parameter appended. Can someone please help me?
var url = "namespace="/secure/json">";
//produces '/scufn/secure/json/ListFeatures.action'
You probably don't have an action pr
i know
for further processing as the demo i show that i did in struts 1.X
john
--- On Tue, 4/14/09, Security Management wrote:
From: Security Management
Subject: RE: reference variable in struts 1 and 2
To: "'Struts Users Mailing List'"
Date: Tuesday, April 14, 2009, 4:02 PM
http://
It's evaluating "ALL" as an OGNL expression, not a string literal. Use
either
name="status">ALL
or
name="status" value="'ALL'" />
(notice the extra single quotes in the second one).
Hello All,
I'm trying to understand why the following does not produce a URL w/ the
requested parameter ap
Security Management wrote:
http://struts.apache.org/2.1.6/docs/set.html
AFAIK that doesn't make the variable available to scriptlets, which
would be the equivalent of the OP's example.
That said, @John, I'd question the need and/or wisdom of performing that
kind of computation on the JSP pa
Hello All,
I'm trying to understand why the following does not produce a URL w/ the
requested parameter appended. Can someone please help me?
var url = "";
//produces '/scufn/secure/json/ListFeatures.action'
Thanks!
--john
http://struts.apache.org/2.1.6/docs/set.html
-Original Message-
From: john lee [mailto:sh_thorn_b...@yahoo.com]
Sent: Tuesday, April 14, 2009 4:52 PM
To: user@struts.apache.org
Subject: reference variable in struts 1 and 2
in struts 1
if need to get variable from action, and do further
in struts 1
if need to get variable from action, and do further processing, could do
following
<%
qty_available=((CartForm)pageContext.findAttribute("plist")).getQty_available();
...
%>
but in struts 2
public class Cart {
int qty_available;
Spring Security is worth every minute of the learning curve, too.
M.
-Original Message-
From: Bhaarat Sharma [mailto:bhaara...@gmail.com]
Sent: Tuesday, April 14, 2009 2:08 PM
To: Struts Users Mailing List
Subject: Re: sample CRUD application question
so what would be a way to avoid tha
Bhaarat Sharma wrote:
so what would be a way to avoid that?
use this instead?
I don't see any difference there.
I'm not sure what the original response had in mind; the same thing
could happen with a POST form.
Normally one would check for delete access rights on the server si
sateesh_chand...@harvardpilgrim.org wrote:
Here is the use case.
It is for a small bi reports triggering application. On the screen 1, user
makes a selection of what reports they want to run. Screen 2 will display
the filters (could be text box, list box or a multi select list box)
applicable
so what would be a way to avoid that?
use this instead?
>
>
>
On Tue, Apr 14, 2009 at 1:06 PM, wrote:
> You might want to be cautious about that -- essentially you are allowing
> the client by typing
> a URL in their browser to delete material in your database in an adhoc
> fashio
Hi Nils,
Well this issue cannot be reproduced on a consistent basis. I can do the same
operation 4 times and 3 of the 4 times it works properly, but one time it
doesn't and the session disappears. It's very random.
One thing that might be noteworthy is that I have 2 portlets defined for the
sa
Hi there...just google "struts2 ejb3 plugin"
In the 2 first links you'll find the plugin and the doc page about it. I
personally use a the JBoss plugin, which includes a cache. I've extended it
to do lookups annotated on parent classes.
Try which ever fits you and write here abut any concrete pr
You might want to be cautious about that -- essentially you are allowing the
client by typing
a URL in their browser to delete material in your database in an adhoc fashion.
Chris M
-Original Message-
From: Bhaarat Sharma
To: Struts Users Mailing List
Sent: Tue, 14 Apr 2009 11:03
Here is the use case.
It is for a small bi reports triggering application. On the screen 1, user
makes a selection of what reports they want to run. Screen 2 will display
the filters (could be text box, list box or a multi select list box)
applicable to the reports selected in the screen 1. Map
sateesh_chand...@harvardpilgrim.org wrote:
Update. RequestAware seems to be working fine with regular dispatcher. We
are seeing the issue when the result type is tiles.
I'd wonder if there's another request being made from Tiles to get the
tile contents. It's a pretty rare occasion I need to
Update. RequestAware seems to be working fine with regular dispatcher. We
are seeing the issue when the result type is tiles. Any thoughts?
Regards
Sateesh
Sateesh Chandra2/CORP/HPHC
04/14/2009 12:37 PM
To
"Struts Users Mailing List"
cc
Subject
Issue with RequestAware
Hello,
I have
Hello,
I have a quick question regarding RequestAware interface. When implemented
by an action class, what would be the contents of the Map? I am always
seeing the following three. My expectation was, it would contain the input
from JSP as well (like text from textbox, selection from a list box
Andre L DINIZ-POLITEC wrote:
How can I use the Struts validation approach using "simple" theme?
The only issue is displaying field error messages.
Checking for field error messages is as simple as checking the
fieldErrors map for values using the field name as the key: OGNL is your
friend.
Hi Guys,
How can I use the Struts validation approach using "simple" theme?
Any sample?
Thanks,
André.
-
This E-mail is confidential. It may also be legally
privileged. If you are not the addressee you may not
copy, forward, disclose or use any part of
Someone can explain me how to use (and find) the ejb3 plugin for sturts2?
thanks folks
--
Stefano
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Bhaarat Sharma wrote:
oh cool so i can just add method parameter myself.
damn the shorthands. we need a wiki that explains all these
There *is* a wiki that explains all these.
See the "Dynamic Method Invocation" section:
http://struts.apache.org/2.0.14/docs/action-configuration.html
Dave
-
You can extend one of the themes, or use the simple theme(very close
to plain html). There is no way to create a layout that will fit all
possible designs.
regards
musachy
On Tue, Apr 14, 2009 at 10:32 AM, Andre L DINIZ-POLITEC
wrote:
> Hi All,
>
> I'd like to use the ajax theme to build my jsp
I have a blog post about extending a theme, this is for making the
checkboxlist a little prettier for the xhtml theme, but the idea should be
the same:
http://mikeski.net/site/node/16
Mike.
-Original Message-
From: Andre L DINIZ-POLITEC [mailto:andre.l.diniz-poli...@hsbcglt.com.br]
Sent
oh cool so i can just add method parameter myself.
damn the shorthands. we need a wiki that explains all these
On Tue, Apr 14, 2009 at 11:01 AM, Security Management <
list-subscripti...@secmgmt.com> wrote:
> I *think* it's the method name of the action?
>
> In other words, the equivilant of:
>
I *think* it's the method name of the action?
In other words, the equivilant of:
Mike.
-Original Message-
From: Bhaarat Sharma [mailto:bhaara...@gmail.com]
Sent: Tuesday, April 14, 2009 10:55 AM
To: Struts Users Mailing List
Subject: sample CRUD application question
I was loo
On Tuesday 14 April 2009 10:55:06 Bhaarat Sharma wrote:
>
> I am lost as to why
> shouldnt the action be just "crud" what does the exclamation mark and
> delete do?? is that a shorthand for something or is that just an action
> name and if it is an action name then why is it not defined in struts.
I was looking at the CRUD sample application in struts2
http://struts.apache.org/2.0.14/docs/crud-demo-i.html
in one of the jsp's they have this code
and some part of the struts.xml is:
index
/WEB-INF/jsp/employeeForm.jsp
Hi All,
I'd like to use the ajax theme to build my jsp forms and use those smart
features like validation, autocomplete, etc.
The problem is: how can put my "textfields" side-by-side?
I know that I can use "simple" theme, but many nice features will be
disabled. I can't believe that I have to
Hi again,
I have successfully extended css_xhtml theme but I am having a problem form
sx:submit.
I specify struts.ui.theme=servengine in struts.properties and the new theme
works OK (servengine y the name of my new theme)
My problem is... sx:submit still uses ajax theme (I had to replace
submit:f
Turns out JQuery does Ajax much better, I suppose the struts2 team made
a good decision to deprecate those ajax tags. If anyone ran into the
same situation as myself, check out this youtube video for JQuery, took
me just a few hours to work out the examples and solve my problem. I was
clearly k
applying the patch is easy..testing is non-trivial
a very quick scan I did'nt see anything jump out with ftl ..the java classes
have some possibly indeterminant results..testing all possible permutations is
'non-trivial'
pls keep the list apprised on what works for your testcase
Saludos Cordi
Hi there,
Maybe this helps someone else... I just solved my problem by unpacking
struts2-core-2.1.6.jar and placing submit.ftl file in webapp dir
/WEB-INF/classes/template/... commenting the following:
<#--if parameters.align??>
align="${parameters.align?html}"<#t/>
(Lines 20->30)
I noted
Ignacio de Córdoba wrote:
Hi again Dave,
I am using Struts 2.1.2 (I believe it is last public version).
2.1.2 was never a GA (IIRC); the latest version is 2.1.6.
Dave
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.
Hi again Dave,
I am using Struts 2.1.2 (I believe it is last public version).
I'll try to make that patch. Got a private message from other user with
directions about which classes to check (SubmitTag, AbstractUITag and
AbstractClosingTag)... anyway, I've never made such a patch so I'm sure I'll
Ignacio de Córdoba wrote:
Thanks Dave,
I did that (myClass) but the class is only added to the tag, not
to the div enclosing it, which is the one that has that magnificent align
parameter. I'm on my way extending css_xhtml them to try to solve this. I'll
post about it here...
Oh, right. Which
Thanks Dave,
I did that (myClass) but the class is only added to the tag, not
to the div enclosing it, which is the one that has that magnificent align
parameter. I'm on my way extending css_xhtml them to try to solve this. I'll
post about it here...
newton.dave wrote:
>
>
>
> Or you could a
Martin Gainty wrote:
Original Op: feel free to ping me offline for specific details ..
It's better to keep Struts-related topics on the mailing list/forum,
that way everybody benefits. To quote from the JavaRanch FAQ:
"The whole point of [it] is that the whole community can benefit from
pub
Ignacio de Córdoba wrote:
renders:
As you see, enclosing the input tag has no class. Just "align" and
"id" fields. To override that align i'll have to add a entry for every
s:submit in my application. I don't know how to add a "class" to that div.
Anyway, that would make me change all s:sub
Hi Ignacio,
it's pretty easy to overwrite s:submit, just follow the docs about that,
also You can extract original s:submit ftl file from struts jar to see
how it's made and what and where to make changes.
Still what You have found looks like a bug.
Best greetings,
Paweł Wielgus.
El día 14 de ab
Great Answer!
Original Op: feel free to ping me offline for specific details ..
Thanks
Martin Gainty
__
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de
déni et de confidentialité
This message is confidential. If you s
Thanks for your reply... ... my tag:
renders:
As you see, enclosing the input tag has no class. Just "align" and
"id" fields. To override that align i'll have to add a entry for every
s:submit in my application. I don't know how to add a "class" to that div.
Anyway, that would make me c
You can change it by using CSS!
2009/4/14 Ignacio de Córdoba
>
> Hi there,
> i am using css_xhtml them and renders all form elements quite ok but it
> inserts a align="right" in the enclosing every submit button.
> Is there anyway to remove that right alignment? I guess all this should be
> a
>
Hi there,
i am using css_xhtml them and renders all form elements quite ok but it
inserts a align="right" in the enclosing every submit button.
Is there anyway to remove that right alignment? I guess all this should be a
matter of css and not an alignment in the HTML code. Don't know if it is a
b
yes.
On Apr 13, 2009, at 1:15 AM, 白鹏 wrote:
Has anyone use the validation framework of struts 2.1.6??
??
==
terry.gard...@sun.com
Blog: http://blogs.sun.com/terrygardner
Blog: http://dtfar.blogspot.com
Twitter: http://twitter.com/tgardner
SLAMD: http://slamd2.dev.java.net
Skype: Terry
Oh , I have fixed it. :)
The bug is in the login.jsp , I wrote
..
*login.action is a Url .. So the client side validation did not work. *
2009/4/14 白鹏
> I try to use the validation framework in the *client side* But failed.
>
> It is a ' login' scenario. In the html source , I find
>
>
I try to use the validation framework in the *client side* But failed.
It is a ' login' scenario. In the html source , I find
but there isn't the function *validateForm_login(); in the validation.js or
utils.js. *
The browser told me that there was something wrong with *the
validateForm
58 matches
Mail list logo