quinquin2209 wrote:
Thanks for reply
Yes. The content of the tab remains, just the scrollbar appears/disappears.
I have tried an experiment in the tabbed panel example in struts2-showcase
as follow:
1. Open file example2.jsp located at
struts2-showcase-2.0.11\ajax\tabbedpanel
2. Edit the
function actionConfirm() {
if(newConfirm('Confirmation Request','Are you sure to delete item
?',1,1,0)) {
// return document.forms[0].submit();
return true;
}
else return false;
}
I changed the row return
Hello all,
I have two Set of objects. The set1 is the reference set (with all
objects) and set2 some on list1 elements.
All elements are the same class and I have redefined hashCode and equals
method.
I want to do this :
s:iterator value=set1
s:if test=%{#top in
The return value is a String array! It's really supprised me.
May this experience is meaningful for freshman to Struts2 like me.
Thx everyone.
--
Ray Chen
Email:[EMAIL PROTECTED]
Blog: http://clraychen.blogcn.com
-
To
Hi Jeromy,
Jeromy Evans wrote:
2nd, the parameters interceptor is called and sets properties of your
action. It cannot set primitives to null, so it does not write to
these properties.
3rd, the validation interceptors are executed. They cals the getters
of your action instance and observe
I need to download a file from the server using AJAX Struts.
Is this possible?
Frank W. Zammetti wrote:
No, you don't need to implement StrutsFileDownload... What your doing
should work fine... Can you throw together a quick, simple application
that is nothing but a single Action that
Hi Jeromy Evans,
Thanks for your reply. I would like to insert the images into
my
Databases. For that, i'm using byte[] array.
In Struts 1.3,
I used FormFile class. From this class i got the method
getFileData();
In my db,
Yes, It was my first try
And it doesn't work too.
-Message d'origine-
De : GF [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 5 décembre 2007 12:30
À : Struts Users Mailing List
Objet : Re: [S2] Ognl in s:if
Have you tried:
aContainerObject.set2.contains(#top)
On Dec 5, 2007 11:27
it's the N-th time you post the same stuff.
On Dec 4, 2007 6:03 PM, Gigliotti, Andrea [EMAIL PROTECTED]
wrote:
If you have struts 2.0.11 or 2.0.9 you can deploy the
struts2-blank-2.0.11.war file located into the apps folder (ex.
C:\struts-2.0.11\apps).
Before deploying the web app you have
Have you tried:
aContainerObject.set2.contains(#top)
On Dec 5, 2007 11:27 AM, LEONARD Julien (Consulting for ACCOR Hotels)
[EMAIL PROTECTED] wrote:
Hello all,
I have two Set of objects. The set1 is the reference set (with all
objects) and set2 some on list1 elements.
All elements are the
Johnson nickel wrote:
Hi Jeromy Evans,
Thanks for your reply. I would like to insert the images into
my
Databases. For that, i'm using byte[] array.
In Struts 1.3,
I used FormFile class. From this class i got the method
getFileData();
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getParameterMap()
Ray wrote:
The return value is a String array! It's really supprised me.
May this experience is meaningful for freshman to Struts2 like me.
Thx everyone.
In fact, I've just tried
aContainerObject.set2.contains(top)
And it works...
Is there a documentation on the use of # to acces to a variable?
-Message d'origine-
De : LEONARD Julien (Consulting for ACCOR Hotels) [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 5 décembre 2007 12:34
À :
I suggest you to consider Spring Framework and Quartz.
On Dec 4, 2007 4:52 AM, Christopher Cheng [EMAIL PROTECTED]
wrote:
In struts1, I have a few plugin to preconfigure some services such as
QuartzPlugIn during startup
public void init(ActionServlet actionServlet,
hi,
I provided declarative XML validation for a form where the action would
expose primitive type properties. The problem is that a primitive type
property left blank in the form would never be caught as not provided by
the required validation. The property would instead be set with the
Indresh Chadha wrote:
I need to download a file from the server using AJAX Struts.
Is this possible?
No, it's not... well, assuming if by AJAX you mean using XMLHttpRequest,
but since AJAX is a technique, arguably using things like hidden frames
is still AJAX, and with that you could
I posted the issue more time on the forum because it's has been closed (WW-2345
) by someone saying It is not a bug.
Reading carefully my message you should understand the issue is a bug!
So I'm expecting this bug to be fix quickly.
-Messaggio originale-
Da: GF [mailto:[EMAIL PROTECTED]
getparameters gets the map
http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/ActionContext
html
use the get mwthod to obtain the value to which this map maps the specified
key
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html
M-
- Original Message -
From: Ray [EMAIL
Yes
I actually breakpoint the getText method in the ActionSupport. It is called.
2007/12/5, Dave Newton [EMAIL PROTECTED]:
Does the action extend ActionSupport?
d.
--- Angel Gruev [EMAIL PROTECTED] wrote:
Hello
I have read the guide for internationalization but still I cannot get it
take a look at references to other than [root] object access at
http://struts.apache.org/2.0.6/docs/ognl.html
M--
- Original Message -
From: GF [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, December 05, 2007 6:42 AM
Subject: Re: [S2] Ognl in s:if
Does the action extend ActionSupport?
d.
--- Angel Gruev [EMAIL PROTECTED] wrote:
Hello
I have read the guide for internationalization but still I cannot get it
running.
1. I have a property file with internationalization data called
ApplicationResources.properties (used for the old
My guess is that UEL is enabled in your app server. The quick fix
would be to escape the # character -
list=\#{'foo':'foovalue','bar':'barvalue'}
The problem is that UEL and OGNL both use #{, but OGNL isn't evaluated
until after UEL attempts to evaluate it. It's a known issue, but there
is
You should probably try using the key rather than the label
attribute, I'm not even sure whether it will accept OGNL:
s:textfield key=blabla/
--
Ian Roughley
From Down Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: [EMAIL
Sure Martin, this link provides a good starting point -
http://java.sun.com/products/jsp/reference/techart/unifiedEL.html
-Wes
On 12/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi Wes
Is there a link which describes UEL for our own edification?
Thanks/
M-
--
Wesley Wannemacher
http://java.sun.com/products/jsp/reference/techart/unifiedEL.html
That is the description of the UEL,
https://issues.apache.org/struts/browse/WW-2213
That is where I discovered the symbol clash.
What tipped me off is that you mentioned using the full
@java.util.Hashmap@ notation and it worked.
http://www.google.com/search?q=unified+expression+language
--- JM [EMAIL PROTECTED] wrote:
Thanks for the reply. Very informative. I have not heard of UEL yet, can
you
send me some references. I know about about EL. I tried the escape as you
suggested. But this fails with no errors and no
This may be a bit off target, but I was hoping some folks here have some
suggestions.
I have been working on a Struts2 app here for the last6-8 months, and it
is now pretty stable. So stable in fact that we want to use it as a
model for more apps with similar functionality. So my question
Thanks for the reply. Very informative. I have not heard of UEL yet, can you
send me some references. I know about about EL. I tried the escape as you
suggested. But this fails with no errors and no output.
any suggestions?
Wes Wannemacher wrote:
My guess is that UEL is enabled in your app
Hi All,
I am trying with the displayTag and I would like to see if it is possible to
display an image at the first column depending on some conditions. For
example, a vip.gif should be shown if the person is a VIP and no image
should be shown if the person is normal member. How can I achieve it?
Hi Wes
Is there a link which describes UEL for our own edification?
Thanks/
M-
- Original Message -
Wrom: FGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWW
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, December 05, 2007 9:55 AM
Subject: Re: S2: HashMap - from jsp to action
2007/12/5, Gigliotti, Andrea [EMAIL PROTECTED]:
I posted the issue more time on the forum because it's has been closed
(WW-2345 ) by someone saying It is not a bug.
That someone is me :-)
If I understood you well, you say that, if the browser is Italian and you
use it to call a webapp, you
We can use the validate method of actionform class to check whether
the size of uploadded file has exceeded the max size.but,do we really
have to upload that file completely before check?
if i upload a very large file,maybe several g bytes,then it taks a
very long time to transfer that file from
SmokeTheSun wrote:
Hi,
Iam working in Struts1.2 application development. In that i want to
restrict
direct access(through URL) for jsp pages or by calling .do action.
Specifically unauthenticated user must not access any pages.
ACEGI is the current gold-standard for implementing
start here
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
ping me offline if you want to to look at portal management implementations
anyone?
M-
- Original Message -
From: SmokeTheSun [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Wednesday, December 05, 2007 11:21 AM
Joachim Ansorg wrote:
Hi all,
I have two actions (action1 and action2) which both call a third action.
How can I do the mapping of the third action so that the calling action
is called again (i.e. action1 or action2)?
Before action1 or action2 finishes, store its name in one of the scopes
You have to make your own decorator:
I assume your table is populated with a 'Member' list or something
similar. In your table decorator create a method that returns the
image based on the condition:
public class MemberListDecorator extends TableDecorator {
public String getType() {
--- victor sosa [EMAIL PROTECTED] wrote:
Well, It doesn't iterate (end method), what means When there aren't any
objects left to iterate over it does some cleanup and
goes away. ???
See this code in end()?
if (iterator!=null iterator.hasNext()) {
Object currentValue =
newton.dave wrote:
I'm not sure what you mean by using the return
value... of the start() and end() methods.
End() does the same thing; this is where (AFAICT) the
bulk of the iteration is done. When there aren't any
objects left to iterate over it does some cleanup and
goes away.
Thanks. It's ok for your suggested method.
Jeromy Evans - Blue Sky Minds wrote:
quinquin2209 wrote:
Thanks for reply
Yes. The content of the tab remains, just the scrollbar
appears/disappears.
I have tried an experiment in the tabbed panel example in
struts2-showcase
as follow:
Hi all,
I am trying to use required validator in struts2.
But it seems this one dosen't work at all.
Have anybody successfully used required validator.
Thanks
--
View this message in context:
http://www.nabble.com/Required-validator-dosen%27t-work-tf4952011.html#a14179533
Sent from the Struts
So, for posterity, we finally got this working. After several days of
playing around with a sandbox Struts application that worked, but our
webapp that didn't, we finally realized that the ORDER of the filters
matters (duh...). We put the character encoding filter first in our
chain and it
--- xniit2003 [EMAIL PROTECTED] wrote:
I am trying to use required validator in struts2.
But it seems this one dosen't work at all.
Have anybody successfully used required validator.
What data type are you attempting to validate?
d.
xniit2003 wrote:
Have anybody successfully used required validator.
Yes.
One thing to note about validation is that it *won't* automatically
short-circuit if you're not using the workflow interceptor. Without
that interceptor validation can fail and your action's execute method
will still
Hello
I have read the guide for internationalization but still I cannot get it
running.
1. I have a property file with internationalization data called
ApplicationResources.properties (used for the old struts 1 applicaiton)
There is a line blabla = test
2. In the struts.properties file I
I have some problems to understand it too :-)
I often just do many tries until it works :-)
On Dec 5, 2007 12:38 PM, LEONARD Julien (Consulting for ACCOR Hotels)
[EMAIL PROTECTED] wrote:
In fact, I've just tried
aContainerObject.set2.contains(top)
And it works...
Is there a documentation
Giovanni Azua wrote:
hi,
I provided declarative XML validation for a form where the action
would expose primitive type properties. The problem is that a
primitive type property left blank in the form would never be caught
as not provided by the required validation. The property would
Giovanni Azua wrote:
Personally, I never expose primitives as properties of an action
because null values are always legal over this interface. In the
special case of Boolean which can easily accidentally cause an NPE, I
always make the getter return false if the value is null..
This
when i upload file with html:file tag of struts 1.2,how can i judge
whether the inputted file path is a valid one?
the development enviroment is tomcat+struts+eclipse.
i once want to check it in the validate method of corresponding
actionform.but in debug mode,after i input a invalid file path
Johnson nickel wrote:
Hi everyone,
I am using Struts 2 and using s:file tag to upload a file.
But I get that file as a 'File' object in my action class and using
getFileName() on that File object returns me some arbitrary value (something
like upload__5b41f107_1127b4befe0__8000_.tmp). I
Can anyone explain to me why the following select tag statement fails:
s:select label=label name=name list=#{'foo':'foovalue',
'bar':'barvalue'} /
I get the following massive trace: (note that using the advanced version
as stated on
the opensymphony link below - with
list=[EMAIL
Skip Hollowell wrote:
This may be a bit off target, but I was hoping some folks here have
some suggestions.
I have been working on a Struts2 app here for the last6-8 months, and
it is now pretty stable. So stable in fact that we want to use it as
a model for more apps with similar
That certainly works, but I think removing the br/ altogether is a cleaner
solution since it shouldn't be in there in the first place.
d.
--- Zarar Siddiqi [EMAIL PROTECTED] wrote:
A much easier way to do this would be to apply a CSS style like this:
div.wwgrp br {
display: none;
}
Thank you both for the quick response.
It worked!
2007/11/28, Eric Martin [EMAIL PROTECTED]:
Agreed...the br / is irritating ;)
Just to expand on what Dave said...
1) extract the template/simple/inputtransferselect.ftl file from the
struts
jar.
2) put the file in your classpath, we have
A much easier way to do this would be to apply a CSS style like this:
div.wwgrp br {
display: none;
}
See this old blog post:
http://arsenalist.com/2007/04/11/struts-2-form-control-templates/
On Dec 5, 2007 9:14 AM, Angel Gruev [EMAIL PROTECTED] wrote:
Thank you both for the quick
Hi everyone,
I am using Struts 2 and using s:file tag to upload a file.
But I get that file as a 'File' object in my action class and using
getFileName() on that File object returns me some arbitrary value (something
like upload__5b41f107_1127b4befe0__8000_.tmp). I want to
retrieve
Hi all,
I have two actions (action1 and action2) which both call a third action.
How can I do the mapping of the third action so that the calling action
is called again (i.e. action1 or action2)?
Thanks,
Joachim
-
To
What I'm doing now to solve the problem is to modify the source code of the
tag. But it's a bit troublesome, I think. Are there any more elegant
solutions?:thinking:
DJR wrote:
As is know to all, s:optiontransferselect tag has a buttonCssStyle
attribute, which will make all buttons look in a
DJR wrote:
What I'm doing now to solve the problem is to modify the source code of the
tag. But it's a bit troublesome, I think. Are there any more elegant
solutions?:thinking:
DJR wrote:
As is know to all, s:optiontransferselect tag has a buttonCssStyle
attribute, which will make all
Jeromy Evans wrote:
DJR wrote:
What I'm doing now to solve the problem is to modify the source code
of the
tag. But it's a bit troublesome, I think. Are there any more elegant
solutions?:thinking:
DJR wrote:
As is know to all, s:optiontransferselect tag has a buttonCssStyle
attribute,
59 matches
Mail list logo