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, tag has a "buttonCssStyle"
attribute, which will make all butto
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, tag has a "buttonCssStyle"
attribute, which will make all buttons look in a unified
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, tag has a "buttonCssStyle"
> attribute, which will make all buttons look in a unified style. Bu
That certainly works, but I think removing the 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;
> }
>
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 respo
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 functionalit
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 stil
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 fi
--- 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.
-
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 Str
--- 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 = ite
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 a
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
auth
I believe it would be easiest to write an interceptor for actions 1 and
2 that invokes the action, then invokes action 3 and then reinvokes the
original action.
-Original Message-
From: Gary Affonso [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 05, 2007 11:03 AM
To: Struts Users Ma
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() {
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:
Sent: Wednesday, December 05, 2007 11:21 AM
Subject: How to restrict
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
(r
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.
Can you give the idea(s)..
Thanks,
--
View this message in cont
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 Wannem
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
--- J&M <[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
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 is
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 ap
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"
Sent: Wednesday, December 05, 2007 9:55 AM
Subject: Re: S2: HashMap - from jsp to action
> My guess is that UEL
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
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 webap
You should probably try using the "key" rather than the "label"
attribute, I'm not even sure whether it will accept OGNL:
--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: [EMAIL PROTECTED]
Angel Gru
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"
Sent: Wednesday, December 05, 2007 6:42 AM
Subject: Re: [S2] Ognl in s:if
I have some p
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
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 th
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 noth
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
Can anyone explain to me why the following select tag statement fails:
I get the following massive trace: (note that using the "advanced" version
as stated on
the opensymphony link below - with
list="[EMAIL PROTECTED]@{'Regular' : 'Regular', 'Decaf':
'Decaf'}}" - does work ):
avax.servlet.S
Thank you both for the quick response.
It worked!
2007/11/28, Eric Martin <[EMAIL PROTECTED]>:
>
>
> Agreed...the 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,
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 downlo
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]
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 cl
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" <[EMA
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 and
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 unsubscr
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.
--
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 documen
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
À : Stru
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,
>
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 validatio
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
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 AM,
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 ar
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();
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 th
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 unsubscr
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 th
quinquin2209 wrote:
I have just downloaded the DisplayTag and try with the sort function. I do
the following:
When I click on the column header, it displays "Nothing found to display".
The URL has been changed to
http://localhost:8080/test/jsp/folderList.jsp?d-49653-s=0&d-49653-o=2
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, ps.setBytes(1,fi
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
inste
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 :
true
false
But it don't wor
Johnson nickel wrote:
Hi everyone,
I am using Struts 2 and using 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 t
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
def
Hi everyone,
I am using Struts 2 and using 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 things like
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 document.forms[0].submit()
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 t
62 matches
Mail list logo