html:option

2005-06-14 Thread amitava . basak
I want html:option selected=true xxx /html:option Is there a way out to select a default value at design time? (I hate javascript!!... lol. ) Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in

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:

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

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

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, J2EE

RE: html:option

2005-06-14 Thread Nitish Kumar
use html:options tag along with the html:select or print option XXX using logic:iterate logic:iterate ... logic:equals ... option selected=true bean:write ... /logic:equals logic:notEquals ... option bean:write ...

[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 Stéphane Zuckerman
Hello Amitava, [EMAIL PROTECTED] a écrit : I want html:option selected=true xxx /html:option 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

RE: Themes

2005-06-14 Thread Martin Ravell
I seem to keep coming back to the 'put' definitions in my tiles defs. put name=sidemenu value=/layout/menu.jsp/ Is there a way that I can insert a variable into the value at runtime? Something like: put name=sidemenu value=${themes_dir}/layout/menu.jsp/ This still doesn't answer the

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

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

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

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

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 user@struts.apache.org To user@struts.apache.org cc Subject reponse

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 of

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 html:erros bundle=sub/ 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 message-resources

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 just want

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: Sending dynamic parameters to a forward

2005-06-14 Thread Michael Jouravlev
http://marc.theaimsgroup.com/?l=struts-userm=111841184227894w=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 message truncated

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!

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.

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 html:submit (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

Re: LookupDispatchAction

2005-06-14 Thread Rafael Taboada
Well my code is like this. In my jsp: html:submit property=method styleClass=Form bean:message key=ComprasNuevo.boton.preagregarArticulo / /html:submit In my Action class I extend LookupDispatchAction. Methods: protected Map getKeyMethodMap() { Map map = new HashMap();

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 user@struts.apache.org Sent: Friday, June 03, 2005 6:06 PM Subject: Re: Problem using indexed properties and validator

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 Wendy Smoak
From: Rafael Taboada [EMAIL PROTECTED] html:image align=absmiddle 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

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: 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: 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

Re: LookupDispatchAction

2005-06-14 Thread Michael Jouravlev
Yep, MSIE is a sucky one. For the following image button: html:image altKey=image.caption border=0 property=method value=myMethodName src=myImage.gif / Firefox generates the following: method.x=48method.y=20method=add while MSIE generates just the following: method.x=48method.y=20 Hmm, how

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 html:submit tag. Are you trying to get 'hover text' on your submit button? I think that's the 'title' attribute. If you already have

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

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

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

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

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: logic:iterate trtdbean:write //td/tr /logic:iterate but it doesn't fix everything, especially comments. Has anyone else gotten sick of this and

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 and

Re: LookupDispatchAction

2005-06-14 Thread Dakota Jack
When you have input type='image' name='whatever' 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

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 + param2 = + param2Val; ActionForward af =

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.

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: logic:iterate%-- --%trtdbean:write //td/tr%-- --%/logic:iterate 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

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: logic:iterate%-- --%trtdbean:write //td/tr%-- --%/logic:iterate 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

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

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=Section1subsection=SubSection1 with URLs like this:

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 a

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

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 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 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

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

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

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 logic:iterate ... bean:write .../ /logic:iterate Would be reduced to logic:iterate ...bean:write ...//logic:iterate but

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 user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: carriage returns Date: Wed, 15 Jun 2005 10:17:12 +1200 You can get Tomcat-5's

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 user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: carriage returns Date: Wed, 15 Jun 2005 10:17:12 +1200 You can get Tomcat-5's

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

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 but I

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

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

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,

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, which