sorry, but this is normal behaviour. tiles:insert basically does a
jsp:include, and a jsp:include isn't cheap.
What exact are your times?
Leon
On 7/21/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] ha scritto:
> Hi,
>
> I have a rendering issue with Struts+Tiles (1.2.8)
> I r
Hii frnds
If i want to show a form in edit mode, and suppose my form has a drop
dowm box say country drop down box ,
In this drop down i want to show all the countries and also the counrty
tht was previoulsy selected by the user as selected option.
How do u do that.
I think that for this ---
In My Web application,
i have page ot show "session_expired message" in login page. When session
expires user is navigated to this page from server side.
I am checking this in all execute methods of my action.
Once the session expired user is navigated to login page.
If user clicks logout button
Hi,
I'm trying with another action path in my validation.xml file, even if I'm
quite doubting..
So, my validator-rules.xml file is the default one.. with basics validators
tag.
By the way, my struts-config file :
It still does not work.
I'm curr
Hi All,
Please send the sample class which extends to Action Servlet!!
Thanks in advance,
Rajesh Gannarapu
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, c
Vaneet Sharma ha scritto:
Hii frnds
But how on earth i will display the previulsy selected Country as
checked.
The method "getSelectedCountry" of your bean must return the selected
country value: this way the correct "option" element will be selected.
HTH
Antonio
--
[EMAIL PROTECTED] ha scritto:
Please send the sample class which extends to Action Servlet!!
Why do you want to extend ActionServlet?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
For providing the authorization
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 3:08 PM
To: Struts Users Mailing List
Subject: Re: sample class which extends ActionServlet
[EMAIL PROTECTED] ha scritto:
> Please send the sample class which e
Raghuveer ha scritto:
In log page once the session expired if user clicks BROWSER BACK button
,user should be in login page only when session expires.
Can you elaborate this? I don't understand what you need.
Ciao
Antonio
---
Vinicius Carvalho ha scritto:
Is there an easy way to do that? Instead of using JS to loop through
all components and set their values = ''?
You answered yourself :-( I also had a similar problem long time ago and
what I did was this kind of looping, (skipping the buttons!)
Ciao
Antonio
---
[EMAIL PROTECTED] ha scritto:
For providing the authorization
It is a best practice to use Intercepting Filter pattern for
authorizations, avoid extending ActionServlet:
http://java.sun.com/blueprints/patterns/InterceptingFilter.html
HTH
Antonio
HI All,
You cannot disable the back button(I guess so), instead u can keep a
check in each jsp page based on one session varaible
Which is set into session once the user is logged in (ex:u can keep the
user id in session)and when user clicks logout, the logoutAction class
is called and it just re
Vinicius Carvalho ha scritto:
Hello there! I have a multibox on my jsp, that maps to a String[] id;
property on my formbean. The problem is, when the user submits it, I
get my Array filled, but the first position of the array is filled
with a strange [EMAIL PROTECTED] string. Seems that some weir
It's better doing with Filters...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 11:41 AM
To: user@struts.apache.org
Subject: RE: sample class which extends ActionServlet
For providing the authorization
-Original Message-
From:
Hi,
My requirement for a piece of code is that onmouseover on a piece of
text in a table column , a pop up menu (the ones which disappear as soon
as u take the mouse away) should be displayed which can be clicked to
fwd to other action classes.
Does anybody have any idea if struts supports this
I think the problem is on server side.
As in the dispatch aciton, the below statement
org.apache.struts.action.ActionErrors errors = frm.validate( mapping,
request );
is returning just one error even when the 2 entries entered by user are
invalid. only after fixing the first the second error
On 7/20/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Jakub Milkiewicz ha scritto:
> I really like Refirect after post patterny by Jouravlev where author
> promotes saving submitted data in temporary storage (for example session)
> and then use redirect to output action adding some kind of iden
On 7/21/06, Vaneet Sharma <[EMAIL PROTECTED]> wrote:
Hii frnds
If i want to show a form in edit mode, and suppose my form has a drop
dowm box say country drop down box ,
In this drop down i want to show all the countries and also the counrty
tht was previoulsy selected by the user as selected
(inline)
-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 20, 2006 6:16 PM
To: Struts Users Mailing List
Subject: Re: FormDef
Um, by nested beans I mean a bean which is a property of ActionForm
like Employee, not a bean which is a property of a b
Thanks, now I got it. How could I not see the difference before? ;-)
On 7/21/06, Hubert Rabago <[EMAIL PROTECTED]> wrote:
(inline)
> -Original Message-
> From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 20, 2006 6:16 PM
> To: Struts Users Mailing List
> Subject:
Hi,
You can build an edit page easily by forwarding user to your edit page by an
action. All you have to do is to set properties which you want to be selected
initially in edit page. For example:
MyActionForm f = new MyActionForm();
f.setSelectedCountry("blabla");
request.setAttribute(m
You should find out what version of the commons validator you are using.
Notes from the Jakarts Commons Validator site shows that older versions may
stop on the first error for INDEXED properties. It sounds like your form
uses and indexed property. See notes like this:
http://mail-archives.apache
I have a custom validation routine (class mapped through
validator-rules.xml). I'd like to be able to pass two fields to my
routine rather than just one. Is there any way of doing this?
- Scott
-
To unsubscribe, e-mail: [EMAI
I've been having trouble posting to the list. It apparently works now
:). Sorry folks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks a lot, David for your help.
From: "David Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: errorStyleClass not working
Date: Fri, 21 Jul 2006 13:16:21 -0400
You should find out what version of the commons validator you are
What is the best way to convert an object to an Integer .If casting dosen't
work?
Thanks & Regards
-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2ยข/min or less.
After doing some more research ran into some posts about ActionRedirect.
Would this be a better fit for what I'm trying to do?
Thanks!
--
View this message in context:
http://www.nabble.com/Can-Action-class-send-user-to-url-not-in-struts-config.xml--tf1968310.html#a5438442
Sent from the Strut
temp temp wrote:
What is the best way to convert an object to an Integer .If casting dosen't
work?
Object probablyAnInteger = ;
Integer someInt;
if ( probablyAnInteger == null || probablyAnInteger.equals( "" ) )
{
someInt = null;
}
else
{
try
{
someInt = new Integer( probablyAnI
The object which I want to convert into Integer is a number and can be
converted to int, its not a string or a boolean .
I get this object either from request attribute , or request parameter or a
DAO.
If I get this ob ject from request parameter I cannot cast it to integer
because I ge
On 7/21/06, temp temp <[EMAIL PROTECTED]> wrote:
If I get this ob ject from request parameter I cannot cast it to integer
because I get compilation error stating that cannot cast a String to integer
in this case do I have to create a new Integer every time ?
Well, d'oh!
--
Straight from the doc located at
http://java.sun.com/j2se/1.5.0/docs/api/
//obtain a string result of the requested Attribute
returnedParameterName = (java.lang.String)req.getAttribute(ParameterToObtain);
//obtain a Integer object
Integer intObject = new Integer(returnedParameterName);
//obtain th
temp temp wrote:
The object which I want to convert into Integer is a number and can be
converted to int, its not a string or a boolean .
I get this object either from request attribute , or request parameter or a
DAO.
If I get this ob ject from request parameter I cannot cast it to int
You could always use html:image or html:button instead of c:url. That
would allow you to generate a regular form input based submit image. Try
thinking about how you would implement your form in HTML if you weren't
using Struts, then look for the tags that support that design.
L.
Caroline Jen
>>Please send the sample class which extends to Action Servlet!!
>
> For providing the authorization
>
It's better doing with Filters...
Filters, yes, but there's a processPreProcess extension point in
RequestProcessor.
I think Servlets 2.2 doesn't have filters, but who uses that old thing?
I have an action form defined like this:
public MyForm extends ActionForm {
private Map values = new TreeMap();
public Map getValues() { return this.values; }
public Set getKeys() { return this.values.keySet(); }
}
and in my JSP,
value="first">First
value="second">Second
When I acce
On 7/21/06, David Friedman <[EMAIL PROTECTED]> wrote:
You should find out what version of the commons validator you are using.
Notes from the Jakarts Commons Validator site shows that older versions may
stop on the first error for INDEXED properties. It sounds like your form
uses and indexed pro
All the validations packaged with Struts have the ActionForm passed to
the validation method and then they retrieve the property using
reflection:
String value = ValidatorUtils.getValueAsString(bean, field.getProperty());
So you can just get the two property values from the ActionForm in
your va
Scott:
See: http://struts.apache.org/1.2.9/faqs/indexedprops.html
I think it remains for you to provide a method a la:
public Object getKey(String key) {
return values.get(key);
}
Regards,
M
-Original Message-
From: Scott Van Wart [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2
I remember somewhere on this list an announcement of Web Parts in the
sourceforg.net (collection of various web components such as Filter,
logging, etc). Do someone has a link?
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
On 7/21/06, Duong BaTien <[EMAIL PROTECTED]> wrote:
I remember somewhere on this list an announcement of Web Parts in the
sourceforg.net (collection of various web components such as Filter,
logging, etc). Do someone has a link?
http://javawebparts.sourceforge.net/
--
Wendy
--
On 7/21/06, Duong BaTien <[EMAIL PROTECTED]> wrote:
I remember somewhere on this list an announcement of Web Parts in the
sourceforg.net (collection of various web components such as Filter,
logging, etc). Do someone has a link?
This one:
http://www.microsoft.com/sharepoint/server/downloads/we
Thanks Wendy and Michael. Have a good weekend. I got it.
BaTien
On Fri, 2006-07-21 at 16:47 -0700, Wendy Smoak wrote:
> On 7/21/06, Duong BaTien <[EMAIL PROTECTED]> wrote:
> > I remember somewhere on this list an announcement of Web Parts in the
> > sourceforg.net (collection of various web compo
Thanks all for replying... I wasn't a Struts matter.
BEA has as default value for servlet reload time 1 sec ( lame default
settings for a production enviroment). That creates locks during
redirects especially if the page has 7-8 tiles on it. Now all is good!
Thanks for replying and I'm sure this
Hmm... I tried a number of variations. The example in the documentation
you listed seems to include the bean as as opposed to
me implicitly using the myForm bean declared by .
I noticed the error message mentions
'org.apache.struts.taglib.html.BEAN' rather than the MyForm class. The
variat
(see my previous post)
Doesn't seem to work (since html:multibox won't use anything but the
bean declared by ). I think my main issue is the difference
between a bean declared directly (jsp:useBean) and one instantiated from
. I guess I need to do some more doc reading to figure out
how to
Hi,
One possible workaround that comes in my mind is to have a DataForm for each
widget, assemble them into an ArrayList inside the Action class, according to
how you want the q/a to appear. When submitting this page (collection of
forms), just do the reverse to know the user response to each w
Hay, do some Google on Struts Nested Forms.
well, this could be of good help to you. (i haven't done much investigations
with your needs)
http://www.learntechnology.net/struts-nested.do
Thanks and Regards,
Thomas Joseph
- Original Message -
From: Jakub Milkiewicz
To: Struts User
47 matches
Mail list logo