Re: Using Menu Links In Tiles2 + Struts 2

2008-07-07 Thread Antonio Petrelli
2008/7/8 DEEP JADHAV <[EMAIL PROTECTED]>: > > I am using tiles 2 in struts 2 and I have configured it. I created one > layout containing title,menu,body and footer regions and in each > region I inserted tiles(jsp's). > In menu region I have list of menu links and I want 'body' region of > layout t

Re: Struts 2.0.11 and Tiles 2.0.5

2008-07-07 Thread Antonio Petrelli
2008/7/7 Francisco Spaeth <[EMAIL PROTECTED]>: > Searching in the internet I notice that tiles 2.0.6 has a problem with UTF8, Eh? What problem? I am not aware of it. And anyway please ask the Tiles Users mailing list: http://tiles.apache.org/mail.html Antonio

Re: Using Menu Links In Tiles2 + Struts 2

2008-07-07 Thread DEEP JADHAV
I am using tiles 2 in struts 2 and I have configured it. I created one layout containing title,menu,body and footer regions and in each region I inserted tiles(jsp's). In menu region I have list of menu links and I want 'body' region of layout to be rendered corresponding to the link clicked. How

Re: Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread Al Sutton
web forums are a nightmare for the dynamics shown by this list. There are a core few who respond to many of the questions asked, and there is a lot of traffic, which means with a web forum those few would need to either check for new posts every so often (which is a chore), or receive an endle

Re: [S2] File download save dialog

2008-07-07 Thread Jeromy Evans
Struts Two wrote: Even afterI extended the StreamResult to be able to set the content-desposition dynamically, Internet explorer would open the file in a separate browser while firefox was prompting with the save/open dialog. However, the issue was fixed when I directly got the httpresponse

Ajax based login not working in IE but Working in FF

2008-07-07 Thread AjaySrini
Hi all, I'm new to sturts 2.0.Currently i'm developing a web application in which i have a login screen which is ajax based(using ) It works fine in FF but when i used to login through IE it is not working. Whether Struts2.0 + ajax functionality will support IE. looking forward to ur reply. Th

Re: [S2] File download save dialog

2008-07-07 Thread Wes Wannemacher
Oops, I forgot there are two parts to this, you should set two headers Content-Type = application/download Content-Disposition = attachment; filename=foo.bar I didn't look back through the thread to see if you were also setting content-type. If so, add a test case to your JIRA (WW-2711?). -W

Re: [S2] File download save dialog

2008-07-07 Thread Struts Two
Even afterI extended the StreamResult to be able to set the content-desposition dynamically, Internet explorer would open the file in a separate browser while firefox was prompting with the save/open dialog. However, the issue was fixed when I directly got the httpresponse and set the header the

Re: Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread Gabriel Belingueres
I personally would like to interact using a web based forum where you can post with formatted java and xml code and even with emoticons instead of this email based mailing list, but this would be even more utopianphpBB would do :) 2008/7/7 Jason Wyatt <[EMAIL PROTECTED]>: > Dave, may I ask why

RE: Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread Jason Wyatt
Dave, may I ask why it has been consistently voted down (and voted by who?). It would seem to be a logical separation IMHO, what's the benefit of keeping them together when the platforms have nothing in common except the name struts? If people still don't know about or use the [S1] and [S2] conv

Re: [S2] File download save dialog

2008-07-07 Thread Wes Wannemacher
Although Chris's solution works, I've always been partial to setting content-disposition to attachment. I can't tell you off the top of my head the struts-y way to do it, but this is what it's meant for. -Wes On Mon, 2008-07-07 at 11:31 -0700, Chris Pratt wrote: > One way is to set the content

Re: Using Menu Links In Tiles2 + Struts 2

2008-07-07 Thread Lukasz Lenart
Hi, Could you provide some more details, maybe some examples? Right now I don't know what kind of problem you have. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

static list with problem.

2008-07-07 Thread sharath karnati
Hi All,      I need to populate static list of values in tag in struts2.        How to add single quote in (Don't have caller ID) value in static list.   Thanks, Sharath.

Re: Getting Struts2 Parameters?

2008-07-07 Thread Jim Kiley
Your setter is private. It needs to be public. On Mon, Jul 7, 2008 at 5:49 PM, Chris Miles <[EMAIL PROTECTED]> wrote: > No exceptions. > > The action class is as follows. > > public class AddToCartAction extends ActionSupport implements Action { > private String productId = ""; > private int

Re: Getting Struts2 Parameters?

2008-07-07 Thread Chris Miles
No exceptions. The action class is as follows. public class AddToCartAction extends ActionSupport implements Action { private String productId = ""; private int quantity = 0; private void setProductId(String productId) { this.productId = productId; } private void setQuant

Re: [S2] Problem injecting String with Spring plugin

2008-07-07 Thread Gabriel Belingueres
Thanks Musachy for your quick answer. Tried setting default-autowire="byName" in the beans tag but the behavior is the same, that is, the "templateDir" String bean is injected after method execution AND byType: 2008-07-07 16:52:40,562 DEBUG (org.springframework.beans.factory.support.DefaultListab

Struts2 and Jquery problem with LightBox or thickbox

2008-07-07 Thread prashanth2
I tried to implement thickbox functionality in a jsp ,to display iframe in a thickbox. If I use a simple a href using a jsp,thickbox works fine, but if i use s:url with *.action as the url ,and if i pass height,width attributes ,iam getting an error .I tried removing height and width, but iam gett

Re: [S2] Problem injecting String with Spring plugin

2008-07-07 Thread Musachy Barroso
Did you try forcing Spring to autowrie by name? Add default-autowire="byName" to the "beans" tag in your spring config(s) file(s). musachy On Mon, Jul 7, 2008 at 4:09 PM, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > Debugging the Spring output I found the following: > > 2008-07-07 16:52:40,42

Re: [S2] Problem injecting String with Spring plugin

2008-07-07 Thread Gabriel Belingueres
Debugging the Spring output I found the following: 2008-07-07 16:52:40,421 DEBUG (org.springframework.beans.factory.support.DefaultListableBeanFactory:214) - Returning cached instance of singleton bean 'allEventoService' 2008-07-07 16:52:40,421 DEBUG (org.springframework.beans.factory.support.Defa

Re: Struts 2.0.11 and Tiles 2.0.5

2008-07-07 Thread Struts Two
I am already using Tiles 2.5 with struts 2.0.11. I was wondering if it can be something your configuration setup. Although there might be a very slight possibility that tomcat be culprit since my runtime environment is websphere. - Original Message From: Francisco Spaeth <[EMAIL PROTEC

Re: [S2] File download save dialog

2008-07-07 Thread Struts Two
I have already set the content type to application/octet-stream in my xml file   application/octet-stream   The problems occurs with IE browser, Using firefox 2.0.15, I get the download dialog box but using IE the box is opened in a browser window. - Origina

Struts 2.0.11 and Tiles 2.0.5

2008-07-07 Thread Francisco Spaeth
Hi All, Searching in the internet I notice that tiles 2.0.6 has a problem with UTF8, then I download the 2.0.5 version and put it in my project but it is not working. Now it is returning an exception with the bellow message: SEVERE: Exception sending context initialized event to listener instance

Re: [S2] Problem injecting String with Spring plugin

2008-07-07 Thread Musachy Barroso
The plugin doesn't really inject anything, it is all up to Spring. musachy On Mon, Jul 7, 2008 at 3:03 PM, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > Hi, > > I want to inject a String defined in the Spring's > applicationContext.xml file like this: > > > /WEB-INF/templates/ > > > but the

[S2] Problem injecting String with Spring plugin

2008-07-07 Thread Gabriel Belingueres
Hi, I want to inject a String defined in the Spring's applicationContext.xml file like this: /WEB-INF/templates/ but the Spring plugin does not try to inject it (It works with my other injected, non String class objects though) It is OK that the plugin does not try to inject String objects?

Re: Firefox 3 and render issues

2008-07-07 Thread georz1
I've avoided some of the pitfalls of the ajax theme before by using jquery (datetimepicker). Only this time it's not an option.. I need to figure out how to get the theme to work reliably with Firefox 3. FF2 there were no issues. matt.payne wrote: > > > Don't use the theme or write your

Re: Struts 2 + Ajax and Back Button

2008-07-07 Thread matt.payne
Just give in and use (jquery syntax)) $("#back").click(function(event) { window.location.href='forgot.action'; }) where cree wrote: > > Hello All, > > I am attempting to resolv

Re: Firefox 3 and render issues

2008-07-07 Thread matt.payne
georz1 wrote: > > I'm using Struts 2.0.11 and it seem with Firefox 3 only there are > rendering issues on pages where I have . I can see > the page load fully and there is a quick flash of the browser and then a > blank page with FF3 stuck in a loading state. > > On certain pages I have made i

Re: [S2] File download save dialog

2008-07-07 Thread Chris Pratt
One way is to set the content type of the downloaded item to something the browser doesn't know how to handle itself, like application/octet-stream (*Chris*) On Mon, Jul 7, 2008 at 10:21 AM, Struts Two <[EMAIL PROTECTED]> wrote: > I have an action class that downloads a file from db2 database. H

Re: Slow performance with Struts2

2008-07-07 Thread matt.payne
Use firebug to measure you http. Firebug will give you a detail view of what resources (e.g. dojo) are being pulled down with the http traffic. Matt yorlick kilroy-2 wrote: > > Hi, > > I was wondering if there is a way to tweak struts2 performance. > I ported an old struts1 application to st

[S2] File download save dialog

2008-07-07 Thread Struts Two
I have an action class that downloads a file from db2 database. However; when the download occurs, the file is displayed in the browser. I would like to have the user prompted with the save/open dialog. I was wondering what I am missing here. Below are my configuration and action class for the f

Re: Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread Dave Newton
This has been brought up from time to time over the years and has been consistently voted down. (I suggested it once myself and am in favor of it as well.) In lieu of that happening I'd urge people to tag the subject line of all list messages with either [S1] or [S2] (or whatever, as long as it

Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Antonio Petrelli
2008/7/7 Musachy Barroso <[EMAIL PROTECTED]>: > There are also new classes under: com.opensymphony.xwork2.util.finder > (borrowed from xbeans) to find classes/resources in the classpath. > They are pretty handy if you use them with UrlSet (in that package > also). Interesting too, thanks Musachy :

Re: Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread Chris Pratt
Not that my vote counts, but +1 again. (*Chris*) On Mon, Jul 7, 2008 at 6:40 AM, Owen Berry <[EMAIL PROTECTED]> wrote: > And another, +1 > > On Mon, Jul 7, 2008 at 8:28 AM, ManiKanta G <[EMAIL PROTECTED]> wrote: >> +1 me too >> >> Alessio Mereu wrote: >>> >>> +1 for me too >>> >>> 2008/7/7 Marc

Re: Getting Struts2 Parameters?

2008-07-07 Thread Musachy Barroso
Are there any exceptions in the logs? Does your class implement ModelDriven? if you posts the relevant parts of your configuration (jsp fragment, action and xml fragment), it will be easier to get help. musachy On Mon, Jul 7, 2008 at 11:38 AM, <[EMAIL PROTECTED]> wrote: > In my struts.xml I have

Getting Struts2 Parameters?

2008-07-07 Thread chris
In my struts.xml I have set up a stack for "defaultStack" to include the Parameters Interceptor, and I have then set the default stack to "defaultStack". In my action class I have set up a setter injector called setProductId(String productId) which sets to a local variable. I then have a form whi

Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Musachy Barroso
There are also new classes under: com.opensymphony.xwork2.util.finder (borrowed from xbeans) to find classes/resources in the classpath. They are pretty handy if you use them with UrlSet (in that package also). musachy On Mon, Jul 7, 2008 at 11:19 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: >

Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Antonio Petrelli
2008/7/7 Wes Wannemacher <[EMAIL PROTECTED]>: > I'm not an XWork committer, and I think Don actually wrote the > PatternMatcher, which is basically the main component behind > ClassPathFinder. Don ended up committing the patch for me. None of the > Struts code needed altered when this was added, so

Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Wes Wannemacher
I'm not an XWork committer, and I think Don actually wrote the PatternMatcher, which is basically the main component behind ClassPathFinder. Don ended up committing the patch for me. None of the Struts code needed altered when this was added, so I never really worried about the header. WildcardHel

Re: Struts 2 + Ajax and Back Button

2008-07-07 Thread cree
Hello again everyone, I guess I would like to give an update on my struts 2 and ajax integration. I appreciate everyone's responses as they have helped a lot to resolve my problem with ajax and the back button. My seemingly last problem I have has to do with IE (no surprise). I have implemen

Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Antonio Petrelli
2008/7/7 Wes Wannemacher <[EMAIL PROTECTED]>: > I added some wildcard support to XMLConfigurationProvider a while ago. > It's not particularly feature-rich, but it works somewhat intuitively. > Check the unit tests for examples of using it... > > http://svn.opensymphony.com/fisheye/browse/~raw,r=18

Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Wes Wannemacher
Antonio, I added some wildcard support to XMLConfigurationProvider a while ago. It's not particularly feature-rich, but it works somewhat intuitively. Check the unit tests for examples of using it... http://svn.opensymphony.com/fisheye/browse/~raw,r=1833/xwork/trunk/src/test/com/opensymphony/xwor

Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Antonio Petrelli
2008/7/7 Owen Berry <[EMAIL PROTECTED]>: > In terms of licensing, from the bottom of http://springframework.org/about > > "All Spring projects are licensed under the terms of the Apache > License, Version 2.0." > You're right, sorry for using the wrong term. The problem is that, using a 3rd party

Multipage forms

2008-07-07 Thread Dimitris Mouchritsas
Hi all, I'm starting to use multipage forms to have an organisation registration, along with some codes and an admin, 3 steps in total. In the first page, I check in the action if some data from the organisation already exist, to give an error that the organisation is already registered. Does th

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-07-07 Thread Greg Lindholm
dusty wrote: > > I have found > > name="operationMode">AUTOMATIC > > to work great for addActionMessage. To tell you the truth I haven't tried > it for addActionError or fieldErrors. You would redirect after an error > tha

Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Owen Berry
In terms of licensing, from the bottom of http://springframework.org/about "All Spring projects are licensed under the terms of the Apache License, Version 2.0." On Sun, Jul 6, 2008 at 6:00 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > Hi all, > I would like to know if in S1 or in S2 there is

Re: Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread Owen Berry
And another, +1 On Mon, Jul 7, 2008 at 8:28 AM, ManiKanta G <[EMAIL PROTECTED]> wrote: > +1 me too > > Alessio Mereu wrote: >> >> +1 for me too >> >> 2008/7/7 Marc Logemann <[EMAIL PROTECTED]>: >> >> >>> >>> +1 for the suggestion >>> >>> Marc >>> >>> On Mon, 7 Jul 2008 12:53:14 +0200 (MEST), "[EMA

Re: how to access new javascript struts2 templates/xhtml/validation.js

2008-07-07 Thread Musachy Barroso
few options: * you can replace the js file inside struts-core jar(quick and dirty) * write a filter that checks the request URL and writes your version of the file. * overwrite the template that imports that file, and make it import your own file (best option IMO) musachy On Mon, Jul 7, 2008 at

Re: Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread ManiKanta G
+1 me too Alessio Mereu wrote: +1 for me too 2008/7/7 Marc Logemann <[EMAIL PROTECTED]>: +1 for the suggestion Marc On Mon, 7 Jul 2008 12:53:14 +0200 (MEST), "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Could Struts project admins separate Struts1 and Struts2 users mailing lists?

Re: Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread Alessio Mereu
+1 for me too 2008/7/7 Marc Logemann <[EMAIL PROTECTED]>: > > +1 for the suggestion > > Marc > > On Mon, 7 Jul 2008 12:53:14 +0200 (MEST), "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > > Could Struts project admins separate Struts1 and Struts2 users mailing > > lists? > > I think it is bad f

Re: Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread Marc Logemann
+1 for the suggestion Marc On Mon, 7 Jul 2008 12:53:14 +0200 (MEST), "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Could Struts project admins separate Struts1 and Struts2 users mailing > lists? > I think it is bad for the users to have two frameworks under the same > mailing list. > > > >

Re: Actions, properties and validation in separate packages?

2008-07-07 Thread Dallas
Wow, you think like I think :-) That´s exactly what I want, structure during development. Thanks alot! dusty wrote: > > Do you really want them in separate packages or do you just want them in > separate directories. It seems to me that you are looking for a > particular organization of files

Struts1 and Struts2 mailing lists separation ?

2008-07-07 Thread [EMAIL PROTECTED]
Could Struts project admins separate Struts1 and Struts2 users mailing lists? I think it is bad for the users to have two frameworks under the same mailing list. Ahora también puedes acceder a tu correo Terra desde el móvil. Infórmate pinchando aquí. --

Using Menu Links In Tiles2 + Struts 2

2008-07-07 Thread DEEP JADHAV
Hi everybody, I want list of links in menu region of my layout and I am not getting how to configure it for rendering body region corresponding to particular link. If anybody can solve plz reply..!! Thanks in advance. -- View this message in context: http://www.nabble.com/Using-Menu-Lin