Tomcat performance - Was Clever trick required

2005-10-19 Thread hermod.opstvedt
Hi First of all: Please direct these types of questions to the proper maillisting for Tomcat. Tomcat is as I stated, first and foremost a Servlet engine (Reference implementation), and is as such tuned for that. My guess is that if you are having performance problems, that these are due to

Re: form.submit() issue with html:button

2005-10-19 Thread Aldo Vadillo Batista
Have you put *submit()* correctly? It works: html:button onclick=document.forms[0].submit(); / 2005/10/19, Carl Smith [EMAIL PROTECTED]: I seem to have a issue using html:button's onclick. My value of onclick is a javascript performing form.submit(), but I found out this is not working.

RE: Can't Undeploy Struts Applications

2005-10-19 Thread Harry Hartley
I found the solution in a post to another thread from [EMAIL PROTECTED] Are you using Windows? Than this it no tomcat specific problem. yout struts.jar is not deleted because windows locks this file. i had the same problem. the solution is to add the directory META-INF to your project. put a

Re: What's wrong with DTOs?

2005-10-19 Thread Borislav Sabev
[EMAIL PROTECTED] wrote: Hi Bob, I'll try to give my 1 cent to the topic and also to answer you more concrete because I believe you want some concrete answers, not theoretical conversations. Background: I just started a Struts project with Hibernate. I have chosen to use the Data Access

Re: What's wrong with DTOs?

2005-10-19 Thread Leon Rosenberg
On 10/19/05, Martin Gainty [EMAIL PROTECTED] wrote: George Could you explain on how MVC patterns are fractal? Thanks, Martin- I think there are no fractal patterns, but fractal architectures, which follows same pattern in different levels. Example: a typical 3-tier can be considered MVC the

[Shale] JspTilesViewHandlerImpl and Shale

2005-10-19 Thread hermod.opstvedt
Hi Has anybody successfully made org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl work with Shale? Meaning that Tiles definitions can successfully be accessed as pages. I.e somepage.jsf will be mapped to somepage.tiles (a tiles definintion) Hermod * * * * * * * * * * * * * * * * *

RE: Default values for Multiple Select

2005-10-19 Thread Rassmann, Natalie D
Paul, I am dealing with a multiple select tag... Ie html:select property=userroles multiple =true html:optionsCollection property=userroles / /html:select Natalie -Original Message- From: Paul Benedict [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 18, 2005 7:11 PM To: Struts

Re: form.submit() issue with html:button

2005-10-19 Thread Martin Gainty
Good Morning Carl excerpted from Craig: The challenge with doing this is that the JSP tags run on the server (as the page is being generated), while the JavaScript runs on the client side. To integrate the two, you need your tags (and other JSP code) to dynamically generate the JavaScript

Re: What's wrong with DTOs?

2005-10-19 Thread Ted Husted
On 10/19/05, Leon Rosenberg [EMAIL PROTECTED] wrote: I think there are no fractal patterns, but fractal architectures, which follows same pattern in different levels. Example: a typical 3-tier can be considered MVC the presentation layer in the 3-tier could itself be an MVC too (jsp the view,

Re: [Shale] JspTilesViewHandlerImpl and Shale

2005-10-19 Thread Ronald Holshausen
Hi Hermon, I use tiles with Shale, but Shale uses the stand-alone tiles, so I'm not sure which view handler is used. But it works ok. On 19/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Has anybody successfully made org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl work with

Re: SV: [Shale] JspTilesViewHandlerImpl and Shale

2005-10-19 Thread Ronald Holshausen
Shale has it's own tiles viewhandler that uses tiles stand-alone. And it does allow accessing tiles as pages. On 19/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote on 10/19/2005 09:24:01 AM: Hi Ronald Can you access pages as tiles-definitions? I mean not just

SV: SV: [Shale] JspTilesViewHandlerImpl and Shale

2005-10-19 Thread hermod.opstvedt
Hi Are you using the TilesViewHandler from shale-tiles or JspTilesViewHandlerImpl from Tomahawk ? -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 19. oktober 2005 15:29 Til: Struts Users Mailing List Emne: Re: SV: [Shale] JspTilesViewHandlerImpl and Shale

SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale

2005-10-19 Thread hermod.opstvedt
Hi Weird. I just took one of my working MyFaces/Tiles projects, and introduced Shale/Clay/Spring configuration to it along with the approprate .jar files. After that the tiles definitions stopped working. I'll try to make myself a simple sample based on the shale usecases and see if I can get

Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale

2005-10-19 Thread gramani
[EMAIL PROTECTED] wrote on 10/19/2005 09:53:55 AM: Hi Weird. I just took one of my working MyFaces/Tiles projects, and introduced Shale/Clay/Spring configuration to it along with the approprate .jar files. After that the tiles definitions stopped working. I'll try to make myself a

Re: What's wrong with DTOs?

2005-10-19 Thread Frank W. Zammetti
Let it never be said that the myriad OT discussions on the Struts mailing list aren't worth something :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, October 19, 2005 8:50 am,

Re: [Shale] JspTilesViewHandlerImpl and Shale

2005-10-19 Thread Wendy Smoak
From: [EMAIL PROTECTED] Weird. I just took one of my working MyFaces/Tiles projects, and introduced Shale/Clay/Spring configuration to it along with the approprate .jar files. After that the tiles definitions stopped working. What .jar files did you introduce? If you're missing

SV: Struts and Compression Filter...

2005-10-19 Thread Nilsson Ulf /Konsult
Thanks for link! Tried it but same problem. I'm starting to think that it might have something to do with forwards or the container... :( Anyone else out there using response-manipulating-filters with struts? TIA Ulf -Ursprungligt meddelande- Från: Frank W. Zammetti [mailto:[EMAIL

Conditional validation for mask, date, integer etc

2005-10-19 Thread Saul Qunming Yuan
Hi All, I'm wondering if there is a way to define conditional validation for mask, date, integer etc in validation.xml. I know there is a validwhen, but it only checks for the condition as defined by the test variable. What I want is to perform the mask, date validation only some conditions are

Re: SV: Struts and Compression Filter...

2005-10-19 Thread Frank W. Zammetti
That's weird... I just threw it in a Struts app and it worked (mapped it to every request by the way), so I wonder what your app is doing that breaks both filters... could very well be a flaw in both filter implementations, that's not at all out of the question. -- Frank W. Zammetti Founder and

Moving from Struts 1.0.2 to 1.2.7. Encountering problems

2005-10-19 Thread pantichd
Hello, We are in process of moving to different IDE and at same time have decided to upgrade to Struts 1.2.7. Started out with a just two pages from an app that is running fine in our current environment. It consists of a login page and a viewPrices.jsp page. Upon valid login the user is

Re: SV: Struts and Compression Filter...

2005-10-19 Thread Dave Newton
Nilsson Ulf /Konsult wrote: Anyone else out there using response-manipulating-filters with struts? I've used the filter from... um... _Core Servlets and JSP_ w/ zero problems, but IIRC we mapped it to everything. Dave

Re: Tomcat performance - Was Clever trick required

2005-10-19 Thread Martin Gainty
I have noted your comments Thank You for responding Good Luck, Martin- - Original Message - From: [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, October 19, 2005 2:00 AM Subject: Tomcat performance - Was Clever trick required Hi First of all: Please direct these types

Re: Conditional validation for mask, date, integer etc

2005-10-19 Thread Stewart Cambridge
On my current project I've written a validation method that dynamically invokes other validation rules depending on the String returned by bean.getDepends() It's used with indexed properties where the fields for the form to fill in are configurable and come from a database. Is that what you're

changing the documentroot prefix, or relative paths

2005-10-19 Thread Michael P. Soulier
Hello, I didn't find this in the archives, so I'll ask. I have a tomcat app deployed via proxypass from apache (2 in fact, a double-proxy through 2 servers). It needs to use relative paths in its links to ensure that the composed path is correct. Unfortunately struts doesn't seem to want to

Re: Conditional validation for mask, date, integer etc

2005-10-19 Thread Saul Qunming Yuan
That's simlar to what I need, except that it's not an indexd property. Can some of your code or send it to me offline. thanks, Saul On my current project I've written a validation method that dynamically invokes other validation rules depending on the String returned by bean.getDepends()

Re: changing the documentroot prefix, or relative paths

2005-10-19 Thread Kishore Senji
On 10/19/05, Michael P. Soulier [EMAIL PROTECTED] wrote: Hello, I didn't find this in the archives, so I'll ask. I have a tomcat app deployed via proxypass from apache (2 in fact, a double-proxy through 2 servers). It needs to use relative paths in its links to ensure that the composed

validator error highlighting

2005-10-19 Thread fea jabi
html:form... .. ... td html:text name=Form1 property=name size=40 errorStyleClass=errormessage/ /td /html:form Css is working except for this. When I hit the submit button it just forwards to the different jsp. it doesn't validate the field which I set to be required. I did make it

[ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Mick Knutson
I have a WSDL that is managed and generated by a different group than mine. This wsdl has many complex types within complex types for each service. Thus I get composite objects being generated, and we use a flattened version of these objects in our Struts UI. But Currently, we create an

Re: [ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Martin Gainty
Good Morning Mick Stupid question but I'll ask anyway ..I'm assuming you have already used Axis wsdl2java to automate the generation of the Java Class? http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL Martin- - Original Message - From:

Adding images to option items in a select drop down list

2005-10-19 Thread Faisal Mahmoud
Hi, I am creating a drop down list using the HTML select and option tags. The items in the list will be color names (ex. red, green, blue, etc..). I would like a small square image to be next to each color name text in the list. How would I go about this in my jsp file with my struts tags?

Re: [ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Dave Newton
Martin Gainty wrote: I'm assuming you have already used Axis wsdl2java to automate the generation of the Java Class? http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL Or if that doesn't do what you need, just write a simple script in

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Dave Newton
Faisal Mahmoud wrote: I am creating a drop down list using the HTML select and option tags. The items in the list will be color names (ex. red, green, blue, etc..). I would like a small square image to be next to each color name text in the list. How would I go about this in my jsp file with my

issue with logic:present on JDK 1.4.2

2005-10-19 Thread Shyam Anand
Hi, I'm doing an upgrade from JDK 1.3.1 to JDK 1.4.2 for my Struts 1.1 applications. I have an issue with the logic:present tags. These don't seem to work with JDK 1.4.2 version. I'm using OC4J 9.0.4 as my application server. For the JSP code snippet shown below , I get an error message: quote:

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Frank W. Zammetti
This isn's something that is possible in straight HTML. There could be a way to do it via CSS, but nothing obvious presents itself to me... I tried setting a background-image, but that didn't work. Can you find an example of it being done? Unless there's some non-obvious CSS trick, or perhaps

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Frank W. Zammetti
Just thought of this... one thing you could do is set the text color of each option. That *does* work. Might serve your purpose alright. You can actually set the color style attribute or background-color, both work. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex

Re: issue with logic:present on JDK 1.4.2

2005-10-19 Thread Dave Newton
Shyam Anand wrote: These don't seem to work with JDK 1.4.2 version. I'm running 1.4.2 w/o any JSTL issues. (Tomcat, WinXP, 1.4.2_08) Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Dave Newton
Frank W. Zammetti wrote: Just thought of this... one thing you could do is set the text color of each option. That *does* work. Might serve your purpose alright. You can actually set the color style attribute or background-color, both work. Looks funny when you roll over it. Still and

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Frank W. Zammetti
On Wed, October 19, 2005 3:20 pm, Dave Newton said: Looks funny when you roll over it. Still and all, kinda handy for something, I'm sure. Yeah, I thought so too... might be some CSS tricks you could play to keep the color the same when hovered over... I just tried some obvious things, none

RE: Adding images to option items in a select drop down list

2005-10-19 Thread Mark Benussi
And insert a #149; in front of the text in a larger font size (But same line height). This will give you a circle, but not a square. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 19 October 2005 20:13 To: Struts Users Mailing List Cc: Struts Users Mailing

Re: Moving from Struts 1.0.2 to 1.2.7. Encountering problems

2005-10-19 Thread Kishore Senji
action path=/login type=com.firstenergycorp.hep.LoginAction name=rtpForm scope=session input=login.jsp forward name=viewPrices path=viewPrices.jsp/ /action In the above configuration try for the forward's path as /viewPrices.jsp instead of viewPrices.jsp

Re: form.submit() issue with html:button

2005-10-19 Thread Carl Smith
What I really want to know is how to use html:button and still using onclick to call javascript to submit the form. Martin Gainty [EMAIL PROTECTED] wrote:Good Morning Carl excerpted from Craig: The challenge with doing this is that the JSP tags run on the server (as the page is being

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Joe Germuska
At 3:11 PM -0400 10/19/05, Frank W. Zammetti wrote: This isn's something that is possible in straight HTML. There could be a way to do it via CSS, but nothing obvious presents itself to me... I tried setting a background-image, but that didn't work. Can you find an example of it being done?

RE: I am getting frustrated with LookupDispatchAction

2005-10-19 Thread bsimonin
Hey everyone. Thanks for the input on my problems with my LookupDispatchAction. I was able to get the wizard steps working using the example on page 201 of the book: Jakarta Struts Cookbook. Now I am off to do the business logic. Again, thanks for all the help. --Brad -Original

RE: [ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Mick Knutson
I am forced to use the Websphere Axis libraries, and yes generate classes just fine. But I can't get them to adhere to MY interface, or MAKE these Types extend an Abstract Class of my own. At least that I can see. I also have about 1,000 different types being generated in our project. So, is

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Frank W. Zammetti
I was thinking you could build an actual custom control to do this, and that's a good start... add a down arrow to the right of it to show the dropdown portion and lock the textbox from editing and you'd have a good start. Thanks Joe! -- Frank W. Zammetti Founder and Chief Software Architect

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Faisal Mahmoud
Okay, somewhere in my head I can remember seeing an example of this, but I can't recall where it was. Sounds like the solution (if one exists) is non-trivial. Appreciate the ideas and if I do come across or develop some sort of solution I will post back to this thread. On 10/19/05, Frank W.

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Frank W. Zammetti
Actually, based on Joe's suggestion, I just threw it together just now. This is literally hacked together off the top of my head, and only tested in IE 6... I can see some things I'd want to fix already, but that's what you get from 5 minutes of hacking! Might make a good candidate for inclusion

Re: issue with logic:present on JDK 1.4.2

2005-10-19 Thread Shyam Anand
I have issues with struts-logic tags...I'm not using JSTL. Shyam --- Dave Newton [EMAIL PROTECTED] wrote: Shyam Anand wrote: These don't seem to work with JDK 1.4.2 version. I'm running 1.4.2 w/o any JSTL issues. (Tomcat, WinXP, 1.4.2_08) Dave

Re: I am getting frustrated with LookupDispatchAction

2005-10-19 Thread Adam Hardy
Michael Jouravlev on 19/10/05 00:44, wrote: On 10/18/05, Adam Hardy [EMAIL PROTECTED] wrote: Secondly, getKeyMethodMap() looks really clunky - is there no way this can be pushed into the struts-config.xml? It can be done, but if this to be defined inside existing structures like action, then

Re: issue with logic:present on JDK 1.4.2

2005-10-19 Thread Dave Newton
Shyam Anand wrote: I have issues with struts-logic tags...I'm not using JSTL. Whoops. I'm running 1.4.2 w/o any struts tag issues (including 'logic'). (Tomcat, WinXP, 1.4.2_08) Why not switch to JSTL anyway, though? Dave

Re: form.submit() issue with html:button

2005-10-19 Thread Martin Gainty
Referencing http://struts.apache.org/api/org/apache/struts/taglib/html/BaseHandlerTag.html#triedJstlSuccess To quote the doc org.apache.struts.taglib.html.BaseHandlerTag Base class for tags that render form elements capable of including JavaScript event handlers and/or CSS Style attributes.

struts bean utils-problems with properties

2005-10-19 Thread hem hem
Hi all, i am new to this forum.this is my first post.i hope this mailing list helps me. in the first page in my struts web app, i need to enter the details of 5 persons. they have proprties name,sex,rollnumber and age for that i created a bean with these 4 properties which have getter and

Re: form.submit() issue with html:button

2005-10-19 Thread Carl Smith
Thank you Martin on this information. This issue was resolved. Basically there was another error in my jsp that cause this issue. Now it is working fine. Simply put html:button does support form.submit() when correctly code in onclick. I will however have another issue with sturts validator

RE: issue with logic:present on JDK 1.4.2

2005-10-19 Thread Adrian_Rios
Use JSTL. __ Senior Programmer Analyst, Tax Distributed Systems Development Tax Compliance Development, ADP IT Phone: (909) 592-6411 Ext. 3863 e-mail: [EMAIL PROTECTED] -Original Message- From: Shyam Anand [mailto:[EMAIL PROTECTED]

Strange Struts tld problem

2005-10-19 Thread Koon Yue Lam
Hi, Assume I have 2 jsp(s), header.jsp and content.jsp In header.jsp, I have: %@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/tld/element.tld

Re: Strange Struts tld problem

2005-10-19 Thread Wendy Smoak
From: Koon Yue Lam [EMAIL PROTECTED] Assume I have 2 jsp(s), header.jsp and content.jsp In content.jsp, I include header.jsp like the following: %@ include file=../common/Header.jsp % The include isn't working. Possibly because your file is named 'header.jsp' and you're including

Re: form.submit() issue with html:button

2005-10-19 Thread Mark J.
Hi Carl, Mind telling us the cause of your problem? On 10/20/05, Carl Smith [EMAIL PROTECTED] wrote: Thank you Martin on this information. This issue was resolved. Basically there was another error in my jsp that cause this issue. Now it is working fine. Simply put html:button does support

Re: Strange Struts tld problem

2005-10-19 Thread Koon Yue Lam
sorry, the include in my first mail was wrong, it should be: %@ include file=../common/header.jsp % and it still can't locate those tld On 10/20/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: Koon Yue Lam [EMAIL PROTECTED] Assume I have 2 jsp(s), header.jsp and content.jsp In

struts1.2.7 and tiles definitions

2005-10-19 Thread Simons Kevin
All, I have used tiles and struts1.2.7 without definitions. The test worked. Now I wanted to test struts and tiles with definitions. This is the tiles-defs.xml file (stored in my web-app web-inf folder) tiles-definitions definition name=tests.test path=/tests/x.jsp/ /tiles-definitions I also

Its Impossible to update ResourceBundle?

2005-10-19 Thread Shailesh Barde
  I have to update the resource bundle from an Action Class.I found it impossible as the handle of Resource Bundle is with ActionServlet when it is intialized.So, in order to update the resource Bundle values i have remove the handle first. My Question is it true?If Yes why if No how it can

Re: Adding images to option items in a select drop down list

2005-10-19 Thread Sunil_Sahu
Faisal, Why you want to use image, you can use stylesheet. You may refer following code: HTML HEAD TITLE New Document /TITLE STYLE type=text/css OPTION.mar{background-color:maroon; color:white} OPTION.red{background-color:red; color:maroon} OPTION.blue{background-color:blue; color:maroon}

Re: struts1.2.7 and tiles definitions

2005-10-19 Thread Kishore Senji
tiles:insert beanName=tests.test flush=true/ Try definition instead of beanName as in tiles:insert definition=tests.test flush=true/

Re: struts1.2.7 and tiles definitions

2005-10-19 Thread Wendy Smoak
From: Simons Kevin [EMAIL PROTECTED] I have used tiles and struts1.2.7 without definitions. The test worked. Now I wanted to test struts and tiles with definitions. This is the tiles-defs.xml file (stored in my web-app web-inf folder) tiles-definitions definition name=tests.test

Error while adding one field in thesample application

2005-10-19 Thread Srinivas
Hi, I am new to struts development. I have got a sample application from elsewhere. and if I deployed that one works good. I have changed the files. I have added one field in to jsp page. for that I have modified form and action classes also. even it gives the following error. kindly help in

Re: struts1.2.7 and tiles definitions

2005-10-19 Thread Thomas Joseph
+1 Try tiles:insert name=tests.test ... / OR tiles:insert attribute=tests.test / Cheers, Thomas Joseph [EMAIL PROTECTED] From: Wendy Smoak [EMAIL PROTECTED] From: Simons Kevin [EMAIL PROTECTED] I have used tiles and struts1.2.7 without definitions. The test worked. Now I wanted