I am making a mobile site for my current web application. I have a
huge number of actions that return to JSP pages. I have a mobile
detection class written.
Is there a way that I can change the result page if the user is on a
mobile device?
I want to avoid having to write this in all my
listener?
Dave
On Tue, Feb 1, 2011 at 12:50 PM, Richard Sayre richardsa...@gmail.com
wrote:
I am making a mobile site for my current web application. I have a
huge number of actions that return to JSP pages. I have a mobile
detection class written.
Is there a way that I can
Due to the deprecation of the DOJO plugin I have been trying to
recreate all of my web site GUI without using Struts 2 tags.
When I create a Tabbed Pane, the web site loads, then the Tabbed Pane
renders in view of the user. Before the UI renders it looks like a
mess. When I used the struts 2
Thanks Dusty, and Martin
I'm happily using JQuery now - and it looks great!
Cheers
Richard
-Original Message-
From: dusty [mailto:dustin_pea...@yahoo.com]
Sent: 08 July 2009 05:06
To: user@struts.apache.org
Subject: Re: Ajax Basics
So I think straight JQuery is pretty easy
give me please?
Thanks
Richard
-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com]
Sent: 08 July 2009 15:13
To: Struts Users Mailing List
Subject: RE: Ajax Basics
good to hear..I have a build environment for that plugin in case you need it
Cheers,
Martin
GMT+5 (this week
Hi
I'm trying to get the datetimepicker working in my app. It's Struts 2
but it's totally non-AJAX at the moment. I also don't know anything
about AJAX to make matters worse.
Please could someone tell me
a) what extra jars (dojo/json etc) do I need to pop into WEB-INF?
I don't
Thanks Martin, I'll give it a go!
Richard
-Original Message-
From: Martin Uhlir [mailto:stoupa91de...@seznam.cz]
Sent: Tue 07/07/2009 17:11
To: Struts Users Mailing List
Subject: Re: Ajax Basics
Hi,
have a look at this plugin for Struts2
http://code.google.com/p/struts2-jquery/wiki
You can use the tag s:set ../ to set the session variable to empty string
as below:
s:set name=variableName value= scope=session/
--
View this message in context:
http://www.nabble.com/Struts2-Session-Invalidate.-tp15627192p23988865.html
Sent from the Struts - User mailing list archive at
Thanks, Rich,
I''m happy to help.
If I use BLOB, I have to make a lot of change to my code. Therefore, I have
to persist it as String. I used base64 to encode and decode the byte[] into
String. Because I resize the images to small ones. I use a VARCHAR length
about 10k~20k to persist the
I should have also mentioned that there are security issues with
persisting to the hard drive.
I would recommend saving to the database and loading the images as
needed. Do not save them to session. I do not think you will have a
performance problem.
Rich
You should persist the images as bytes, in a binary field or something similar.
1. Because the image is large, it's not efficient to store it in
objects(beans).
Well this depends on the Bean. Is the bean stored in session? If yes
then it will take up some memory. If you dont have alot of
You need to set hte requestURI attribute
see
http://displaytag.sourceforge.net/1.2/displaytag/tagreference.html#display-el:table
On Mon, Jun 8, 2009 at 12:11 PM, Bhaarat Sharmabhaara...@gmail.com wrote:
Hi guys,
I'm starting displaytag for the first time.
I have a simple Struts2 action that
I have some global properties in my application that I need to access
from several of my JSP pages.
In my application I have a base action which all of my actions use. I
was thinking of putting a getGlobalProperties method in that action
that return an instance of an Singleton that holds my
I have a String array and I am trying to see if there is a value in it.
Using: s:if test='foo' in myArray works.
I want to use the value of an enum in place of foo.
I tried s:if test=@my.package.mye...@enum_value in myArray
which didn't work. Using the String literal works: s:if
Is it possible to specify all action properties in session param tag
using regex or wildcards?
On Mon, May 25, 2009 at 8:39 AM, Nils-Helge Garli Hegvik
nil...@gmail.com wrote:
Yes, the ScopeInterceptor should be able to handle this case.
Nils-H
On Mon, May 25, 2009 at 1:02 PM, Richard
I have an action that does some server side logic, based on that logic
I want to present the user with a Yes/No message. If they click yes I
want to save the data the user filled out before the Yes/No message.
Is it possible to carry action properties over multiple requests? I
found the
Hi,
I have the following defined:
action name=generatePdf class=com.abc.ReportAction
method=generateReport
result name=success type=stream
param name=contentTypeapplication/pdf/param
param name=inputNamefileStream/param
param
I want to have all of s:url tags use forceAddSchemeHostAndPort=true
Is there a way to set this property globaly? I couldn;t find anything
in struts.properties.
Thanks,
Rich
-
To unsubscribe, e-mail:
I upgraded to the latest version of Struts 2 and then it worked.
On Mon, May 11, 2009 at 3:01 PM, Richard Sayre richardsa...@gmail.com wrote:
It is also happening in a Date field I have. If no dates are entered
in the text box then I get the same error. If I provide a date then
the conversion
I have a bunch of check boxes called userId. In my action I have int
userId[] and setUserId(int[] ids)
When I select a checkbox the conversion works normally. When I dont
check any boxes on the form and submit, I get the following:
2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - Property:
any suggestions on how to handle this it would be
greatly appreciated
Thanks
Rich
On Mon, May 11, 2009 at 11:10 AM, Richard Sayre richardsa...@gmail.com wrote:
I have a bunch of check boxes called userId. In my action I have int
userId[] and setUserId(int[] ids)
When I select a checkbox
...@aol.com wrote:
I bet it has something to do with a null not being assignable to an int.
Chris
-Original Message-
From: Richard Sayre richardsa...@gmail.com
To: Struts Users Mailing List user@struts.apache.org
Sent: Mon, 11 May 2009 11:44 am
Subject: Re: Converter trying to set
try cssStyle=display:none
On Fri, May 1, 2009 at 4:23 AM, taj uddin tajuddi...@yahoo.com wrote:
Hi
In my application there is a need to hide a link. I have used the s:a tag
to generate a link and the necessity is to hide this link.
can any one pls help out in this regard
to use a format that isn¹t the
short format for the locale and I suspect that¹s what is happening with
Richard.
He has two choices, either configure his date time picker to produce the
date in the required format, or as suggested write your own converter. My
only concern with Matt¹s version
). The interceptor uses reflection when it encounters a
Date setter (with a suitable annotation) in the action to look up these
fields and parse them into a Date for setting. Lets me do validation at the
same time.
Andy.
On 1 May 2009, at 12:44, Richard Sayre wrote:
I think I am going to write my
I think the HTTP_USER_AGENT header should be similar to:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+
(KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
If a request comes from the IPhone browser
On Fri, May 1, 2009 at 3:06 PM, Andy andrh...@hotmail.com wrote:
Hi,
formatedDate;
}
}
On Thu, Apr 30, 2009 at 1:19 AM, Richard Sayre
richardsa...@gmail.comwrote:
I have an Action with a date attribute
private Date myDate;
public void setMyDate(Date myDate) {
this.myDate = myDate;
}
I have a form that has a date picker (not the struts 2 date picker
formatedDate;
}
}
On Thu, Apr 30, 2009 at 1:19 AM, Richard Sayre richardsa...@gmail.comwrote:
I have an Action with a date attribute
private Date myDate;
public void setMyDate(Date myDate) {
this.myDate = myDate;
}
I have a form that has a date picker (not the struts 2 date picker
I have an Action with a date attribute
private Date myDate;
public void setMyDate(Date myDate) {
this.myDate = myDate;
}
I have a form that has a date picker (not the struts 2 date picker)
that populates a text field. When I submitt the form to my action the
property does not get set because
I have a form in my web application that can be accessd from different
places (Namespaces) in the web app.
It looks something like this
/Admin/EditSchedule.action
/MySchedules/NewSchedule.action
/Create/NewSchedule.action
/Create/EditSchedule.action
The are subtle differences in how the data is
.
On Wed, Apr 15, 2009 at 8:29 AM, Richard Sayre richardsa...@gmail.com wrote:
The Struts 2 docs says the following about the Checkbox Interceptor:
setUncheckedValue - The default value of an unchecked box can be
overridden by setting the 'uncheckedValue' property.
Where in code can I call
the name is already there from a check box that has been
submitted. I will have to find another way to achieve this since my
check box list is dynamic and can be any size. I will post some code
when I finish.
Rich
On Wed, Apr 15, 2009 at 9:05 AM, Richard Sayre richardsa...@gmail.com wrote
The Struts 2 docs says the following about the Checkbox Interceptor:
setUncheckedValue - The default value of an unchecked box can be
overridden by setting the 'uncheckedValue' property.
Where in code can I call the setUncheckedValue(String uncheckedValue) from?
The problem I am facing is the
.
Can anyone suggest a way around this?
Thanks,
Rich
P.S. a more detailed explanation is provided below.
-Original Message-
From: Richard Rauser [mailto:richard.rau...@procinity.com]
Sent: 05 March 2009 12:20
To: user@struts.apache.org
Subject: Struts 2.1.6 - No Action Extension, Cannot
Hi all,
I recently began migrating a working Struts 2.0.11 app to Struts 2.1.6. This
has been a bit of a painful process, particularly moving from the SmartURLs
plugin to the Convention plugin and from ajax tags to the Dojo plugin.
Here is my problem: I am not using an action extension within
Hi
I'm trying to validate that a filename has a .csv extension. I would
like to use @FieldExpressionValidator on the field but I can't get the
syntax right, and searching the docs I can't find much on String
manipulation in OGNL.
Could anyone help me out please?
Thanks
Oh, got it
@FieldExpressionValidator(expression=(accountFileFileName.endsWith('.cs
v'), message=, key=validate.invalidFilename,
fieldName=accountFileFileName)
Forgot you could just call methods in OGNL :)
-Richard
-Original Message-
From: Richard Gundersen [mailto:r.gunder
Hmmm, no that also prevents genuine csv files from being selected too.
Also investigating the accept attribute on the s:file tag to see if that
will help...
Any help appreciated.
-Original Message-
From: Richard Gundersen [mailto:r.gunder...@salford.ac.uk]
Sent: 27 February 2009 10:27
;
}
Remove |(xls) if you dont want to allow xls files
--- On Fri, 2/27/09, Richard Gundersen r.gunder...@salford.ac.uk
wrote:
From: Richard Gundersen r.gunder...@salford.ac.uk
Subject: RE: String manipulation
To: Struts Users Mailing List user@struts.apache.org
Date: Friday, February 27, 2009
I have encountered the same problem. While I have not fixed it with
Ajax yet, the reason it does not work is because you can not submit a
file through Ajax. You need to use an iFrame to submit file uploads.
On Tue, Feb 17, 2009 at 7:14 PM, Jon Wilmoth jonwilm...@yahoo.com wrote:
I'm curious to
I think it's because you're comparing a single character string, which OGNL
treats as a bit of a special case for some reason.
I dont have my code with me now but I'm pretty sure I had the same problem.
Google 'comparing single character string in ognl' for some pointers (sorry, I
cant verify
output). And, it doesn't set the collection in my
model either, although I believe it should according to the docs.
I've tried lots of variations on the OGNL syntax for the textfield's name
attribute but can't hit the right one; would really appreciate some help.
Thanks
Richard
.
Anyone know where the null elements are coming from (it looks like this):
[0] null
[1] Field[blah]
[2] null
[3] Field[blahblah]
Nearly there - Thanks!
-Original Message-
From: Richard Gundersen [mailto:r.gunder...@salford.ac.uk]
Sent: 05 February 2009 12:00
To: user@struts.apache.org
Subject
was wondering if there were some cool Tags that I could
make use of?
Regards
Richard Gundersen
Information Learning Services
Ashworth Building
ext 56681
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands
I am following this article to get Ajax validation working.
http://www.javaworld.com/javaworld/jw-10-2008/jw-10-struts2validation.html?page=1
I was wondering if it is nessessary to use the XML for validation with
Ajax? I was hoping to use some validation on the server side action
to do this.
to reinvent
anything if Struts can provide it out of the box. By creating the
mechanism for populating the s:fieldError/ did I rewrite somethign
that Struts can do for me?
On Thu, Jan 22, 2009 at 10:40 AM, Dave Newton newton.d...@yahoo.com wrote:
Martin Gainty wrote:
Richard-
this is the AJAX
On Thu, Jan 22, 2009 at 11:12 AM, Dave Newton newton.d...@yahoo.com wrote:
Richard Sayre wrote:
First I wrote a method called validate. At this point I found out
that I was overriding the ActionSupport method. When I tried to find
more information on this method I couldn't. When I search
Hi all,
I have a problem I hope you can help with. I have configured Tomcat 6 for
SSO using form-based authentication for two webapps and this works fine for
these webapps when using jsp's for login pages.
Things go awry when I try to configure things further. From the first of my
webapps, I
in the direction of the Xwork source used to build
Struts 2.0.12 please? Thanks.
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Gundersen, Richard [mailto:[EMAIL
D'oh, don't know how I missed that lol - thanks a million
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED
Hi
Just after a bit of advice for the best way to unit test my Struts 2
app.
I'm using a fairly standard Spring/Struts2/JPA/Junit architecture, and
my tests need access to all my spring beans (which I'm doing using
@Resource tags)
The only sticking point is setting up all of the fake 'request'
This is what I have so far. It works but I would appreciate a little
peer review (particularly regarding how I set up my session and the
logged in user)
Thanks!
@Resource
private CardPaymentAction cardPaymentAction;
ActionContext
Thanks Nils-H
I see what you mean. My action actually is implementing
ServletRequestAware, so I just tried what you suggested and I can see
how that's a bit neater actually. I'll adopt your approach.
Thanks for the tip
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone
Hi
I just have one smallish question: for some reason my
messages.properties isn't being loaded. It's configured in struts.xml
constant name=struts.custom.i18n.resources value=messages /
...and I know that file is generally working because all the other
Struts stuff is working. I'm getting this
();
Basically, a popup is opened, the content is pulled from a div in the
parent window with an ID called 'receipt' and that's what gets printed,
then the popup is closed.
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount
();
attibutes.remove(BaseAction.CURRENT_TRANSACTION);
return result;
}
}
***
Any ideas please?
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
/interceptor-stack
/interceptors
default-interceptor-ref name=paramsPrepareParamsStack
/
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From
which are good but jump around all over the
place!)
Don't know about books for 1.2.9 sorry
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Casinova [mailto
jsessionid
is being omitted, the user loses his session when he comes back...
Any help might just save my life! Thanks :)
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
As a responsible corporate
, there was nothing wrong with the cluster which is a
relief!
Anyone else with the same problem: use the action attribute if you want
jsessionid to be appended to urls...
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount
Hi
Is there an easy way to say 'if validation errors exist', in OGNL? Tried
a few things but not hit on the right syntax yet
e.g. if %{errorFieldNames.size() 0} etc etc
Thanks
Richard Gundersen
As a responsible corporate citizen, London Scottish Bank plc asks you to
consider
Doh, got it
%{errors.size}
Silly me :)
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Gundersen, Richard [mailto:[EMAIL PROTECTED]
Sent
have googled etc, but I am also lame at regex...!)
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Mead Lai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October
Sorry, ignore me. I needed to escape the slash as well, so my regex is
[0-9]{1,5}\\.[0-9]{2}
Works now :)
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From
Hi
I'm using the VisitorFieldValidator (annotations) to push validation
over to my model object in my Action.
However, I want the validation rules in my model object to work
differently depending on which Action method is being called.
What's the best way of doing this please?
Richard
Hi
In Struts 2, I need to perform some validation based on other fields
e.g.
if cardType = 'Switch', issueNumber is mandatory
I was looking for something like the validWhen tag from Struts 1. I'd
like to do it with the client side javascript if possible (to prevent
having to reload the
Cheers Dave, I'll check it out in the morning
Appreciate you help
-Richard
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thu 04/09/2008 17:14
To: Struts Users Mailing List
Subject: Re: Validation based on other fields
--- On Thu, 9/4/08, Gundersen, Richard
Hi
I'm stuggling a bit with a parameter I need to pass through to a JSP in
a frame.
It's a base64-encoded string, so I thought I'd be able to just pass it
through as a request parameter, but I found out it contains newline
chars every 64 characters (which I read is correct), so any JavaScript I
I'm trying to call the String replace method from OGNL. I can't find
any specific examples on how to do this.
I tried the following as a test: [EMAIL PROTECTED]@toString()
This worked ok. My problem is I don't know how to pass string
literals to the method.
Here is my current code:
this
myself so would appreciate advice.
Cheers
Richard
As a responsible corporate citizen, London Scottish Bank plc asks you to
consider the environment before printing this email.
*** Disclaimer ***
This electronic communication is confidential and for the exclusive use of the
addressee. It may
Thanks David
I'll give it a try - thanks for the tip
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: David N. Arnold [mailto:[EMAIL PROTECTED]
Sent
for server side validation (checked
the XWork API..)
Could anyone help me out please?
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
As a responsible corporate citizen, London Scottish Bank plc
Cheers Dave
I'll dig around and see if theres a good open source alternative (or
failing that, write one myself).
I'll post back if I find anything good
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
.
Regards,
-
On Sun, Aug 10, 2008 at 9:55 PM, Richard Yee [EMAIL PROTECTED] wrote:
You are using == to test string equality instead of equals()
-R
Sent from my iPhone
On Aug 8, 2008, at 11:52 PM, Narasimha Raju Naidu [EMAIL PROTECTED]
wrote:
hi to all,
im sending my
You are using == to test string equality instead of equals()
-R
Sent from my iPhone
On Aug 8, 2008, at 11:52 PM, Narasimha Raju Naidu
[EMAIL PROTECTED] wrote:
hi to all,
im sending my code please check where i am doing mistake
form.jsp
---
%@ taglib
when I get chance
Thanks again
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2008 8:28 AM
' messages on the screen now. I
know this is done by the javascript so I want to know the recommended
way of overriding this behaviour.
Thanks
-Richard
As a responsible corporate citizen, London Scottish Bank plc asks you to
consider the environment before printing this email.
*** Disclaimer
Nice one - thanks for the tips Gabriel, much appreciated.
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Gabriel Belingueres [mailto:[EMAIL PROTECTED
(and in line with) the
text box.
2) If I enter an invalid value twice, the original message is still
there, so I have two 'username is invalid' messages on the screen now. I
know this is done by the javascript so I want to know the recommended
way of overriding this behaviour.
Thanks
-Richard
not supposed to use the visitorFields annotation
with the others. Was giving me some really strange behaviour. Will hunt
for some better examples...
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
, it just returns to the 'input' page...
Any ideas?
Regards
Richard Gundersen
As a responsible corporate citizen, London Scottish Bank plc asks you to
consider the environment before printing this email.
*** Disclaimer ***
This electronic communication is confidential and for the exclusive use
Why don't you post your code. It seems that it might have a threading issue.
-R
Arun M wrote:
We are using struts 2.0.11
We have lots of action class. Say one of them is CustomerRegisterAction
(which extends ActionSupport ) . When a say user X registers himself on
the website; this
PROTECTED] wrote:
Richard Sayre wrote:
I have a form containing text areas. When I copy a bunch of character
data such as:
2öÂnJ1ÈÏúÄp8éÎdìåmðh4uæEÍÉieÔWán2ÅìbØÉÅÀ1JÎZÏôsC5LòÚAPúÜaÃÙPC5üÆCJWCOzùÙtÒQqùét
into the text are, it displays normally. When I save the data, the
database stores
I have a form containing text areas. When I copy a bunch of character
data such as:
2öÂnJ1ÈÏúÄp8éÎdìåmðh4uæEÍÉieÔWán2ÅìbØÉÅÀ1JÎZÏôsC5LòÚAPúÜaÃÙPC5üÆCJWCOzùÙtÒQqùét
into the text are, it displays normally. When I save the data, the
database stores the characters properly, when the data returns
self. I'm not sure what to search
for to find information on this. Can you point me to any articles or
documentation?
Thank you,
Rich
On Fri, May 30, 2008 at 5:05 PM, Laurie Harper [EMAIL PROTECTED] wrote:
Richard Sayre wrote:
Hi,
I have a few questions regarding performance in Struts 2
with your own.
Dave
--- On Mon, 6/9/08, Richard Sayre [EMAIL PROTECTED] wrote:
From: Richard Sayre [EMAIL PROTECTED]
Subject: Re: Struts 2 Performance
To: Struts Users Mailing List user@struts.apache.org
Date: Monday, June 9, 2008, 10:53 AM
Thank you for the dojo info. I did a custom build
I have an Action that could display several pages based on some info
passed to it.
Basically, its a preview action that will show the proper preview page
based on some input.
The way I am think of doing it is to use custom results to redirect to
the proper preview page:
if (preview1) {
No it doesn't
On Wed, Mar 19, 2008 at 2:14 PM, Lukasz Lenart
[EMAIL PROTECTED] wrote:
Does your action implements ValidationAware interface?
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
To
I set the file upload max size in the struts.properties to 15MB. When
I upload a file over 15MB my action returns input. Is there any way I
can check to see if the file is over the max size set in the
properties file and handle what result I want to happen myself? I
seems that it returns input
. I checked the source and I could not find
where this is being implemented. I have s:fielderror/ on my page
which i return input to, but as I said earlier my upload action is
hanging.
On Wed, Mar 19, 2008 at 1:12 PM, Richard Sayre [EMAIL PROTECTED] wrote:
I set the file upload max size
If the disable attribute is present in a HTML tag it will be disable,
no matter what the value of the attribute is.
So if I have a s:select and I say disabled=false it will be
disabled (renders disabled=disabled).
But if we have a text, and we set readonly=false it will not be editable.
On my
I made a slight error
readonly=%{fullAccess} with s:textfield does not work but
input type=text name=description id=description s:if
test=!fullAccessreadonly=true/s:if /
works.
On Thu, Mar 13, 2008 at 10:48 AM, Richard Sayre [EMAIL PROTECTED] wrote:
If the disable attribute is present
try:
s:a theme=ajax href=%{copyImageGallery}
targets=dataImageDiv%{id}/Copy/s:a
if id is on the stack, you can get it with OGNL
On Thu, Mar 13, 2008 at 10:49 AM, matthieu martin [EMAIL PROTECTED] wrote:
Hi all !
I have a little issue and I find no clues on the web, so i'm turning myself
yesOrNo) {
this.yesOrNo = yesOrNo;
}
}
(2) The JSP:
Is Struts2 good?: s:textfield name=choice readonly=%{yesOrNo}
value=Yes, it is../s:textfield
regards,
Rushikesh
On Thu, Mar 13, 2008 at 3:24 PM, Richard Sayre [EMAIL PROTECTED]
wrote:
I made a slight error
readonly
I think what you are looking for is caled bread crumbs.
There is a plug in to help with this
http://cwiki.apache.org/S2PLUGINS/breadcrumbs-plugin.html
On Fri, Feb 29, 2008 at 5:04 AM, Sanjeewa Saman [EMAIL PROTECTED] wrote:
Hi all,
I want to add my page links in the top of the each
I have a select that populates with a int,string id/value combo. To
get the s:select to select the proper option I had to crate another
value in my action (int myId). This would be set to the id of the
option to select. Then I had to set the name attribute of my select
to myId (name=myId).
On
you can say, document.location.href = 's:url
action=myRemoveAction?myId=' + myId;
This will cause the whole page to refresh, so you should probably have
a prepare method if you have any data that needs to be populated on
that page (ie your table).
I personally would use Ajax to make the call,
Thank you everyone for your input. I will research a little further
to see how I am going to do this.
On Tue, Feb 26, 2008 at 5:17 PM, Randy Burgess [EMAIL PROTECTED] wrote:
From: Richard Sayre [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Tue, 26 Feb
If I have a struts application, is it posssible to expose some of the
functionality as a Web Service? After reading some SOA documents on
the Sun website, it is possible to expose servlets as web services.
Is this possible with Strus and J2EE? Is there a document that I can
read on it? Are there
Could you elaborate a bit. Would the POJO contain the Business logic
for calling My DAO and other classes? Would the POJO replace the
action functionality? Then my action would use a POJO to do all of
the work? So any logic in MyAction.save() would go into POJO.save()
which would then be
1 - 100 of 490 matches
Mail list logo