Re: Sending dynamic parameters to a forward

2005-06-14 Thread Nick Heudecker
Here's something I'm using to accomplish this: http://www.systemmobile.com/wp/?p=114 It's pretty simple, but can be refit to be fairly complex. On 6/14/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Sorry, my bad... it's not setURL, it's setPath. It's actually a method > of ForwardConfig, wh

Re: carriage returns

2005-06-14 Thread Ed Griebel
The problem was that the receiving system would choke when the XML responses were too long, so gzip wouldn't have helped it. I'm not sure what system/app they were using as it was with an external service provider, but it sounds pretty broken regardless. Probably some kind of fixed buffer overrun,

Themes

2005-06-14 Thread Martin Ravell
In looking into providing a Themes type functionality I've run across the idea of setting up a new DefinitionsFactory class. According to the section '8.4 Writing your own Definition Factory' of the document http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf this looks like a neat wa

Re: Sending dynamic parameters to a forward

2005-06-14 Thread Frank W. Zammetti
Sorry, my bad... it's not setURL, it's setPath. It's actually a method of ForwardConfig, which ActionForward extends. Look in the third table down in the link you sent, the section labeled "Methods inherited from class org.apache.struts.config.ForwardConfig". That's what I get for going from

Re: Sending dynamic parameters to a forward

2005-06-14 Thread Michael Jouravlev
On 6/14/05, Zarar Siddiqi <[EMAIL PROTECTED]> wrote: > Where do you see the af.setURL(String) method in the ActionForward class? > http://struts.apache.org/api/org/apache/struts/action/ActionForward.html > > I had a similar problem where dynamic values needed to be passed in via an > ActionForward

Re: Sending dynamic parameters to a forward

2005-06-14 Thread Zarar Siddiqi
Where do you see the af.setURL(String) method in the ActionForward class? http://struts.apache.org/api/org/apache/struts/action/ActionForward.html I had a similar problem where dynamic values needed to be passed in via an ActionForward but I wasn't able to find something as simple as you suggest

Re: carriage returns

2005-06-14 Thread draegoon Z
Thanks Jason, that is more like what I was looking for. From: Jason Lea <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: carriage returns Date: Wed, 15 Jun 2005 10:17:12 +1200 You can get Tomcat-5's JSP compiler to remove some whitespace in

Re: carriage returns

2005-06-14 Thread draegoon Z
Thanks Jason, that is more like what I was looking for. From: Jason Lea <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: carriage returns Date: Wed, 15 Jun 2005 10:17:12 +1200 You can get Tomcat-5's JSP compiler to remove some whitespace in

RE: carriage returns

2005-06-14 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I'm finally sick of all the unwanted carriage returns created by > tiles and struts tags. > I searched the archives and found this trick: > > > > > > but it doesn't fix everything, especially comments. > > Has anyone else gotten sick of this and came up with a quick > and clean solution? W

Re: carriage returns

2005-06-14 Thread Jason Lea
You can get Tomcat-5's JSP compiler to remove some whitespace in conf/web.xml you can set trimSpaces to true. It will remove whitespace between tags. eg Would be reduced to but abc def would be abc def draegoon Z wrote: Hey guys, I'm finally sick of all the u

Re: carriage returns

2005-06-14 Thread Dave Newton
Ed Griebel wrote: We had a problem with XML having too many carriage returns and whitespace for a downstream system. Heck, XML has too much NON-whitespace, too ;) To solve the problem I wrote a simple javax.servlet.Filter instance that would get the response and strip out extraneous stuff us

Re: carriage returns

2005-06-14 Thread Ed Griebel
We had a problem with XML having too many carriage returns and whitespace for a downstream system. To solve the problem I wrote a simple javax.servlet.Filter instance that would get the response and strip out extraneous stuff using String.replaceAll() on the output from a HttpServletResponseWrapper

Re: Using ActioForm in ActionForm practice

2005-06-14 Thread Michael Jouravlev
Depends. This topic is discussed heavily from time to time. The last tide was about a month ago :) Search archives. Basically, if you need only to output your A, B, C entities, you do not need action forms. Just stick your object in the proper scope. If you need to input data into A, B, C or your

re: carriage returns

2005-06-14 Thread Leon Rosenberg
Aehm, this is not quite true. If you look in the generated jsp you will see a bunch of lines like this: _jsp_string14 = "\r\n ".toCharArray(); (this is for resin users, in tomcat jsps it will be somewhere in the code with write()) The jsp compiler usually handles all whitespaces before

re: carriage returns

2005-06-14 Thread Leon Rosenberg
Aehm, this is not quite true. If you look in the generated jsp you will see a bunch of lines like this: _jsp_string14 = "\r\n ".toCharArray(); (this is for resin users, in tomcat jsps it will be somewhere in the code with write()) The jsp compiler usually handles all whitespaces before

Re: Using ActioForm in ActionForm practice

2005-06-14 Thread Hubert Rabago
: I hated the 1-1 mirroring of action forms and business objects, so I wrote FormDef: https://formdef.dev.java.net/ . You may want to take a look at it, it'll save you time keeping the two in sync, and can also handle deep copying between the two, especially the current dev version ( https://fo

Re: carriage returns

2005-06-14 Thread Hubert Rabago
On 6/14/05, draegoon Z <[EMAIL PROTECTED]> wrote: > > I'm finally sick of all the unwanted carriage returns created by tiles and > struts tags. > I searched the archives and found this trick: > Just to clarify: If the trick you used worked on the CRs you see around the tags, that means the "unwa

Using ActioForm in ActionForm practice

2005-06-14 Thread Ovidiu EFTIMIE
Hi, I've recently started working on a project that uses Struts 1.2 and Hibernate - and I'm in the dev team. Nothing unusual here. The project architecture is made in such way that ActionForms are an almost 1-1 mirror with the the Hibernate mapped entities. For example : if I have an entity A that

Re: carriage returns

2005-06-14 Thread Jason Sheldon
What are your concerns with unwanted carriage returns? Do you think they are adding to the weight of the page? If you a using a server that support the 1.1 http spec(with compression), then the carriage returns apply a negible amount of weight to the page. Jason On 6/14/05, draegoon Z <[EMAIL P

Re: Wildcard action paths

2005-06-14 Thread Van
On 6/14/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > The problem with that approach is duplication of information: you have > to know the URL structure in the action / tag / whatever that does the > URL parsing, as well as in struts-config.xml. And I don't need a single > pattern, there would be

Re: Wildcard action paths

2005-06-14 Thread Michael Jouravlev
On 6/13/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > I didn't get any response to this last time so I'm asking again... :-) > > I'd like to replace URLs like this: > >/Sections/Subsections/?section=Section1&subsection=SubSection1 > > with URLs like this: > >/Sections/Section1/Subsecti

Re: Wildcard action paths

2005-06-14 Thread Laurie Harper
Van wrote: The problem is, there's then no way to get what the wildcards matched in the view (JSP). For reasons discussed elsewhere I don't want to put a different action in front of each view, so I need a more general solution. This seems so obvious to me that I'm probably missing something ab

AW: carriage returns

2005-06-14 Thread Leon Rosenberg
No clean solutions... Probably you need a better jsp compiler... What you can try is to use jsp comments: <%-- --%><%-- --%> If you have a good ide, you will at least be able to read the code... Another solutions is to put everything in a pack tag (which you have to write) and which would re

AW: carriage returns

2005-06-14 Thread Leon Rosenberg
No clean solutions... Probably you need a better jsp compiler... What you can try is to use jsp comments: <%-- --%><%-- --%> If you have a good ide, you will at least be able to read the code... Another solutions is to put everything in a pack tag (which you have to write) and which would re

Re: ensuring valid forwards

2005-06-14 Thread Frank W. Zammetti
FYI, just added Bugzilla ticket # 35361 regarding this. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, June 14, 2005 7:53 am, David Whipple said: > I would really like to see this as well. > > > > > > "Frank W. >

Re: Sending dynamic parameters to a forward

2005-06-14 Thread Frank W. Zammetti
You can, IIRC, append a query string to the URL returned by your forward... off the top of my head, it would look something like this... in Action 1: String param1Val = "someValue1"; String param2Val = "someValue2"; String queryString = "?param1=" + param1Val + "¶m2 = " + param2Val; ActionForward

Re: LookupDispatchAction

2005-06-14 Thread Dakota Jack
When you have you get a whatever.x and whatever.y returned as request parameters with x and y intergers showing the coordinates of the button press on the client. The simplest code you can have solving the problem is the ones at www.michaelmcgrady.com and mentioned by Jouravlev recently. I have

Re: LookupDispatchAction

2005-06-14 Thread Dakota Jack
Actually the images I use *do* scale automagically. It all depends upon how sophisticated you are in this sort of thing. On 6/14/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 6/14/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > If you just want images on the buttons, you can do it with CSS

carriage returns

2005-06-14 Thread draegoon Z
Hey guys, I'm finally sick of all the unwanted carriage returns created by tiles and struts tags. I searched the archives and found this trick: but it doesn't fix everything, especially comments. Has anyone else gotten sick of this and came up with a quick and clean solution? Thanks.

RE: Themes

2005-06-14 Thread Abdullah Jibaly
While Tiles is better for page composition I think you'll find SiteMesh better suited for overall site layout, especially for things like custom CSS/JavaScript/... based on request or session level parameters. -- Abdullah -Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED]

RE: Themes

2005-06-14 Thread Wiebe de Jong
Use CSS. Use one JSP/tile to get your content together, then based on the company setting, choose a CSS style sheet to go with it. The style sheet would contain your graphics, fonts, layouts, etc. Take a look at http://www.csszengarden.com/ to see the possibilities of this approach. Wiebe -O

Re: [To sum it up] Re: Confused

2005-06-14 Thread Pierre Thibault
Le 14 juin 2005 à 04:59, Stéphane Zuckerman a écrit : Hello Stéphane, ... Anyway, this little presentation is far from complete, and I suggest you read some doc about J2EE applications before going further with struts (java.sun.com is a good start). -- Stéphane Zuckerman The diff

Re: Confused

2005-06-14 Thread Pierre Thibault
Ok, I'll use Hibernate. Le 14 juin 2005 à 04:31, delbd a écrit : I could add, use EJBs only if you really can't do without them :D Things like Hibernate are more flexible an easy to use than EJB 2.0 and i heard the EJB 3.0 specs will be very similar to what current ORMapping like Hibernate

Re: LookupDispatchAction

2005-06-14 Thread Wendy Smoak
From: "Rafael Taboada" <[EMAIL PROTECTED]> > I tried to use css like Wendy said but alt option is missing. Missing from what? There is an 'alt' attribute for the tag. Are you trying to get 'hover text' on your submit button? I think that's the 'title' attribute. If you already have working,

Re: LookupDispatchAction

2005-06-14 Thread Michael Jouravlev
Yep, MSIE is a sucky one. For the following image button: Firefox generates the following: method.x=48&method.y=20&method=add while MSIE generates just the following: method.x=48&method.y=20 Hmm, how to obtain method name on MSIE? I don't know yet. But obviously I need to update my DialogAc

Re: ensuring valid forwards

2005-06-14 Thread Dave Newton
David Whipple wrote: I would really like to see this as well. +1 I had a very convoluted "solution" involving pre-processing my java/jsp/xml files (mostly for the automagic creation of web app documentation along with the bulk of CRUD actions/form pre-population/etc.) but an exception mi

Re: LookupDispatchAction

2005-06-14 Thread Michael Jouravlev
> You need to specify method name in "value" attribute. Since it is an > image, it won't be shown: > > value="myProcName" src="myimage.gif" /> > > The above should produce request like this: > method.x=51&method.y=16&method=myProcName Hmm... Seems like MSIE do not add "method=myProcName" for va

Re: ensuring valid forwards

2005-06-14 Thread Adam Hardy
The best way that I have found to counter this is to stick rigidly to a limited set of forward names, such as 'display', 'failed', 'insert', 'delete'. Hard-code them in a utility class as string finals, or as an enum if you use jdk 1.5. Make it part of your coding convention only to refer to

Re: LookupDispatchAction

2005-06-14 Thread Michael Jouravlev
Rafael, first of all, as web developer you should always know what input your application receives. If you use Firefox, go to their plugin site and get LiveHTTPHeaders plugin, an invaluable thing. After you install it, you will be able to trace requests and responses. To save you time, I can tell

Re: LookupDispatchAction

2005-06-14 Thread Wendy Smoak
From: "Rafael Taboada" <[EMAIL PROTECTED]> > altKey="ComprasNuevo.imagen.agregararticulo" > border="0" property="method" src="../images/Nuevo.png" /> > > javax.servlet.ServletException: Request[/ComprasNuevo] does not contain > handler parameter named 'method'. Did you look at the request parame

Re: LookupDispatchAction

2005-06-14 Thread Rafael Taboada
I think there are problems with property.x and property.y Do u know about it? How to solve it? -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"

Re: LookupDispatchAction

2005-06-14 Thread Rafael Taboada
Please. Any suggestions? Do u know about "ImageButtonDispatchAction.java in the archives of 'struts-user '"??? Where can I find it??? -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"

Re: problem with indexed property and logic:iterate

2005-06-14 Thread Nitesh
Just passing you a solution I had got from the user list earlier Nitesh - Original Message - From: "John Fitzpatrick" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, June 03, 2005 6:06 PM Subject: Re: Problem using indexed properties and validator framework In the

Re: LookupDispatchAction

2005-06-14 Thread Rafael Taboada
Well my code is like this. In my jsp: In my Action class I extend LookupDispatchAction. Methods: protected Map getKeyMethodMap() { Map map = new HashMap(); map.put("ComprasNuevo.boton.preagregarArticulo", "preagregarArticulo"); map.put("ComprasNuevo.boton.registrar", "agregarArticulo"); retur

Re: LookupDispatchAction

2005-06-14 Thread Michael Jouravlev
On 6/14/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > If you just want images on the buttons, you can do it with CSS and keep the > (which you already have working): > http://www.ampsoft.net/webdesign-l/image-button.html Neat! But images do not scale automatically, I prefer not to use them. W

Re: LookupDispatchAction

2005-06-14 Thread Özcan GÜNGÖR
Hi, create a hidden value that has name of the property of your LookupDispatchAction which is defined in your struts-config.xml . Then set the necessary value to the property when image is clicked. All you need is to send a parameter(property in your struts-config.xml ) with necessary value. hop

Initial parameters

2005-06-14 Thread Tony Smith
If I used traditional servlet, I can set initial parameters for every servlet in web.xml. How can I set parameters for Struts? Thanks, __ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.ya

Re: Sending dynamic parameters to a forward

2005-06-14 Thread Michael Jouravlev
http://marc.theaimsgroup.com/?l=struts-user&m=111841184227894&w=2 > I have an action (Action1) which when completed successfully, forwards > to another action (Action2). I need to be able to send dyanamic > parameters to Action2 ---

Re: LookupDispatchAction

2005-06-14 Thread Rafael Taboada
Cool... Thanks so much =) -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"

Re: LookupDispatchAction

2005-06-14 Thread Wendy Smoak
From: "Rafael Taboada" <[EMAIL PROTECTED]> > Hi folks. I'm using LookupDispatchAction in order to manage > several buttons in a form. > All work fine, but I want to use html:image instead of html:submit > Please, do u know how to use that? I don't understand its attributes very > well. If you ju

RE: Can struts-1.1 support multiple configurations and multiple resources

2005-06-14 Thread Venkat Reddy Valluri
Manfred, THanks again for giving clarification. Here I got some solution. I used bundle parametre in so that I can find the Resources where It was tied to the key "sub" which is as I already mentioned given in struts-sub.xml like below But again I got some problem with validation f

Re: LookupDispatchAction

2005-06-14 Thread Michael Jouravlev
Dakota Jack worked with image buttons: www.michaelmcgrady.com/button Maybe you find this useful. On 6/14/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks. I'm using LookupDispatchAction in order to manage several buttons > in a form. > All work fine, but I want to use html:image instead

Re: reponse commited

2005-06-14 Thread glenn . deschenes
Quickly glancing at your code I believe you need to return null such as ostr.close(); return null; HTH, Glenn Karthika L V somayajula <[EMAIL PROTECTED]> 14/06/2005 10:35 AM Please respond to "Struts Users Mailing List" To user@struts.apache.org cc Subject reponse commited I hope a

CanBaseTagHandler class be extended?

2005-06-14 Thread amitava . basak
Can the BaseTagHandler class be extended ?? I would like to use "disabled" property from action form using setter methods. Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or at

reponse commited

2005-06-14 Thread Karthika L V somayajula
I hope am into the right group I have a problem with downloading files using struts. I am using J2SDK 1.4.2_06 Struts 1.2.4 Jboss 4.0.1RC2 My download Action is : public ActionForward executeAction( ActionMapping mapping, ActionForm form,

LookupDispatchAction

2005-06-14 Thread Rafael Taboada
Hi folks. I'm using LookupDispatchAction in order to manage several buttons in a form. All work fine, but I want to use html:image instead of html:submit Please, do u know how to use that? I don't understand its attributes very well. Thanks in advance -- Rafael Taboada Software Engineer

User Registration

2005-06-14 Thread Anand Vijay
Hi I have a link in my application for user registration form . It has combo box in the form that need to be populated from database. Say : Form action path is register.do and form name is register_form What should be the link and how we have to do mapping in struts-config.xml Regards Vijay

Themes

2005-06-14 Thread Martin Ravell
Well, as promised here is some feedback. I recommend the article : http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf Especially the section 7.4.3 Dynamic L & F. Regards Marty

Re: ensuring valid forwards

2005-06-14 Thread David Whipple
I would really like to see this as well. "Frank W. Zammetti" <[EMAIL PROTE

RE: Themes

2005-06-14 Thread Martin Ravell
I seem to keep coming back to the 'put' definitions in my tiles defs. Is there a way that I can insert a variable into the value at runtime? Something like: This still doesn't answer the fall-back to 'original' jsp tree idea but it would be a start. Worst case I could keep a register

problem with indexed property and logic:iterate

2005-06-14 Thread Marco Mistroni
Hello all, I have a DynaActionForm with two properties of type String[], one named priorities and the other named owner I am having problem in displaying their value in my jsp using logic:iterate My JSP is as follows

Sending dynamic parameters to a forward

2005-06-14 Thread tarek.nabil
Hi Everyone, I have an action (Action1) which when completed successfully, forwards to another action (Action2). I need to be able to send dyanamic parameters to Action2. I thought about putting the parameters as request attributes, but the problem here is that Action2 can be called directly using

Re: html:option

2005-06-14 Thread Stéphane Zuckerman
Hello Amitava, [EMAIL PROTECTED] a écrit : I want xxx Is there a way out to select a default value at design time? (I hate javascript!!... lol. ) You could always prepopulate your form before forwarding to the JSP : public ActionForward execute(...) { form.setMySelect("my value");

[To sum it up] Re: Confused

2005-06-14 Thread Stéphane Zuckerman
Hello Pierre, Struts is "just" too big a project to stay among its siblings under the Jakarta general project, which is why it is "on its own". I have just installed Tomcat 5 for Java WSDP. Do I need this version to make Struts development or can I use the regular 5.5 version too? I have

RE: html:option

2005-06-14 Thread Nitish Kumar
use tag along with the or print XXX using Thanks and Regards, Nitish Kumar Tavant Technologies Ltd Bangalore -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 20

Re: Confused

2005-06-14 Thread delbd
I could add, use EJBs only if you really can't do without them :D Things like Hibernate are more flexible an easy to use than EJB 2.0 and i heard the EJB 3.0 specs will be very similar to what current ORMapping like Hibernate does! Le Mardi 14 Juin 2005 10:08, Daniel Perry a écrit : > No, > J2E

Presenting one application in another

2005-06-14 Thread Björne Höglund
Hi, I am planning to build an web application that will manage a number of servers on a network using RMI. Each of these servers today has a local web interface that uses Struts, the RMI functionality is already in place and functional. What i would like to do is move the web interfaces to t

RE: Confused

2005-06-14 Thread Daniel Perry
No, J2EE is a NOT EJBS! J2EE is a collection of technologies, including servlets, jsp, EJBs, etc. Tomcat hosts various parts of J2EE - servlets, jsps, etc, but it is not a full J2EE container - it doesnt host EJBs. But you can use servlets, JSP and taglibs without using EJBs. I do. I've never used

RE: Themes

2005-06-14 Thread Martin Ravell
I'm googling now for the article you mentioned since it isn't clear to me exactly where you meant. If you have a URL I'd appreciate it. This Tiles Controller looks like it is worth a good look. Regards Marty -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: T