s:radio

2008-11-21 Thread srinivasa_v .
Hi All, Is there any way to customise or our own lable in

About incresing file upload size in Struts 2

2008-11-21 Thread Hardik Shah
can anybody give me detailed configuration to increase size of file upload in struts 2.0.11.2 please help me -- View this message in context: http://www.nabble.com/About-incresing-file-upload-size-in-Struts-2-tp20633816p20633816.html Sent from the Struts - User mailing list archive at Nabble.co

S2 custom tag - Passing custom tag attribute into action class

2008-11-21 Thread ManiKanta G
Hi, I m struck with an issue with custom tag. And its kind of important for my project completion. I wrote a custom tag in S2 and of course related ftl file. It is just like wrapper around a select box and few other controls. And I need to populate the select box according to the attribute 'lengt

Problem with Select tag during migration

2008-11-21 Thread nikunj
Respected All, In Struts1X, having attributes property and labelproperty those are having list data type. Example: But Struts2 doesn't support separate List data type for label and value. Example: Data type of comboLabelValue is List, Which add object having key/value pro

Populating textfield with dynamic string, stop expression evaluation.

2008-11-21 Thread Fender963
Hey All, I've tried searching but either I dont' know what to search for, or it simply hasn't been asked yet. I have a textfield Works fine until the string gets returned with something like the following: "${dont.evaluate}" I want the textfield to actually contain this string, instead it i

setting a var with dynamic content

2008-11-21 Thread Frank Maritato
I need to set a variable that is specific to the object id I'm working with. I tried something like this: and then later in the page: but didn't get anything. Is there a different way to do this? -- Frank Maritato - To uns

RE: Dojo 404 and

2008-11-21 Thread Rabin Aryal
Gerhard, Thanks for the reply. I am using 2.0.11. Rabin -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Gerhard Große Sent: Friday, November 21, 2008 3:35 PM To: user@struts.apache.org Subject: Re: Dojo 404 and Rabin Aryal netlert.com> writes: > > Hello, > > I g

RE: Loading and Calling Java Script in Struts

2008-11-21 Thread Karr, David
You might be better off with something like this: > -Original Message- > From: Casinova [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2008 1:09 PM > To: user@struts.apache.org > Subject: Re: Loading and Calling Java Script in Struts > > > thanks for suggestion > i have stru

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Casinova
thanks for suggestion i have struts 1.2.9 i have included jstl 1.1 and now i am using like <[EMAIL PROTECTED] uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%> paths are "/> "/> "/> please refer project structure as given above please suggest it feels i am near to solution... Tha

Re: Dojo 404 and

2008-11-21 Thread Gerhard Große
Rabin Aryal netlert.com> writes: > > Hello, > > I get the 404 on all the struts/dojo js and css files not found. > Hi, this looks like you are using 2.0.12 and ran into a bug that sneaked into this release: See https://issues.apache.org/struts/browse/WW-2849 This is fixed meanwhile, but a

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Dave Newton
Use either JSTL's tag, S1's equivalent, or S2's equivalent. I don't remember what version of Struts you're using. Dave --- On Fri, 11/21/08, Casinova <[EMAIL PROTECTED]> wrote: > From: Casinova <[EMAIL PROTECTED]> > Subject: Re: Loading and Calling Java Script in Struts > To: user@struts.apac

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic
I solved with two lists..it is not so elegant solution, but there is obviously no better solution. -- Milan Milan Milanovic wrote: > > Dave, > > actually my form isn't submitted twice :-(. I found now what was the > problem. I set one multiple option select in jsp like this: > >

Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic
O.K. Good. One more thing, it is maybe good to add SUBREPORT_DIR JR param as a JR result param too, or to use directory location to say that subreport is located in the same dir. -- Milan newton.dave wrote: > > A patch file would be better, but I can do it this way too. > > > --- On Fri, 11

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Casinova
Sorry to say you but not getting what to type in src="" Please can u brief me.. Thanks a lot newton.dave wrote: > > --- On Fri, 11/21/08, Casinova wrote: >> u tried that but getting jquery null or not a object error. >> [...] >> and right now i m giving absolute path like >> >>

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Casinova wrote: > u tried that but getting jquery null or not a object error. > [...] > and right now i m giving absolute path like > >

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Casinova
Thanks for your suggestion.. u tried that but getting jquery null or not a object error. i have project in IDE like ProjectName -webpages js jquery.js JSloader_1.js and right now i m giving absolute path

Re: OGNL question about changed values

2008-11-21 Thread Dale Newfield
Torsten Krah wrote: Hi, I want to know which "rows" in my table (s:iterator) are "dirty". Is there any way to know (beside looking manually in the parameter map and loading again db state + looking at old/new values before saving) which rows have changed? You can include previous values in hi

Struts2's filter architecture vs. J2EE UserTransactions - problem with J2EE spec?

2008-11-21 Thread Gerhard Große
Hi, we are currently evaluating to migrate a Struts1 J2EE-Application to Struts2 and discovered something which might be a major problem or might not, which is what I am trying to find out: In section J2EE.4.2.1 the J2EE specifications (1.3, 1.4 and 5.0 at least) states: "Servlet filters and

Re: OGNL question about changed values

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Torsten Krah wrote: > Hi, I want to know which "rows" in my table (s:iterator) are "dirty". > Is there any way to know (beside looking manually in the parameter map > and loading again db state + looking at old/new values before > saving) which rows have changed? I don't see

OGNL question about changed values

2008-11-21 Thread Torsten Krah
Hi, I want to know which "rows" in my table (s:iterator) are "dirty". Is there any way to know (beside looking manually in the parameter map and loading again db state + looking at old/new values before saving) which rows have changed? -- Bitte senden Sie mir keine Word- oder PowerPoint-Anhäng

Re: JasperReports Plugin datasource

2008-11-21 Thread Dave Newton
A patch file would be better, but I can do it this way too. --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > From: Milan Milanovic <[EMAIL PROTECTED]> > Subject: Re: JasperReports Plugin datasource > To: user@struts.apache.org > Date: Friday, November 21, 2008, 11:49 AM > Dave,

Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic
Dave, I put the fix: https://issues.apache.org/struts/browse/WW-2884 https://issues.apache.org/struts/browse/WW-2884 . Please check it if I did it correctly. -- Milan newton.dave wrote: > > --- On Fri, 11/21/08, Milan Milanovic wrote: >> O.K. Where can I do this ? > > On the S2 JIRA at: ht

Re: JasperReports Plugin datasource

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Milan Milanovic wrote: > O.K. Where can I do this ? On the S2 JIRA at: https://issues.apache.org/struts/secure/Dashboard.jspa (I think) Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic
Dave, newton.dave wrote: > >> I added connection param to the JR result and now it works perfectly >> :-)! If connection is found, dataSource is not used. > > Glad to hear it. If you want, you could create a patch and a JIRA and I'll > apply it to the JR result and finish some of my earlier

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic
Dave, actually my form isn't submitted twice :-(. I found now what was the problem. I set one multiple option select in jsp like this: The problem is because my users list contain e.g. three users: Mike, John, Paul. And when user select for example one of them in jsp page, I just got added tha

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Dave Newton
The point is that I didn't (and still don't) believe the text is being rendered appropriately, which is why I said try using pastebin or a similar service. --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > Yes, you are right. They are not copied well. This is exact code: > > /m

Dojo 404 and

2008-11-21 Thread Rabin Aryal
Hello, I get the 404 on all the struts/dojo js and css files not found. I have following filter mapping in web.xml struts2 /* When I changed it to struts2 /struts/* It took down my application and I get the infinite looping err

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic
Yes, you are right. They are not copied well. This is exact code: /myApp/index.jsp Main   |  /myApp/j_acegi_logout Logout But this has no implication on form submiting ? It is not part of the form. I don't have AJAX code on the page except datetimepickers. -- Milan newton.dave wrote: > >

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Casinova wrote: >

Loading and Calling Java Script in Struts

2008-11-21 Thread Casinova
HI all. i found strange issue with my struts application. I have a jsp page like below test.jsp and something like this script type="text/javascript"> var jquery = new Jquery(); jquery.load('calendar'); jquery.newCalendar('test1'); jq

Re: JasperReports Plugin datasource

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Milan Milanovic wrote: > I found what is the problem. Query that JR report run returned no rows, > so it show it like empty. [OT] There's a JR parameter for that, btw, so if it's a report with no data elements it'll still print out something. > I added connection param to t

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Dave Newton
Those aren't links. They're text. That's why I asked if everything came through okay. --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > From: Milan Milanovic <[EMAIL PROTECTED]> > Subject: Re: Form submitted twice (no AJAX!) > To: user@struts.apache.org > Date: Friday, November

RE: Form submitted twice (no AJAX!)

2008-11-21 Thread Martin Gainty
Good Afternoon Milan forgive the mid-thread interruption but Dave is talking about the theme setting for struts head tag set to simple or ajax as in so if you specified attribute theme=simple you will reference $classpath/template/simple/head.ftl or if you specified attribute theme=ajax you

Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic
Hi Dave, I found what is the problem. Query that JR report run returned no rows, so it show it like empty. I added connection param to the JR result and now it works perfectly :-)! If connection is found, dataSource is not used. Great job, thanks! -- Milan newton.dave wrote: > > --- On Fri,

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic
There is no menu code, just those two links. Milan newton.dave wrote: > >>> > /myApp/index.jsp Main >>>   |  >>> > /myApp/j_acegi_logout Logout > > Is your menu not implemented yet? > > > --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > >> From: Milan Milanovic <[EMAIL

RE: Struts 2: What do i need to do to be able to upload files

2008-11-21 Thread Peterson, Ryan
Check here: http://struts.apache.org/2.0.6/docs/how-do-we-upload-files.html Specifically the struts.multipart.maxSize property. -Original Message- From: ryan webb [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 4:53 PM To: Struts Users Mailing List Subject: Re: Struts 2: What

Re: JasperReports Plugin datasource

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > I managed to call fillReport with open Connection object, > but I just get an empty report page?! If I try to pass Connection object > as dataSource in JR result, then I get that exception that Connection is > null and I see report

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Dave Newton
>> > /myApp/index.jsp Main >>   |  >> > /myApp/j_acegi_logout Logout Is your menu not implemented yet? --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > From: Milan Milanovic <[EMAIL PROTECTED]> > Subject: Re: Form submitted twice (no AJAX!) > To: user@struts.apache.org > Dat

Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic
I managed to call fillReport with open Connection object, but I just get an empty report page?! If I try to pass Connection object as dataSource in JR result, then I get that exception that Connection is null and I see report contents but with null values ? -- Milan newton.dave wrote: > > ---

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic
Dear Dave, I don't understand. That is exactly what I get when page is generated. I omited some plain html code. -- Milan newton.dave wrote: > > I don't think that came through properly; perhaps try pastebin or similar. > > Dave > > > --- On Thu, 11/20/08, Milan Milanovic <[EMAIL PROTECTE

Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Nils-Helge Garli Hegvik
Yhea, I noticed a JIRA issue for that. However, it should be possible to construct the urls "by hand". Nils-H On Fri, Nov 21, 2008 at 3:14 PM, Torsten Krah <[EMAIL PROTECTED]> wrote: > Am Freitag, 21. November 2008 14:16:31 schrieb Nils-Helge Garli Hegvik: >> Yes, I would handle this outside the

Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Torsten Krah
Am Freitag, 21. November 2008 14:16:31 schrieb Nils-Helge Garli Hegvik: > Yes, I would handle this outside the portlet. As you say, it's not > than uncommon, and it should be easily solved using a servlet. I used buildResourceUrl on PortletUrlHelper to generate my servlet urls handled by FilterDi

Re: Table Grid in struts2

2008-11-21 Thread Nils-Helge Garli Hegvik
There are several tag libraries and components that can handle this. Personally, I have used displaytag [1] earlier for this requirement. You could also try google: http://www.google.com/search?q=struts2+paging Nils-H [1] - http://displaytag.sourceforge.net/ On Fri, Nov 21, 2008 at 2:32 PM, Raj

Table Grid in struts2

2008-11-21 Thread Rajil
Hi. I need to display around 50,000 records in a page. I need grid for that, that have paging, sorting etc. functionality. Where I can display some of records at a time and if required (on next click) I retrieve next page records and display to the use. Can anybody suggest better solut

Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Nils-Helge Garli Hegvik
Yes, I would handle this outside the portlet. As you say, it's not than uncommon, and it should be easily solved using a servlet. Nils-H On Fri, Nov 21, 2008 at 2:07 PM, Torsten Krah <[EMAIL PROTECTED]> wrote: > Am Friday 21 November 2008 13:57:26 schrieben Sie: >> You can't. It's a limitation of

Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Torsten Krah
Am Friday 21 November 2008 13:57:26 schrieben Sie: > You can't. It's a limitation of the portlet spec. Ok. Lets take this scenario: User fill out some registration form (portlet) and want to receive a optin email with a activation "link". How would this be done with portlets (spec v1)? Is it not

URL Encryption

2008-11-21 Thread Rajil
Hi. I am looking to encrypt my application URL displayed in Clients Browser. My application is ready so I can't change each page and encrypt each link. Is there any solution on server-side to encrypt URL query-string parameters that applies to all links in my application. e.g. my U

Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Nils-Helge Garli Hegvik
You can't. It's a limitation of the portlet spec. URLs can only be created (in a portable manner) through the RenderResponse (or MimeResponse in the 2.0 spec) interface which is only available in the render phase. I'm not even sure that it's guaranteed that the generated url would be "static" anywa

How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Torsten Krah
Hi. I need to programmatically create an PortletURL to include in an email. Trying to use the PortletHelper to build the URL does not help because it does fail with this exception: RenderRequest cannot be obtained in event phase RenderRequest request = PortletActionContext.getRenderRequest();

Re: Struts2 - JSP Scriptlet

2008-11-21 Thread Nils-Helge Garli Hegvik
Here are some resources that can be helpful: http://struts.apache.org/2.0.12/docs/tutorials.html http://struts.apache.org/2.0.12/docs/jsp.html http://struts.apache.org/2.0.12/docs/tag-syntax.html http://struts.apache.org/2.0.12/docs/ognl.html Nils-H On Fri, Nov 21, 2008 at 1:25 PM, Rajil <[EMAIL

Struts2 - JSP Scriptlet

2008-11-21 Thread Rajil
Hi. I am migrating a module from struts1.0 to struts2.1.2. I am facing problem while using scriptlet [ <%=jsp_variable_name%> ] in struts2 tags. Is there any way I can use scriptlet in struts2 tags.?? regards, Rajil Davda

[S2] Unknown Handler @DefaultActionProxy

2008-11-21 Thread Torsten Krah
Hi some question abount the unknown handler: The unknown handler gots injected looking at the code - but where do i configure my own one which should be used - can't find the right place? thx -- Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. Siehe http://www.gnu.org/philosophy/no-wo