Re: Using tag

2011-09-23 Thread Carl Ballantyne
Hey Anjib, 1 - Check out the tablib docco ( http://struts.apache.org/2.x/docs/select.html). For example with html:select you could use listKey and listValue. Should be something similar for html:options. I always use html:select though as much less code for what I need. 2 - Have your action implem

Using tag

2011-09-22 Thread Anjib Mulepati
Hi All, I have two question 1. regarding understanding , and and 2. reloding option items after form validation fail. I have agency bean with (ID, Name). I create list of agency as agencyList. I have login page which have select/option box and it get value from the DB. So my action class se

Re: Problem using tag

2009-11-26 Thread shekher awasthi
Thanks Friends! Following tag resolved the issue: On Mon, Nov 23, 2009 at 7:58 PM, Greg Lindholm wrote: > Check the doc for property *struts.url.includeParams* for the version of > struts you are using. > You may want to change it's value to none. > > > > > > > On Sat, Nov 21, 2009 at 12:48 AM

Re: Problem using tag

2009-11-23 Thread Greg Lindholm
Check the doc for property *struts.url.includeParams* for the version of struts you are using. You may want to change it's value to none. On Sat, Nov 21, 2009 at 12:48 AM, shekher awasthi wrote: > Hi Friends, > > I am using the url tag as follows: > > > > LocalInvoice > > > > Local Invoi

Re: Problem using tag

2009-11-22 Thread Samuel Robert
I am using the URL tag with paramters and have no problem with it. Just some ideas: - try by using HTML tag instead of - use another id than "url" Or give more info about how you build the other links in your JSP. Samuel 2009/11/21 shekher awasthi > Hi Friends, > > I am using the url tag as

Problem using tag

2009-11-20 Thread shekher awasthi
Hi Friends, I am using the url tag as follows: LocalInvoice Local Invoice The problem is the parameter defined in param tag is getting appended in all others urls on the JSP page so affecting other url's implementation. Please help me / guide me in resolving this issue. Thanks, Shekhe

Re: Performance issue using tag

2009-11-03 Thread musomesa
- From: Musachy Barroso To: Struts Users Mailing List Sent: Tue, Nov 3, 2009 8:04 am Subject: Re: Performance issue using tag I would suggest you to use a profiler to find out for sure what is aking the time. You can use VisualVM which comes with java 6 or the xcellent jrockit mission control

Re: Performance issue using tag

2009-11-02 Thread Musachy Barroso
I would suggest you to use a profiler to find out for sure what is taking the time. You can use VisualVM which comes with java 6 or the excellent jrockit mission control(free as well). musachy On Mon, Nov 2, 2009 at 2:50 PM, CS Wong wrote: > Hi, thanks for answering, I noticed that the quoted t

Re: Performance issue using tag

2009-11-02 Thread CS Wong
Hi, thanks for answering, I noticed that the quoted text in your reply seemed to be garbled so I guess something screwed up when I sent in my question. I've pasted my original question in a pastebin here ( http://paste2.org/p/495951) so that you can read it better. Sorry for any inconvenience cause

Re: Performance issue using tag

2009-11-02 Thread Musachy Barroso
It is the same struts code running all the time, so it should as fast(or slow) every time. The only thing that changes is the call to the EJB, so I would bet that the problem is there. musachy On Mon, Nov 2, 2009 at 9:57 AM, CS Wong wrote: > Hi, > > I seem to be having a performance issue in som

Performance issue using tag

2009-11-02 Thread CS Wong
Hi, I seem to be having a performance issue in some of my Struts 2 actions. On several of my pages, I render a couple of drop down tags in my output page. I populate the drop down tags by instantiating an tag and invoking the methods in the bean to call an EJB service and populating a collection

Problem with using tag for file upload

2009-02-19 Thread pascal . gehring
Hello at all, im a web-developer and we're using struts 2 for the web frontend. I've developed an application with does file upload handling and did it as following:  

Re: [S2] Using tag for choosing file (no uploading)

2008-12-23 Thread Milan Milanovic
ile tag. Since you don't need >> an s:file tag, it shouldn't be an issue. >> >> If you still think it's an issue post the code and configs--I upload >> files all the time without any difficulties, so it's probably something >> straight-forward. >&

Re: [S2] Using tag for choosing file (no uploading)

2008-12-23 Thread Milan Milanovic
de and configs--I upload files > all the time without any difficulties, so it's probably something > straight-forward. > > Dave > > --- On Mon, 12/22/08, Milan Milanovic wrote: > > From: Milan Milanovic > Subject: Re: [S2] Using tag for choosing file (no uploading)

Re: [S2] Using tag for choosing file (no uploading)

2008-12-22 Thread Dave Newton
Dave --- On Mon, 12/22/08, Milan Milanovic wrote: From: Milan Milanovic Subject: Re: [S2] Using tag for choosing file (no uploading) To: user@struts.apache.org Date: Monday, December 22, 2008, 5:56 PM Dear Dave, newton.dave wrote: > >> btw - do you maybe know why when file tag is

Re: [S2] Using tag for choosing file (no uploading)

2008-12-22 Thread Milan Milanovic
Dear Dave, newton.dave wrote: > >> btw - do you maybe know why when file tag is in the tag, >> form action doesn't redirect ? > > Not without further information. I have no issues uploading files. Since > you're not uploading a file, this shouldn't be an issue for you anyway. > > Well, it

Re: [S2] Using tag for choosing file (no uploading)

2008-12-22 Thread Dave Newton
> I'm asking here for choosing file on the disk, not downloading. ... The file is going from the web application to the client, right? That's downloading. > btw - do you maybe know why when file tag is in the tag, > form action doesn't redirect ? Not without further information. I have no is

Re: [S2] Using tag for choosing file (no uploading)

2008-12-22 Thread Milan Milanovic
Dear Dave, newton.dave wrote: > > --- On Mon, 12/22/08, Milan Milanovic wrote: >> I'm asking if S2 have some file chooser tag for this? > > No! File downloading is handled by the client! > > Actually, I'm asking here for choosing file on the disk, not downloading. newton.dave wrote: > >>

Re: [S2] Using tag for choosing file (no uploading)

2008-12-22 Thread Dave Newton
--- On Mon, 12/22/08, Milan Milanovic wrote: > I'm asking if S2 have some file chooser tag for this? No! File downloading is handled by the client! > Can you post here any link for S2 "stream" response that I can see? http://struts.apache.org/2.x/docs/stream-result.html > I need to enable "down

Re: [S2] Using tag for choosing file (no uploading)

2008-12-22 Thread Milan Milanovic
Dear Dave, thanks on response. newton.dave wrote: > > The tag is for uploading files. Period. It's not a > general-purpose "enter a filename here" tag. > > We just went through this (or at least tried to) with somebody else. > You're getting the enctype message because a file upload demands

Re: [S2] Using tag for choosing file (no uploading)

2008-12-22 Thread Dave Newton
The tag is for uploading files. Period. It's not a general-purpose "enter a filename here" tag. We just went through this (or at least tried to) with somebody else. You're getting the enctype message because a file upload demands a multipart encoding. There is no tag for *downloading* a file.

Re: [S2] Using tag for choosing file (no uploading)

2008-12-22 Thread Milan Milanovic
And one more thing, when I click submit button on the form which contains it doesn't redirect to the page I defined in struts.xml for that form action, it just remain on the page with the form? -- Thx, M. Milan Milanovic wrote: > > Hi, > > I need to use tag just to select file in the system

[S2] Using tag for choosing file (no uploading)

2008-12-22 Thread Milan Milanovic
Hi, I need to use tag just to select file in the system, but not to upload this file, I just want to get path to it, so that I can parse it in my action class. However when I put this tag in the tag and try to select file, file was selected but I get an error in console about "missing multipart

Re: Getting error in using tag library : The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'acceptCharset', (JSP 1.1 spec, 5.4.1)

2008-03-14 Thread Antonio Petrelli
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,

Re: Getting error in using tag library : The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'acceptCharset', (JSP 1.1 spec, 5.4.1)

2008-03-13 Thread kannan_307
I am using the struts version 1.2.4 Antonio Petrelli-3 wrote: > > 2008/3/13, kannan_307 <[EMAIL PROTECTED]>: >> >> >> When I deploying my War file in Weblogic 8.1, I am getting the following >> error: >> >> Error in using tag library uri='

Re: Getting error in using tag library : The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'acceptCharset', (JSP 1.1 spec, 5.4.1)

2008-03-13 Thread Antonio Petrelli
2008/3/13, kannan_307 <[EMAIL PROTECTED]>: > > > When I deploying my War file in Weblogic 8.1, I am getting the following > error: > > Error in using tag library uri='/WEB-INF/tlds/struts-html.tld' > prefix='html': The Tag class 'org.apache.

Getting error in using tag library : The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'acceptCharset', (JSP 1.1 spec, 5.4.1)

2008-03-13 Thread kannan_307
When I deploying my War file in Weblogic 8.1, I am getting the following error: Error in using tag library uri='/WEB-INF/tlds/struts-html.tld' prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared a

Re: using tag in scriptlet

2006-09-11 Thread Laurie Harper
es not work too. I have also set up resource bundle in strutsconfig. it works, when i use tag out of scriplet. David Grundberg <[EMAIL PROTECTED]> 09/11/2006 05:12 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: using ta

Re: using tag in scriptlet

2006-09-11 Thread Alperen . PAKER
05:12 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: using tag in scriptlet I would try using " instead of ' as value delimiter. (key="test.hello" instead of key='test.hello') Have you set up the resource

Re: using tag in scriptlet

2006-09-11 Thread David Grundberg
I would try using " instead of ' as value delimiter. (key="test.hello" instead of key='test.hello') Have you set up the resource bundle in strutsconfig? [EMAIL PROTECTED] wrote: Hi Everybody, i have a struts application which gives multilanguage support. And i want to a assign a property fil

using tag in scriptlet

2006-09-11 Thread Alperen . PAKER
Hi Everybody, i have a struts application which gives multilanguage support. And i want to a assign a property file key value to a string in scriptlet. Here is the example jsp: . . . <% String str=""; out.print(str); %> . . When i want to print "str" value, there is no output show

Re: problem with using Tag and Scriplets together

2006-05-15 Thread Jorge Martín Cuervo
You can't mix jsp and scriptlet those manner. Scriptlet generates the output, and the output can't modify the scriptlet code. Instead of using scriptlets try to use c:set tag from jstl library. El lun, 15 de 05 de 2006 a las 09:04, J Gotsch escribió: > Any idea how I can set a local JSP variab

problem with using Tag and Scriplets together

2006-05-15 Thread J Gotsch
Any idea how I can set a local JSP variable with the value of a bean property in a JSP? In the example below, I want to set tempRole to the value of the securityRoleName prperty. But This is not working. <% String tempRole = null; %> <% if (tempRole=

re: File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-11 Thread kommineni Anita
Yeah it worked by just using the common_fileupload.jar and also by removing the commons 1.1 from all my other libs in the Websphere Appserver lib ext aswell. Thanks, Anita --- Kyle Wu <[EMAIL PROTECTED]> wrote: > as far as I know, file upload issue just require > commons-fileupload.jar which i

Re: File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread siva sajja
hope you have given your form declaration as kommineni Anita <[EMAIL PROTECTED]> 写道: David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream , though I have the necessary jar's in place. Thanks, /Anita --

re: File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread Kyle Wu
as far as I know, file upload issue just require commons-fileupload.jar which is already included in the struts-blank demo, why don't you just do as what is demostrated in the file upload demo? just a guess... kommineni Anita <[EMAIL PROTECTED]> 写道: David, U are right...But If I change

Re: reXXXXXX File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
Yes I do have both... --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > On 5/10/06, kommineni Anita <[EMAIL PROTECTED]> > wrote: > > David, > > U are right...But If I change that to post I get > > > java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, > > though I have

Re: reXXXXXX File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread Wendy Smoak
On 5/10/06, kommineni Anita <[EMAIL PROTECTED]> wrote: David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, though I have the necessary jar's in place. If you're using Commons Fileupload 1.1, it requires Co

Re: reXXXXXX File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, though I have the necessary jar's in place. Thanks, /Anita --- David Evans <[EMAIL PROTECTED]> wrote: > Just a guess, as i don't use the struts html tags,

Re: reXXXXXX File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread David Evans
Just a guess, as i don't use the struts html tags, but shouldn't that method=get be method="post"? you can't "get" a multi part form. dave On Wed, 2006-05-10 at 11:59 -0700, kommineni Anita wrote: > Kyle, > Thanks for the reply. But I ahve it declared. > I have that defined in my html as follows

Re: re�� File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
Kyle, Thanks for the reply. But I ahve it declared. I have that defined in my html as follows Appreciate any further insights.. > --- Kyle Wu <[EMAIL PROTECTED]> wrote: > mayby you forgot to set the "enctype" attribute in > the "" tag, it should be > > > > kommineni Anita <[EMAIL P

re: File upload using tag fails.. java.lang.IllegalArgumentException:

2006-05-10 Thread Kyle Wu
mayby you forgot to set the "enctype" attribute in the "" tag, it should be kommineni Anita <[EMAIL PROTECTED]> Hi, Trying to upload a file using property="primaryFile">. In my Action form I have the property defined as org.apache.struts.upload.FormFile and have appropriate gette

File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
Hi, Trying to upload a file using . In my Action form I have the property defined as org.apache.struts.upload.FormFile and have appropriate getter and setter. It gives me this exception E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.IllegalArgumentException: Cannot invoke com.stryk

Re: using tag

2006-03-10 Thread Tamas Szabo
On 3/11/06, temp temp <[EMAIL PROTECTED]> wrote: > > Can somebody help me with this? Well, if I have a problem I usually remove all the stuff that works so I can isolate the problem. That way you would have only the code you posted in the JSP (the error would not be at line 220) so you could post

Re: using tag

2006-03-10 Thread Laurie Harper
To understand why this is a problem, look at the source of the Java servlet that's generated. Remember that the JSP is translated statically into Java, and then the resulting Java is compiled and run. Try this instead: 2 3 L. temp temp wrote: Can somebody help me with this? M

Re: using tag

2006-03-10 Thread temp temp
Can somebody help me with this? Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 3/10/06, Michael Jouravlev wrote: > On 3/10/06, temp temp wrote: > > I am using struts 1.1 > > > > I using logic equal tag to check whether a page context attribute value > > equals to some value . > > > > > >

Re: using tag

2006-03-10 Thread Michael Jouravlev
On 3/10/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 3/10/06, temp temp <[EMAIL PROTECTED]> wrote: > > I am using struts 1.1 > > > > I using logic equal tag to check whether a page context attribute value > > equals to some value . > > > > > > here is my code > > > > > >

Re: using tag

2006-03-10 Thread Michael Jouravlev
On 3/10/06, temp temp <[EMAIL PROTECTED]> wrote: > I am using struts 1.1 > > I using logic equal tag to check whether a page context attribute value > equals to some value . > > > here is my code > > > > > > > > > > > So only one logi

using tag

2006-03-10 Thread temp temp
I am using struts 1.1 I using logic equal tag to check whether a page context attribute value equals to some value . here is my code So only one logic equal will be true but not both .But when I call this js

Re: Using tag with a Map

2005-05-29 Thread Wendy Smoak
From: "Eric C. Hein" <[EMAIL PROTECTED]> ...it looks like the list is being pulled from the map like I want it to, but instead of the actual list being used as collection to iterate, the tag lib is calling toString() on the list, and looking for a bean under that name. Okay, I gave up and rea

Re: Using tag with a Map

2005-05-28 Thread Eric C. Hein
anks Again, Eric - Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, May 28, 2005 5:32 PM Subject: Re: Using tag with a Map From: "Eric C. Hein" <[EMAIL PROTECTED]> Was this past

Re: Using tag with a Map

2005-05-28 Thread Martin Gainty
Eric If you absolutely positively need a quote on each side try " Viel Gluck, Martin- - Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, May 28, 2005 8:32 PM Subject: Re: Using tag with a Map

Re: Using tag with a Map

2005-05-28 Thread Wendy Smoak
From: "Eric C. Hein" <[EMAIL PROTECTED]> Was this pasted in? You have a slash in front of the dollar sign, and the ending curly brace seems to be missing in the collection attribute. I've never seen escaped double quotes used in an expression, either. Try just ${departmentMap.sales}

Using tag with a Map

2005-05-28 Thread Eric C. Hein
I know I can populate a drop down using a List as follows: labelProperty="value"/> But to clean things up a bit I'd like to put all my department List(s) in a map. So the collection would be akin to -> departmentMap.get("sales"), for example. When I try using: property="la

how to get "field" errors in Struts 1.2.6 using tag-libs

2005-01-19 Thread Paulo Alvim
Hi! I need to extend several struts-el fields based on errors but all my validation messages are stored in global scope. I've tried to get (in my tag-lib extension): ActionMessages errors = RequestUtils.getActionMessages(pageContext,this.property); or ActionMessages errors = TagU

RE: how to implement && using tag in struts

2004-06-17 Thread Slattery, Tim - BLS
>how do i implement && and || using > > example > i need to convert > <% if( a > b && b > c) { > > } > %> > > into struts tag The easiest way is to use the JSTL "if" tag instead of the Struts logic tags: somethingorother -- Tim Slattery [EMAIL PROTECTED] --

RE: how to implement && using tag in struts

2004-06-17 Thread mike . raath
Try a nested version: ... || would involve a few more tags. -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: 17 June 2004 14:45 To: Struts Users Mailing List Subject: RE: how to implement && using tag in struts I don

RE: how to implement && using tag in struts

2004-06-17 Thread Robert Taylor
I don't think you can. You can do this sort of thing with JSTL: robert > -Original Message- > From: Asim Ghosh [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 17, 2004 9:35 AM > To: [EMAIL PROTECTED] > Subject: how to implement && using tag

how to implement && using tag in struts

2004-06-17 Thread Asim Ghosh
hello guys, how do i implement && and || using example i need to convert <% if( a > b && b > c) { } %> into struts tag Asim - ALL-NEW Yahoo! Messenger - so many all-new ways to express your

How do I compare object properties using tag?

2004-04-02 Thread Daynell Trent
I have an object that I put in the session. In my jsp, when I interate through a collection I want to test each object in the collection to see if it matches the session object. Can this be done with the ? If so, how do I specify which property to compare with.