czw., 6 mar 2025 o 10:55 Ed napisał(a):
> I tested an example with struts 7.x
> (https://github.com/apache/struts-examples/tree/main/control-tags) and
> when edit `personBean` can't send to the form. If I have a string or a
> map can send to the form, but object not.
Thanks for pointing that out,
Hi,
I tested an example with struts 7.x
(https://github.com/apache/struts-examples/tree/main/control-tags) and
when edit `personBean` can't send to the form. If I have a string or a
map can send to the form, but object not.
Thanks,
Ed
---
rue
>
>
>
> Problem is the ${somepage} value is appear in the address bar of the
> browser. I want this value to be encrypted or hidden like in html post
> method. I googled this but couldn't find an answer. Any help?
>
> --
> View this message in context:
http:/
n the address bar of the
browser. I want this value to be encrypted or hidden like in html post
method. I googled this but couldn't find an answer. Any help?
--
View this message in context:
http://struts.1045723.n5.nabble.com/Passing-parameters-from-struts-xml-to-jsp-securely-encript
n the address bar of the
browser. I want this value to be encrypted or hidden like in html post
method. I googled this but couldn't find an answer. Any help?
--
View this message in context:
http://struts.1045723.n5.nabble.com/Passing-parameters-from-struts-xml-to-jsp-securely-encript
ent: Friday, June 25, 2010 1:58 PM
Subject: Re: Passing parameters to getter methods?
Well technically it's not a "getter" since it takes a parameter but
that doesn't matter you can call any method on your action just using
the full name and calling it like in java.
Now I'
Well technically it's not a "getter" since it takes a parameter but
that doesn't matter you can call any method on your action just using
the full name and calling it like in java.
Now I'm not sure what you are trying to do with the #index syntax
since getProducts() will be called once and shoul
You can do this without parameters. Write a setter for this index
property (to save it), and then in the getter you grab the saved value.
Hi,
I want to call s:iterator and fetch a list by passing it an index. This list
will be dynamically generated.
where I want getProducts(Integer index)
Hi,
I want to call s:iterator and fetch a list by passing it an index. This list
will be dynamically generated.
where I want getProducts(Integer index) to be called.
Is this possible?
Thanks
Chris
notation is in, and
a setSerialNumber() method in action Connect. Debugging shows that
Connect.setSerialNumber() is called when using redirectAction, but it;s not
when using chain.
Regards
--
View this message in context:
http://old.nabble.com/Convention-
e in the parameter
>
>
>
>
>
>
>
> and let the getName class handle the actual locale.
>
>
>
> adam
>
> > Date: Thu, 4 Mar 2010 18:20:19 +0100
> > Subject: Re: Passing parameters to
> > From: lukasz.len...@googlemail.com
> > To: us
just pass an alias to the locale in the parameter
and let the getName class handle the actual locale.
adam
> Date: Thu, 4 Mar 2010 18:20:19 +0100
> Subject: Re: Passing parameters to
> From: lukasz.len...@googlemail.com
> To: user@struts.apache.org
>
> 2010
k you should be looking at this differently and using the i18n
interceptor and resource bundles to handle different languages.
adam
> Date: Thu, 4 Mar 2010 17:13:43 +0000
> Subject: Re: Passing parameters to
> From: rvjs...@gmail.com
> To: user@struts.apache.org
>
> Thank
2010/3/4 Ricardo Jorge :
> PS: I've just tried the following but it did not work
>
Take a look on some examples here [1] and try
[1] http://struts.apache.org/2.x/docs/ognl-basics.html
Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl
-
Thank you for your reply.
I don't have a getName in my action class if that's what you mean.
I'm using an iterator so the getName is a method from the class's object
defined in the iterator's value option. That class also makes available a
getName(Locale locale).
Locale is a class (java.util.Loc
2010/3/4 Ricardo Jorge :
>
Did you define method name(Locale locale) in your class? Or just
getName(Locale locale)? For second case use
or
Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl
---
Hello.
I need to access a property the includes a parameter but I cannot find a way
to do it.
I want to list all page names in selectedPages but I also need to specify
the locale (language) the should appear because a page may have many names
in different languages:
This works fine. It's a norma
oIntercept(AnnotationValidationInterceptor.java:68)
>
>
> -Original Message-
> From: Dave Newton [mailto:newton.d...@yahoo.com]
> Sent: Thursday, February 12, 2009 3:24 PM
> To: Struts Users Mailing List
> Subject: Re: Passing parameters between Actions
>
>
t
org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto
r.doIntercept(AnnotationValidationInterceptor.java:68)
-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com]
Sent: Thursday, February 12, 2009 3:24 PM
To: Struts Users Mailing List
Subject: Re: Passing parame
ryangr wrote:
Is it possible to pass a parameter from one Action to another Action?
For example, I have FooAction and BarAction. From BarAction's "reload"
action result I want to return to FooAction but pass it a relevant id for
FooAction to set upon loading.
http://struts.apache.org/2.x/docs
context:
http://www.nabble.com/Passing-parameters-between-Actions-tp21986336p21986336.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional command
Solved with the help of the hidden-tag.
Greetings,
Alexander
Alexander Baetz schrieb:
Hi,
i'm using a formular (struts form) to edit attributs of my model
objects. The intention is that prepare gets the correct model-object,
model driven puts it on the stack and params sets all attributes.
S
Hi,
i'm using a formular (struts form) to edit attributs of my model
objects. The intention is that prepare gets the correct model-object,
model driven puts it on the stack and params sets all attributes.
Sounds simple, but prepare needs some informations to work. these have
to be set before p
rds,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
> From: jaki <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Mon, 11 Aug 2008 22:57:47 -0700 (PDT)
> To:
> Subject: Re: Remotely passing parameters to struts
>
>
> What's the way to do i
his message in context:
http://www.nabble.com/Remotely-passing-parameters-to-struts-tp18928369p18938494.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
gt; Reply-To: Struts Users Mailing List
> Date: Mon, 11 Aug 2008 08:45:37 -0700 (PDT)
> To:
> Subject: Remotely passing parameters to struts
>
>
> Hi all,
>
> I have a web application which needs to pass parameters to a struts app
> which resides on another machine.
rom a normal java method. So, is there a way to pass
> arguements without using a request/response object?
> --
> View this message in context:
> http://www.nabble.com/Remotely-passing-parameters-to-struts-tp18928369p18928369.html
> Sent from the Struts -
message in context:
http://www.nabble.com/Remotely-passing-parameters-to-struts-tp18928369p18928369.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
print the debug attribute i can see that the idUser attribute is null.
Does anyone have any idea ?
Thanks
--
View this message in context:
http://www.nabble.com/passing-parameters-by-url-tp17668302p17668302.html
Sent from the Struts - User mailing list archiv
If you want to use the value parameter, you must enclose the value
with single quotation marks in addition to double quotation marks. ,
if your value is a string
" ' value ' "
The value parameter is assuming you are passing an object. This is
associated with OGNL
What worked for you A
Hi,
In case anyone is interested
s:param tag only works(for me) when value is defined in body of tag and
not in value attribute
doesn't work
fromDate does work
Alan Nisbet wrote:
Hi,
First time poster and relative struts newbie,
I'm trying to create an ftl template that positions two
s:
Hi,
First time poster and relative struts newbie,
I'm trying to create an ftl template that positions two
s:datetimepicker(s) side by side to capture date and time.
I use the s:component tag and define my template shown below. It is
working relatively well however I'm unable to retrieve any
--- Paranoid_Fabio <[EMAIL PROTECTED]> wrote:
> How can i set includeParams="none" as default in all the pages?
http://struts.apache.org/2.x/docs/strutsproperties.html
struts.url.includeParams
> Which side effects can it have?if any..
Parameters won't be included automagically.
d.
--
Dave Newton yahoo.com> writes:
>
> See if helps.
>
> You can also set that as a default.
>
> I do agree with the other response that using the tag makes
> things a little cleaner.
>
> d.
Thank you. The problem of the "growing" parametes is gone, but the parameter
?amount=... remains on a
See if helps.
You can also set that as a default.
I do agree with the other response that using the tag makes
things a little cleaner.
d.
--- Paranoid_Fabio <[EMAIL PROTECTED]> wrote:
> Hi everyone. I'm new to Struts and i'm developing a web application.
> I've a page with 3 links. Every lin
Try to make your url action as follows and see if this works better.
Paranoid_Fabio wrote:
Hi everyone. I'm new to Struts and i'm developing a web application.
I've a page with 3 links. Every link call the doPurchase action, but each passes
a different amount.Here's the snippet of
Hi everyone. I'm new to Struts and i'm developing a web application.
I've a page with 3 links. Every link call the doPurchase action, but each passes
a different amount.Here's the snippet of the jsp that calls doPurchase action
">
">
">
In the Purchase action class i've
Gena Batsyan wrote:
Why not, we have two actions with absolutely distinct purposes, one for
entry creation and another for entity listing, but the listing has a
little feature to display messages.
If you have two actions you want to expose to your users, then by all
means they should both be
Dale Newfield wrote:
Gena Batsyan wrote:
As I said, if using chain, the whole load of parameters is applied to
the second action, which I want to avoid, I want it to get nothing
except of what I'm explicitly define.
It sounds like you're trying to use the wrong tools. You're looking
for a w
--- Christopher Schultz wrote:
> Dave Newton wrote:
>> Someone else may have a better idea, but I think
>> this is just the nature of the way HTTP works: you
>> can forward or redirect; forward means you get the
>> same request, redirect means you get a new one.
>
> I'm not entirely sure this is
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
> Someone else may have a better idea, but I think this is just the
> nature of the way HTTP works: you can forward or redirect; forward
> means you get the same request, redirect means you get a new one.
I'm not entirely sur
Gena Batsyan wrote:
As I said, if using chain, the whole load of parameters is applied to
the second action, which I want to avoid, I want it to get nothing
except of what I'm explicitly define.
It sounds like you're trying to use the wrong tools. You're looking for
a way to trigger the crea
--- Gena Batsyan <[EMAIL PROTECTED]> wrote:
> Dave Newton wrote:
> > --- Gena Batsyan <[EMAIL PROTECTED]> wrote:
> > Messages for that are generally stored in a
> > "flash"-like context (session but with automagic
> > removal after the next request completes).
> that' Interesting. Where can I read
Dave Newton wrote:
--- Gena Batsyan <[EMAIL PROTECTED]> wrote:
This is a simple requirement, that is needed in
almost any webapp I can imagine, and I absolutely
believe something like this must be a core
feature.
I'm not entirely sure I complete understand what
you're asking for.
Th
--- Gena Batsyan <[EMAIL PROTECTED]> wrote:
> This is a simple requirement, that is needed in
> almost any webapp I can imagine, and I absolutely
> believe something like this must be a core
> feature.
I'm not entirely sure I complete understand what
you're asking for.
The *most* common solutio
This is a Struts 2 question.
I'm looking for a common solution to the problem stated in the subject.
The easiest way to explain what exactly I want is with an example.
I have two actions:
1) ListAction, that displays a list of database entries.
2) CreateAction, that receives input from a form, c
> Hi all,
> I was wondering how I could possibly solve this: I have an action in which
> I construct quite a complex data structure. From that data structure I
> display
> some tables and create some charts. Now, I have got this one big-ass java
> class - extending ActionSupport, in which I d
Hi all,
I was wondering how I could possibly solve this: I have an action in which
I construct quite a complex data structure. From that data structure I display
some tables and create some charts. Now, I have got this one big-ass java
class - extending ActionSupport, in which I do all the stuff -
t;
> Thanks,
>
> Nuwan.
>
>
> - Original Message -
> From: "Joe Yuen" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" ; "Struts Users
> Mailing List"
> Sent: Thursday, January 18, 2007 9:28 PM
> Subject: RE: Passing
t;Joe Yuen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" ; "Struts Users
Mailing List"
Sent: Thursday, January 18, 2007 9:28 PM
Subject: RE: Passing parameters to a struts action in URL
In my action class:
public ActionForward execute(ActionMapping mapping,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Joe,
Joe Yuen wrote:
> Does anyone have an idea as to why this URL
>
> http://localhost:8080/Chisq/Insurance.do?action=edit&personid=1001
>
> works in Firefox but not in IE6? In my action class, I can see a personid in
> Firefox but in IE personi
k for one browser and
not the other??
-Original Message-
From: Ross, Scott [mailto:[EMAIL PROTECTED]
Sent: Thu 1/18/2007 1:26 PM
To: Struts Users Mailing List
Subject: RE: Passing parameters to a struts action in URL
I don't think this is a URL issue. What is your code to
I don't think this is a URL issue. What is your code to retreive the
variables from the URL?
-Original Message-
From: Joe Yuen [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 18, 2007 4:12 PM
To: Struts Users Mailing List
Subject: Passing parameters to a struts action in URL
Does anyone have an idea as to why this URL
http://localhost:8080/Chisq/Insurance.do?action=edit&personid=1001
works in Firefox but not in IE6? In my action class, I can see a personid in
Firefox but in IE personid is null.
I am using struts 1.2.8.
Thanks,
Joe Yuen
--
Don Vawter wrote:
I am setting the attribute in the Action class
Check to make sure you don't have redirect="true" set for the action
mapping. Otherwise, everything request-related is lost.
- Scott
-
To unsubscribe, e-mail:
Don, see my last sentence: request attributes disappear after one request. You
will have to set it on every request if you need it. Or, set it in the session.
-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
I am setting the attribute in the Action class
On Jun 17, 2006, at 6:10 PM, Paul Benedict wrote:
Don,
Request parameters and request attributes are not the same thing.
Parameters come from the user's HTTP request, attributes come from
the server's internal context handling. Think of the la
Don,
Request parameters and request attributes are not the same thing. Parameters
come from the user's HTTP request, attributes come from the server's internal
context handling. Think of the latter as extra information that pertains to
processing the request.
Also, request-scope values disappe
I have been trying to use a request parameter in an included tiles
file (navigation.jsp)
String foo = (String) request.getAttribute("menu_item");
this sets the value correctly the first time the page is hit but
subsequent calls do not use the new value of the variable.
What am I doing wrong
Michael Jouravlev wrote:
The best way to avoid these problems is not to chain actions ;-)
That was a great response, thank you. Just the kind of info I need
(best practices type hints as opposed to "here's what the docs say...")
:). I still like the idea of chaining actions together, as it ma
after I prepopulate someOtherForm and loses
the value I set! So I suspect the typical response to this might be
"well, duh," but this is how I've taken to passing parameters across
actions. Looks like I've been fooling myself with my other Action
classes because most of the p
rd always gets hit because someOtherProp is always
null. The form gets reset() after I prepopulate someOtherForm and loses
the value I set! So I suspect the typical response to this might be
"well, duh," but this is how I've taken to passing parameters across
actions. Lo
From: Kevin <[EMAIL PROTECTED]>
> Using Clay HTML Views can you pass ?
>
> Link:
> Create an account
>
> Component:
>
> extends="commandLink"
> id="link"
>allowBody="false">
>
>
>
>
>
Using Clay HTML Views can you pass ?
Link:
Create an account
Component:
Is there anyway to declare a parameter to be passed to the next page.
Something like:
›
value
session.
So, This can be done only by passing parameters to the page. But, I couldn't
understand (came across) how to pass parameters to a jsp from Action. If you
came across anything about how to pass parameters to a jsp page let me know.
Thanks you very much,
Siva
-Original Me
n password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
---
n password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
---
Hi,
I want to know how to pass parameters from an Action to corresponding
ActionForward.
Basically, I am having only the jsp name in forward in struts-config.xml.
But, when action is processed, I want to send some parameters to the
corresponding actionforward.
Can some be help me in expla
markus
-Ursprüngliche Nachricht-
Von: Gareth Evans [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 1. Februar 2006 12:14
An: Struts Users Mailing List
Betreff: Re: passing parameters
Your Text
Should do the trick.
Note: You do not need the .do
Gareth
Markus wrote:
Hi all,
just a
Hi,
u could do something like this :
<%= MyCons.EDIT %>
michael
-Message d'origine-
De : Markus Demetz [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 1 février 2006 12:40
À : Struts Users Mailing List
Objet : AW: passing parameters
ok thanks,
but I forgot that i
ing List
> Betreff: Re: passing parameters
>
>
> Your Text
>
> Should do the trick.
>
> Note: You do not need the .do
>
> Gareth
>
> Markus wrote:
>
> > Hi all,
> >
> > just a simple question.
> >
> > I would like to pass a sin
Your Text
Should do the trick.
Note: You do not need the .do
Gareth
Markus wrote:
Hi all,
just a simple question.
I would like to pass a single parameter with a tag.
I've searched the net, but there I understand that it is only
possible to pass parameters via beans.
Is the a simpler wa
Hi all,
just a simple question.
I would like to pass a single parameter with a tag.
I've searched the net, but there I understand that it is only
possible to pass parameters via beans.
Is the a simpler way to redender the following with :
/myAction.do?action=edit
I'm just a little confused n
Message-
From: Tait, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 8:47 AM
To: 'user@struts.apache.org'
Subject: Passing Parameters to Tiles Layout
Assume a standard Tiles layout with Header, Navigation, Body, and Footer,
each implemented as a JSP. In this s
Assume a standard Tiles layout with Header, Navigation, Body, and Footer,
each implemented as a JSP. In this setup, the navigation.jsp is
responsible for dynamically generating the left hand navigation from an XML
configuration file. For each page request, this component needs to build
the navig
75 matches
Mail list logo