Hi all,
I have a requirement where I need to assign a Objects to a list.
I tried the example given in showcase there is working (in the site).
But It is not assigning to that list
I am also attaching code for your refernce.
---Vamsi
/*
* $Id: PersonAction.java 471756 2006-11-06
Hi,
I have query regarding OGNL Expression.
Can the #name kind of expression be used anywhere? Or are they
applicable only in certain attributes of struts tags
Till now I was using the %{name} expression and that too in the some
attribute of a tag
I tried using #name expression but it
2008/3/14, kannan_307 [EMAIL PROTECTED]:
I am using the struts version 1.2.4
It was a bug that seems to be fixed:
https://issues.apache.org/struts/browse/STR-1636
It is fixed in 1.2 Family: I checked and it is fixed in Struts 1.2.9.
I suggest you to upgrade to Struts 1.2.9 or, better, to
2008/3/13, CarloSilva [EMAIL PROTECTED]:
Laurie Harper, email-me please. I think I have help to you.
An emabrace
WTF?
I think it's a babelfish (babel.altavista.com) translation from another
language.
Anyway, isn't it nice to offer free embraces :).
Al.
- Original Message -
From: Antonio Petrelli [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org; CarloSilva
[EMAIL PROTECTED]
Hi,
On 3/14/08, ravi_eze [EMAIL PROTECTED] wrote:
We have two pages a.jsp and b.jsp developed with the action class mehods
Ac.a() Ac.b() that render these pages. Now we need to develop a new page
c.jsp which is combination of both a b.jsps.
i can include the jsps into the c.jsp. But
Hi,
Action class gets populated when you invoke them by clicking on any button or
link or anywhere
if you invoke the class a by clicking on a.jsp and same with b,
and when you include then into c.jsp
they will work as usual no change requires!!
please correct me if I didnt get your
Hi All,
I am tryin to make an autocomplete work with its theme=ajax
I am using struts 2.0.x
The data coming from the action is in JSON format
{Arizona:AZ,Arkansas:AR,Armed:AE,California:CA,Florida:FL}
the jsp code is
%@ taglib prefix=s uri=/struts-tags %
html
head
s:head theme=ajax
I am a bit confused by how it works maybe you guys could shed some light :-)
I have a package structure and JSP pages structure that match. To be
concrete actions are placed like this:
/com/mypackge/my/namespace/IndexAction.java
/com/mypackge/my/namespace/EditAction.java
and pages are placed
AFAIK you can use OGNL expression in any attribute of your struts2 tag.
Your problem could be 'what is the proper syntax for using OGNL
expression?'.
Can you post your relevant code? I might get an idea of what you are trying
to achieve.
-Rushikesh
On Fri, Mar 14, 2008 at 7:29 AM, Thomas
Hello out there,
I am relativley new to S2 and I got stuck on a validation problem.
2 fields/properties to be set on my Action:
startDate(String)
endDate(String)
When setting a value first of all the String must be parsed into a Date
object. I know how to handle that.
The endDate must be
--- Dirk Schumacher wrote:
2 fields/properties to be set on my Action:
startDate(String)
endDate(String)
When setting a value first of all the String must be parsed into a Date
object.
FYI, that can be handled automatically by the framework via type conversion
[1] unless there's some
HI Vamsi,
by the time you get to the for loop I don't see the list initialized, unless
you are doing this from your jsp I don't think it will work as how you have it,
a better way would be with a normal for like this :
for (int index = 0; index someLimit; index++) {
--- Cesar Arevalo [EMAIL PROTECTED] wrote:
by the time you get to the for loop I don't see the list initialized,
unless you are doing this from your jsp I don't think it will work as how
you have it, a better way would be with a normal for like this :
for (int index = 0; index
Just out of curiosity, when you say All of this is done automatically by the
framework do you mean if you populate from a form? or how do you mean the
framework does this automatically?
Cesar
- Original Message
From: Dave Newton [EMAIL PROTECTED]
To: Struts Users Mailing List
--- Cesar Arevalo [EMAIL PROTECTED] wrote:
when you say All of this is done automatically by the framework
do you mean if you populate from a form?
Yes.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
--- Cesar Arevalo [EMAIL PROTECTED] wrote:
when you say All of this is done automatically by the framework
do you mean if you populate from a form?
Actually, let me re-answer that: yes, with caveats.
For example, in the source provided the list isn't genericized, so without a
type conversion
lol true :) I keep a jar of them on my desk for people passing by to
help themselves... oh, wait, that's Chup Chups ;-)
Al Sutton wrote:
I think it's a babelfish (babel.altavista.com) translation from another
language.
Anyway, isn't it nice to offer free embraces :).
Al.
- Original
Doug Pham wrote:
Hi All,
I took the current quickstart application and added sitemesh to the pom.xml and
added all the necessary files for sitemesh, the dojo that listed the Persons broke. The
decorator works but the ajax failed with Error loading '/quickstart/list.action'
(200 OK) Is
I have created a template which utilizes parameters that are passed into
it to generate HTML conditionally based on those parameters. For
example:
s:component theme=scaTheme templateDir=template
template=Header.jsp
s:param name=titleKey
value=%{'title.appNpc'} /
Hi, forgive me if this has been asked before. I am just starting on struts
and wondering if I should first learn Struts 1 or just jump straight to
struts 2? Will spending time on struts 1 help me with struts 2 or will it
get in the way since everything in struts 2 is different from Struts 1? I
2008/3/14, akoo [EMAIL PROTECTED]:
Hi, forgive me if this has been asked before. I am just starting on struts
and wondering if I should first learn Struts 1 or just jump straight to
struts 2? Will spending time on struts 1 help me with struts 2 or will it
get in the way since everything
I am starting to doubt about that, I was denied a job because I didn't
have enough struts 1 experience, almost funny anyway :)
musachy
On Fri, Mar 14, 2008 at 2:53 PM, Antonio Petrelli
[EMAIL PROTECTED] wrote:
2008/3/14, akoo [EMAIL PROTECTED]:
Hi, forgive me if this has been asked
Thomas Ramapuram wrote:
Hi,
I have query regarding OGNL Expression.
Can the #name kind of expression be used anywhere? Or are they
applicable only in certain attributes of struts tags
Till now I was using the %{name} expression and that too in the some
attribute of a tag
I tried using
chaining is one way to accomplish this.
http://struts.apache.org/2.x/docs/action-chaining.html
ravi_eze wrote:
hi,
We have two pages a.jsp and b.jsp developed with the action class mehods
Ac.a() Ac.b() that render these pages. Now we need to develop a new page
c.jsp which is
2008/3/14, Musachy Barroso [EMAIL PROTECTED]:
I am starting to doubt about that, I was denied a job because I didn't
have enough struts 1 experience, almost funny anyway :)
Then you had to learn Struts 1 instead of 2 :-D
Antonio
Also, include don't use Dojo or the Ajax theme unless you want to increase
your request size by 400KB.
Unfortunately for ajax, in the current form you need to roll your own if you
want to avoid the Dojo penality.
newton.dave wrote:
--- Raghu varma bhupathiraju wrote:
give me the list of
Ankur Agar wrote:
Hi All,
I am tryin to make an autocomplete work with its theme=ajax
I am using struts 2.0.x
The data coming from the action is in JSON format
[...]
But still the autocomplete is not working gives a syntax error on page when
Including the actual error message would
--- Laurie Harper [EMAIL PROTECTED] wrote:
AFAIK, %{#name} is equivalent to %{name} when there is a getName() on
the action, i.e. OGNL will look at the action first then search the rest
of the value stack.
Mmm, I'm not sure about that. The # should look explicitly for a named
object in the
Dirk Schumacher wrote:
I know it would be solveable by the @FieldExpressionValidator where its
expression can be filled with a complex OGNL-Expression.
But if evaluating the expression internally throws an Exception, the
evaluation does not terminate right. (I'd be fine with a negative
No, don't bother. Its not a chapter of book.
Skip some of the stuff you don't need to know any longer and roll up your
sleeves with struts 2.
akoo wrote:
Hi, forgive me if this has been asked before. I am just starting on
struts and wondering if I should first learn Struts 1 or just
I marked this as other because this is probably sever specific (in my case I am
using JBoss).
Using the Struts framework is there some simple way to get a list of all the
users logged into the server?
Thx.
Mike
--- Mike Duffy [EMAIL PROTECTED] wrote:
Using the Struts framework is there some simple way to get a list of all
the users logged into the server?
Using the Struts framework? No; this doesn't have anything to do with Struts.
You might use a SessionContextListener to provide a potentially
Laurie Harper wrote:
The expressions %{name} and %{#name} have different meanings. Anywhere
one is valid, the other is valid too but obviously each will only 'work'
if the expression resolves to a value.
Correct. I'm sorry to pick nits, but if you don't mind, I'll clarify
your following
Hi Laurie.
I have the struts-wml.jar for struts 1.2.
I´m sorry for my bad English.
Other embrace.
- Original Message -
From: Laurie Harper [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Friday, March 14, 2008 3:24 PM
Subject: Re: struts wml
lol true :) I keep a jar of them on
Hi all.
I am handling login issue through an interceptor. Basically it looks in the
session if a user entry exists before letting you go through to the
administration panels. This works fine.
In my admin, I use a lot of Ajax (with dojo) so I never have a single full
page reload. I use submits or
dave is is correct..
#foo.blah // returns foo.getBlah()
#bar.blah // returns bar.getBlah()
blah // returns foo.getBlah() because foo is the root
http://struts.apache.org/2.x/docs/ognl-basics.html
Martin-
- Original Message -
From: Dave Newton [EMAIL PROTECTED]
To: Struts Users
Martin Gainty wrote:
dave is is correct..
The following example without the proceeding situation setup is quite
misleading (so here it is) :
For example, suppose we are using standard OGNL (not using XWork) and
there are two objects in the OgnlContext map: foo - foo and bar -
bar and that
38 matches
Mail list logo