Struts Validator question

2003-11-24 Thread LACKEY,DAVID (HP-PaloAlto,ex1)
All, I posted this a few hours ago on the jakarta-commons list and have not come up with a solution yet. I decided to commit the sin of x-posting it here since this may very well be a struts issue. I hope this is not a newbie question. I have RTFM several times. I suspect I must be missing

RE: Validator Backend Issues

2003-11-24 Thread David Friedman
Joe, Nope. I was writing to you about that but you found your solution faster than I could type (my poor aching fingers at 2AM!). When you said your 'formName=UserLoginForm', that suggests you're keying off the action's ActionForm name 'name='UserLoginForm' for your validation. That's why you

RE: Struts Validator question

2003-11-24 Thread David Friedman
Two questions immediately come to mind from what you documented: 1. Does com.hp.ipg.ne.pgpm.forms.orgForm extend org.apache.struts.validator.ValidatorForm or org.apache.struts.validator.ValidatorActionForm 2. The 'input=org_edit.jsp is context sensitive. Can you reach org_edit.jsp from the same

RE: Validator Backend Issues

2003-11-24 Thread Joe Hertz
David, Yes it does. Thank you. I wanted to use the DynaActionValidatorForm (ow! Ow! Ow! :-) because I do want it validated off of the Action, but when I saw the formName property, I didn't want to lie to it on general principles. Tx again. -Original Message- From: David Friedman

RE: Validator Backend Issues

2003-11-24 Thread David Friedman
Joe, When using a Struts Validator based on the Action name, you usually need to add the 'method=validateSomeName' because the Struts Validator wants to use the exact name in your validation xml file. In your case, that is /Login which matches your action. So, change your html:javascript and

RE: Struts Validator question

2003-11-24 Thread LACKEY,DAVID (HP-PaloAlto,ex1)
Answer to Question 1: public final class orgForm extends ValidatorForm Answer to Question 2: I have double checked the case and spelling of the file name. Both the action and org_edit.jsp can be reached in the same directory. I assume the question you are posing has to do with the URL used

RE: Inheritance in tile definitions II

2003-11-24 Thread David Friedman
Ed, The list archives describe this problem. I didn't understand it until I tested it. Inside the main definition, /layouts/formLayout.jsp, you'd normally have a segment like this: tiles:get name=header/ Instead, they say to pass any tile-defined attribute, you must use an insert and put in

Struts upload functionalities

2003-11-24 Thread Viral_Thakkar
Hi all, Is there reference documentation or code available which explains the upload (uploading of documents) functionality? Thanks in advance. Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Struts upload functionalities

2003-11-24 Thread David Friedman
The struts distributions should all have a sample .war application with code and jsp's called struts-upload.war. It's often in the webapps folder. :) -David -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 4:12 AM To: Struts Users Mailing

System Exception Handling in Struts

2003-11-24 Thread alok . garg
Hello, How can I handle a system exception in Struts? Is Logging an internal part of Struts if yes how to configure it. Please help with an example if possible. Alok Garg Polaris Software Lab Ltd. ( + 91 - 022 - 28290019 Ext. # 1308 ) This e-Mail may contain proprietary and confidential

tiles - setup

2003-11-24 Thread Morten Andersen
I'm trying to use tiles with my existing struts application, but I can't get the definitions to work. I've tryed using the following procedure: Add the tiles plugin to the struts-config.xml file by writing the following just after the action mappings: plug-in

Re: System Exception Handling in Struts

2003-11-24 Thread Gurpreet Dhanoa
hi As such you cannot control when system exception occur not in EJB also. THough using follwoing code you can always transfer the user to the well formed error page if in case it occurs. public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request,

Re: Inheritance in tile definitions II

2003-11-24 Thread Ed Dowgiallo
Thank you very much David. That solved the problem. Ed - Original Message - From: David Friedman [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 24, 2003 3:23 AM Subject: RE: Inheritance in tile definitions II Ed, The list archives describe

optionsCollection with another default value

2003-11-24 Thread Frank Schaare
Hallo, i´ve made a select from an optionsCollection Tag. The values are read from a hashmap like value1 = one value2 = two value3 = three Now i´d like to set a default value for this select, which is NOT PART of my HashMap, f.e please select... The rendered select should look like this:

html:submit and html:button componant : value and text label

2003-11-24 Thread Eric BELLARD
hi, i'm dispatch action addicted developper and I go a recurent problem with html:button and html:submit componant. With these componants it's impossible to separate their label and their submitted value. I managed with some javascript like this to invoke the dispatch method i want : // submit

Save actionform modifications

2003-11-24 Thread Eric Saya
Hi, I have a question concerning a mode of use of the framework : My standard use is: 1- the html form is sent to the server by calling a '.do' url 2- the actionform reset() method is called 3- the actionform setXyz() method are called (for each 'xyz' parameters of the html form) 4- the

Struts Developed Sites and Google

2003-11-24 Thread Joe Hertz
URL's with session state information will cause search engines problems in trying to index the content. (Makes sense -- the generated URLs wont be valid for anyone else). Google isn't about to store cookies as it indexes content, I'm sure. So doesn't this make Struts a poor choice for

Re: tiles - setup

2003-11-24 Thread Raman
well all i can say is just check you have following lines of code in web and struts-config xml files. These are my configurations IN web.xml file taglib taglib-uri/struts-tiles/taglib-uri taglib-location/WEB-INF/tlds/struts-tiles.tld/taglib-location /taglib IN struts-config.xml

RE: html:submit and html:button componant : value and text label

2003-11-24 Thread Paul McCulloch
This is an html issue, rather than a struts one. Read up on how input type=submit/ works for an in depth explanation. Struts provides the LookupDispatchAction which is designed to deal with this issue. Paul -Original Message- From: Eric BELLARD [mailto:[EMAIL PROTECTED] Sent: 24

JSTL

2003-11-24 Thread Tarek M. Nabil
Hi everyone, I'm getting ready to move from Struts 1.0.2 to Struts 1.1. Since, also, I now guarantee a J2EE 1.3 container, I'm considering replacing Struts tag libraries with the JSTL. Before I make this move, I wanted to know whether, from your experiences, the JSTL gives the same

RE: System Exception Handling in Struts

2003-11-24 Thread Kalra, Ashwani
Logging is not part of struts. You can configure any logging api with struts. Struts doesnt assume any thing. For eg. put your log4.properties/xml file in classpath and log4.jar and start using the way you do it with other applications /Ashwani -Original Message- From: [EMAIL

Re: tiles - setup

2003-11-24 Thread Morten Andersen
Thanks a lot. I checked the xml files and found the following errors: * The ?xml version... part on the tilesDefinitions.xml file was on line 2.. Should have been on line 1 * There was no DOCTYPE declaration in the tilesDefinitions.xml file... * The tiles taglib- was not included... I

Some doubts.

2003-11-24 Thread Antony Paul
Hi all, I am starting to learn Struts. On going throgh the documentation I have some doubts. 1. Is a form bean is an ActionForm.? 2. It says that data is stored in JavaBeans. In the presentation layer I have to display several select boxes whose value is fetched from database eg. states,postal

Re: Struts Developed Sites and Google

2003-11-24 Thread Kris Schneider
This thread may be of interest: http://marc.theaimsgroup.com/?t=10691766306r=1w=2 You may also want to immediately invalidate any sessions created this way, or at least set the max inactive interval to a small number. BTW, this isn't unique to Struts, it's how web apps work. Quoting Joe

Re: Some doubts.

2003-11-24 Thread Shakti
hi, You can read 1 ) http://javaboutique.internet.com/tutorials/Struts/ article to get some idea about struts + MVC ( just for a startup .. ) 2 ) http://jakarta.apache.org/struts/resources/1st.html article to get a better perspective . chao .. Shakti - Original Message - From: Antony

Announce: JPlates 3.0 released - a powerful alternative to JSP for Struts

2003-11-24 Thread Dan Jacobs
JPlates Inc has announced the general availability of JPlates 3.0. The JPlates 3.0 template language supports complete object-oriented template processing with template objects and template methods. JPlates 3.0 offers a powerful, high performance alternative to JSP and XSLT and Velocity for

Re: tiles - setup

2003-11-24 Thread Raman
Pls see the sample tiles-def.xml file attached with this mail. check if theis can help you !! - Original Message - From: Morten Andersen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 24, 2003 6:02 PM Subject: Re: tiles - setup Thanks a lot.

Tiles problem with / in action forward since struts 1.1

2003-11-24 Thread Lukas sterreicher
Hello In latest revisions of struts it seemes to be required to have an action forward start with a /. This is ok under normal situations, however, it seemes to cause troubles with tiles, at least for me. When forwarding to a tile defind in the xml configureation file for tiles it seemes to be

RE: Some doubts.

2003-11-24 Thread Kalra, Ashwani
all inline Hi all, I am starting to learn Struts. On going throgh the documentation I have some doubts. 1. Is a form bean is an ActionForm.? Yes 2. It says that data is stored in JavaBeans. In the presentation layer I have to display several select boxes whose value is fetched

Inheritence and tile definitions III

2003-11-24 Thread Ed Dowgiallo
My previous problems with title have been solved, but now I have an analogous problem with "content". The idea of the definitions below is that I want to have a base.layout that determines the header and footer for all pages. Base layout contains a "body" which can be replaced by different

Prelogon Action to init a List

2003-11-24 Thread Hunziker Dennis
Hello To initialize a list for a drop-down element at our logonpage (logon.jsp), we need a prelogon action. The problem i have is that the connection i use to fill this list is stored in the session, so i cant init the list in our logonform. Question: How would you do that? Is it possible to

Type double does not work in the validator.

2003-11-24 Thread Laurent MARQUEZ
Hi, I am using struts 1.1 Is anybody using validator with type double? It' s not working, but integer or float works. Why? - field property=totalTestCost depends=double msg name=double key=errors.double/ arg0

Re: Some doubts.

2003-11-24 Thread Ed Dowgiallo
In terms of best practice design patterns for where and how to deal with business logic and database access, I have found the following two O'Reilly books to be invaluable: Programming Jakarta Struts by Chuck Cavaness Building Java Enterprise Applications, Volume I: Architecture I'm sure there

Disable binary files in upload

2003-11-24 Thread ludovic . maurillon
Hi all, I would like to prevent the user from upload binary files from an upload form, but to allow him to download any kind of ascii files. What is the better way to do that? Is it something i can do with the configuration.? Or should I add a test on the content-type value received ? Thanks,

Re: System Exception Handling in Struts

2003-11-24 Thread Gerhard Kreutzer
[EMAIL PROTECTED] wrote: Hello, How can I handle a system exception in Struts? Is Logging an internal part of Struts if yes how to configure it. Please help with an example if possible. http://www.kreutzersoft.de/java/servlets/servlet-jsp/log4j/ksct-log4j.pdf HTH gerhard -- KreutzerSoft

Re: Prelogon Action to init a List

2003-11-24 Thread Caoilte O'Connor
Hi, your best be would be to make a /GoTo/LoginPage action (using whatever nomenclature you have) that makes this list for you. This is a good design principle anyway because you should avoid exposing jsp pages directly to the end user. For example, I have an index.jsp page at the root of

ActionForm field not changing when forwarded to Action

2003-11-24 Thread bort
Hi all I have an application which exhibits two similar, yet distinct, behaviours. Behaviour 1: Submit Form F to Action A. In Action A change 1 (or more) of the fields in Form F. Forward to JSP J. Behaviour 2: Submit Form F to Action A. In Action A change 1 (or more) of the fields in Form

RE: Prelogon Action to init a List

2003-11-24 Thread Hunziker Dennis
thx for your thoughts. i made a forward in the checklogontag. the problem was that there was a type definition for our prelogon action. after removing that it worked properly. -Original Message- From: Caoilte O'Connor [mailto:[EMAIL PROTECTED] Sent: Montag, 24. November 2003 15:46 To:

[OT] Stress Test

2003-11-24 Thread Jerry Jalenak
Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do

RE: [OT] Stress Test

2003-11-24 Thread Chappell, Simon P
I stress-tested our app with a combination of HttpUnit and JUnitPerf. My test was designed to see what the maximum throughput was, rather than testing longevity, but the basic principles should be the same. I had multiple simulated users, logging in. each in independent sessions, and then

RE: [OT] Stress Test

2003-11-24 Thread Paul McCulloch
I use JMeter for this sort of thing. It's JSession aware which makes life a bit easier. Paul -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: 24 November 2003 15:05 To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my

RE: Hibernate plugin

2003-11-24 Thread Gopal Venkata Achi
Hi David, We are in the process of choosing the Hibernate for one of my applications. Can you let me know, how does it help us, and under what circumstances, we use this tool. I have gone thru the Hibernate docs, but have not got the clear idea. Please help me in this regard. Regards, gopal

Re: [OT] Stress Test

2003-11-24 Thread Vic Cekvenich
OpenSTA works for me. Jerry Jalenak wrote: Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there

RE: [OT] Stress Test

2003-11-24 Thread Jerry Jalenak
Simon, Paul, and Vic - Thanks for the suggestions. One initial glance it looks like JMeter will do what I want, so I'm going to head down that path 8-) Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED]

RE: Hibernate plugin

2003-11-24 Thread Ramachandiran, Karuna
Hello Gopal-, Hibernate is OR/Mapping tool which allows you to map java data objects to relational database. The documentation found in the hibernate.org is the best documentation I have ever seen for a open source project so going thru that will help you a lot. Basically everyone

Re: [OT] Stress Test

2003-11-24 Thread Martin Gainty
Simon Do you prefer JunitPerf to JProbe or Clover? Thanks, Martin - Original Message - From: Chappell, Simon P [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 24, 2003 10:11 AM Subject: RE: [OT] Stress Test I stress-tested our app with a

RE: [OT] Stress Test

2003-11-24 Thread Chappell, Simon P
I must admit that I have not tried JProbe or Clover, so I can't help there. I liked JUnitPerf for the task that I had. I originally wanted to use JMeter, but was unable to figure out quickly enough how to have unique test data for each simulated user, which was crucial for the test that I

RE: [OT] Stress Test

2003-11-24 Thread Chappell, Simon P
Go for it. JMeter is a nice tool and the guys on the mailing list are as helpful as you could wish. I'm looking to try JMeter for some functional testing in the near future. Simon -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:26 AM

Logic Iterate problem:

2003-11-24 Thread Raman
Logic Iterate problem: Can we have nested logic iterates? e.g. if I want to show list of products under all Categories. how can i implement that? I am having problem in setting the values of attributes for inner logic iterate loop logic:iterate id=category name=categorylist bean:write

RE: [OT] Stress Test

2003-11-24 Thread David Friedman
So after 6 hours, what do your log files (web server and java application server) show? Do they show struts actions being performed? Does it show out of memory errors? Anything like that? Regards, David -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: Logic Iterate problem:

2003-11-24 Thread Jeff Kyser
Look at the nested:iterate tag. Nice http://jakarta.apache.org/struts/userGuide/struts-nested.html -jeff On Monday, November 24, 2003, at 09:44 AM, Raman wrote: Logic Iterate problem: Can we have nested logic iterates? e.g. if I want to show list of products under all Categories. how can

RE: [OT] Stress Test

2003-11-24 Thread Jerry Jalenak
David, Nothing. Nada. Zip. ZIlch. The logs show basically no response; from the client perspective the web app simply stops responding. I suspect I've either got a memory leak, or a database connectivity issue. Hopefully I can stress test this thing enough today to identify where in the code

indexed iterated nested radio buttonbuttons

2003-11-24 Thread Denise Ketcham
I am getting unexpected results with indices when iterating nested indexed radiobuttons. The form bean is applicationForm. It has an ArrayList of SkillCategory objects called skillCategories. Each SkillCategory in turn has an ArrayList of StudentSkill objects called skillsList. Here is the

Re: indexed iterated nested radio buttonbuttons

2003-11-24 Thread Kris Schneider
Not sure if this will fix it, but you don't need the name attribute in nested:iterate. It should pick it up from the enclosing html:form or nested:form. Quoting Denise Ketcham [EMAIL PROTECTED]: I am getting unexpected results with indices when iterating nested indexed radiobuttons. The

RE: Disable binary files in upload

2003-11-24 Thread David Friedman
Ludo, You might want to use a FormFile in your ActionForm bean to make the file easier to deal with. Then, you can do things like this: 1. FormFile.getContentType() and see if it is a MIME type you allow. 2. FormFile.getInputStream() and save it in an ascii, not binary mode. So, binary data

RE: Inheritence and tile definitions III

2003-11-24 Thread David Friedman
Ed, From the previous tiles problem, it seems as though the base definition is key and must list everything that needs to be 'global'. So, it might fix your problem if you make sure all elements are in it. I.e. in base.layout, try including your content, which is defined everywhere EXTENDING

RE: Tiles problem with / in action forward since struts 1.1

2003-11-24 Thread David Friedman
Lukas, How are you trying to 'forward' to your tile? Certain logic:tags don't foward to tiles - it's in their documentation. Please provide examples of your forward tags, relevant action .../ tags, and how you are trying to 'forward' to it. Regards, David -Original Message- From:

Re: indexed iterated nested radio buttonbuttons

2003-11-24 Thread Kris Schneider
Hm, I'm pretty sure you can also skip the indexed attribute on nested:radio. Quoting Kris Schneider [EMAIL PROTECTED]: Not sure if this will fix it, but you don't need the name attribute in nested:iterate. It should pick it up from the enclosing html:form or nested:form. Quoting Denise

File path validation in formfile.

2003-11-24 Thread deepaksawdekar
Hi I am using the org.apache.struts.upload.FormFile. Now i want to validate wheather a file path entered by user is valid or not. Thanks and Regards Deepak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

MessageResources in ActionForm

2003-11-24 Thread Honza Spurn
Hi there, I'm able to read values from MessageResources in JSP files. But in special case I need to read such values in java-classes. Unfortunatelly I need it in ActionForm in validate() method... To understand me I'm attaching my vision of how it could be very easy (it doesn't work): public

validation.xml and validate() method

2003-11-24 Thread Honza Spurn
Hi there, as I can see, when I implement the validate() method in the ActionForm, it means, that validation throught validation.xml file (inner struts validation) stops to work. ??? Am I right ??? This seems to me so... Am I doing something wrong? How can I walk throught both validation? If it

Re: validation.xml and validate() method

2003-11-24 Thread Dirk Markert
Hello Sporak, call super.validate(). *** HS Hi there, HS as I can see, when I implement the validate() method in the ActionForm, it HS means, that validation throught validation.xml file (inner struts HS validation) stops to work.

RE: Hibernate plugin

2003-11-24 Thread David Friedman
Gopal, I like hibernate for a few simple things: 1. Auto-population of objects. I hate copying SQL columns or adding a second step by calling beanutils.copyproperties. 2. Describe your object and hibernate can: A) Auto-generate my java object code (hbm2java) B) Auto-update my database tables

RE: Disable binary files in upload

2003-11-24 Thread ludovic . maurillon
Thanks David for your answer. I was searching for something more generic. I use a FormFile, like you suggested. And I tought filtering on the contentType, but I'am afraid not be able to managing all the case. At the beginning, I tested il content-type equals octetstream or bianry, it is so

A Dynamic Action handler Opinons wanted.

2003-11-24 Thread McClung, Brian
I've been using struts for over two years now and enjoy the benefits that it has brought to my code. An issue that I have always had with it is the struts-config.xml file. We have a custom built registration and survey system that struts is the controller for. The backend engine supports most

Re: indexed iterated nested radio buttonbuttons

2003-11-24 Thread Denise Ketcham
Thanks, Taking the indexed attribute off was the key. Hm, I'm pretty sure you can also skip the indexed attribute on nested:radio. Quoting Kris Schneider [EMAIL PROTECTED]: Not sure if this will fix it, but you don't need the name attribute in nested:iterate. It should pick it up from the

Re: MessageResources in ActionForm

2003-11-24 Thread Manish Singla
Hi Use following MessageResources mr = ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)); Instaed of MessageResources mr = request.getMessageResources(); HTH Manish Singla Honza Spurn wrote: Hi there, I'm able to read values from MessageResources in JSP files. But in special

RE: optionsCollection with another default value

2003-11-24 Thread Daniel Lipofsky
Use one html:option ... tag followed by the html:optionsCollection ... tag. - Dan -Original Message- From: Frank Schaare [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 3:15 AM Hallo, i´ve made a select from an optionsCollection Tag. The values are read from a

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread Manish Singla
Because when you forward to Action B, at that time Struts Request Processor again processes Action Form. (FYI: In Action B, request is still having old values from Form F. Thus, values are reset and populated) HTH Manish Singla bort wrote: Hi all I have an application which exhibits two

RE: getParameter() returns null on multipart requests

2003-11-24 Thread Terry Brick
Thank you very much.. some good ideas! I'll give it shot. __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: JSTL

2003-11-24 Thread Manish Singla
You may replace most of Logic tags/Bean tags with JSTL. You may still want to use HTML tags of struts Your decision may get affected in few cases if you are thinking of migrating to JSF in future Tarek M. Nabil wrote: Hi everyone, I'm getting ready to move from Struts 1.0.2 to Struts 1.1.

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread Eric Saya
Thanks for this answer Manish, what would you do if you need to change the value of one form parameter in action A and you want to avoid this value to be lost after the forward to action B ? Is it possible to duplicate the actionform object in a copy object that the Struts Request Processor wil

Re: multiple modules cannot retrieve mapping not fun!

2003-11-24 Thread Manish Singla
Use this /author/loginAuthor.do in html-el:form HTH Manish Singla Matt Pease wrote: Hi all -- I'm trying to move to struts 1.1 multiple application modules am getting a very frustrating error that I can't seem to move around. I've searched the archives haven't found a solution. Bummer!

Re: Message Resources and Struts Modules (Partially Solved)

2003-11-24 Thread Manish Singla
No, there is no bug. You can access message resources of of default module and ( message resources of other modules also if required). alvin antony wrote: Hello, I just tried to copy all message resources definitions to the default struts-config.xml and now they are no

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread Manish Singla
You may not specify ActionForm in Action B. Thus struts request Processor will not reset values in Acion B. This implies you have to create an instance of CommonActionForm in Action B. (See in which scope you are storing CommonActionForm in Action A). Alterbate You may also specify attribute

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread bort
Thank you for your response Manish. Manish Singla [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Because when you forward to Action B, at that time Struts Request Processor again processes Action Form. (FYI: In Action B, request is still having old values from Form F. Thus, values

links without underline/border

2003-11-24 Thread Sonam Belbase
I'm trying to get the image be a link and not be underlined, but the following still renders an image with with a border. html:link href=javascript:setSaveUrl('save'); style={text-decoration: none;} img src=../../images/save_journal.gif/ /html:link If anyone can tell me how I can get the

Re: links without underline/border

2003-11-24 Thread Jonathan Sampson
Sonam, You do not want to kill a text-decoration simply because images do not have text decorations. Instead, on your image add this property border=0 So your image tag should be: img src=../../images/save_journal.gif border=0/ I hope this helps. You can delete the style tag all together.

Re: validation.xml and validate() method

2003-11-24 Thread Sergey Smirnov
Your form-bean should expand org.apacher.struts.validator.ValidatorForm, not just ActionForm, and your validate() should call validate() from super class (ValidatorForm) to have validation.xml involved. Honza Spurný [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, as I can

Most productive Struts Framework :

2003-11-24 Thread MBrewer
Which of the Struts framworks would you think is the most productive for doing administrative screens over a database? Mike The information in this message is confidential and may be legally privileged. It is

Change default forward class

2003-11-24 Thread Eric SCHULTZ
Good afternoon... I realise I can change the class of my forward using className=... but is there a way I can change the default from org.apache.struts.action.ActionForward in parameter (ie.: without extending anything in the servlet)? I like my worms tightly canned. I need to do this because

logic:iterate help

2003-11-24 Thread mohan
Hi All I have a Vector called as testScoresVector (Vector of testScores Objects) stored in the session I am trying this logic:iterate id=tsv name=testScoresVector html:select property=tsv.testName html:option value=SAT-1SAT-1/html:option html:option

Re: links without underline/border

2003-11-24 Thread Brice Ruth
Just an FYI - to remove the border, you wouldn't use the CSS for text-decoration, you'd use border: none; ... :) Sonam Belbase wrote: I'm trying to get the image be a link and not be underlined, but the following still renders an image with with a border. html:link

disable submit button unless all required fields are filled

2003-11-24 Thread [EMAIL PROTECTED]
Hi, I want to have the submit button disabled unless the required text field is filled by the user. I have two buttons in the form, submit and cancel. The cancel button should always be enabled. Can anybody help me? Please! Thanks in advance! - Do you

Re: disable submit button unless all required fields are filled

2003-11-24 Thread Brice Ruth
How about having JavaScript only perform submission of the form when all fields are entered (using validation) ... that would make a bit more sense. Otherwise, you'd have to put a method in the handlers for every field that fires when that field loses focus, to determine if the submit button

Re: getParameter() returns null on multipart requests

2003-11-24 Thread Martin Cooper
Terry Brick [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, When I submit a multipart form to my action I am unable to get use getParameter() on the request object to get my form field values. As I understand it struts is supposed to automatically create a

Types supported by DynaActionForm (or DynaValidatorForm)

2003-11-24 Thread Sasha Borodin
OK, in the Struts manual, it says: The types supported by DynaActionForm include: - java.sql.Date - java.sql.Time - java.sql.Timestamp ...(among others)... What does supported mean though? Cause if I try to specify a java.sql.Date field in my form in struts-config: form-bean

RE: getParameter() returns null on multipart requests

2003-11-24 Thread David Friedman
Martin, I don't know if Terry got it working, but I don't see why he (or anyone) couldn't keep it simple by using a CommonsMultiPartRequestWrapper's getTextElements() or getAllElements() methods, liks so: // Assuming wrapper is the initialized CommonsMultiPartRequestWrapper Hashtable

Re: getParameter() returns null on multipart requests

2003-11-24 Thread Martin Cooper
David Friedman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Martin, I don't know if Terry got it working, but I don't see why he (or anyone) couldn't keep it simple by using a CommonsMultiPartRequestWrapper's getTextElements() or getAllElements() methods, liks so: Why is

RE: getParameter() returns null on multipart requests

2003-11-24 Thread David Friedman
Martin, I agree Terry could have had it so much easier using an ActionForm. But, I recall that wasn't what Terry wanted to do back in the first post, hence the wrapper example, then the follow-ups about keeping everything in one place, that wrapper. Is there a way I missed to get the

Unable to load class link

2003-11-24 Thread C. Grierson
Hello, I am getting this error that is driving me nuts--it seems to be referring to a class named 'link', which first off, I don't know of, and secondly, doesn't have its initial letter capitalized as per usual. This isn't one of my classes, so I have no idea what Tomcat is referring to, and I'm

Re: Unable to load class link

2003-11-24 Thread Kris Schneider
So, care to share what's in showUserCases.jsp at, say, line 35 or so? Sounds like you've got something like: jsp:useBean id=... class=link/ or maybe: %@ page import=link % or...? C. Grierson wrote: Hello, I am getting this error that is driving me nuts--it seems to be referring to a class

[ANNOUNCE] Struts Console v4.1

2003-11-24 Thread James Holmes
Struts Console version 4.1 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.1.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.1.tar.gz Struts Console is FREE software. At long last there is a new release.

What is CornerStone?

2003-11-24 Thread Raj A
Hi, Does anybody have any idea about Apache Cornerstone framework . I am in the process of choosing a MVC implementation and somebody told me about it. Can anybody shed some light about it. How is it similar/dissimilar to Struts or is it not an MVC framework at all. Thanks in advance Raaj

Re: struts and PHP

2003-11-24 Thread Craig R. McClanahan
Quoting Christian Bollmeyer [EMAIL PROTECTED]: Am Montag, 17. November 2003 22:48 schrieb Daniel Blumenthal: Hi, i've been looking into adding blogging functionality to my website (which uses struts), and one which was suggested was pmachine (http://www.pmachine.com/index.php).

Sorry.. Need of blood of B Negative

2003-11-24 Thread Abhijeet Mahalkar
Very Very Sorry to all , But I have a major requirement of ( B Negative )blood for the heart operation of My Uncle at Ruby hospital PUNE, Maharashtra State INDIA. All those who are localite Puneties and have a blood group B Negative, (Maharashtra State, INDIA) I request them to donate the blood

RE: Server manged vs. struts managed db pools

2003-11-24 Thread Craig R. McClanahan
Quoting Edgar P Dollin [EMAIL PROTECTED]: I like struts managed db pools, however, the struts developers aren't too happy about the quality and the dependency on the commons-pooling library and are attempting to phase it out. The existing connection pool in struts-legacy.jar (and the one in

RE: Server manged vs. struts managed db pools

2003-11-24 Thread Mike Duffy
Tomcat has exceptionally clear documentation in this area: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Mike --- Craig R. McClanahan [EMAIL PROTECTED] wrote: Quoting Edgar P Dollin [EMAIL PROTECTED]: I like struts managed db pools, however, the

[OT] Re: Sorry.. Need of blood of B Negative

2003-11-24 Thread James Mitchell
On Tue, 25 Nov 2003, Abhijeet Mahalkar wrote: You should label this as [OT] in the subject heading. I hope your Uncle is ok. Very Very Sorry to all , But I have a major requirement of ( B Negative )blood for the heart operation of My Uncle at Ruby hospital PUNE, Maharashtra State INDIA.

Re: logic:iterate help

2003-11-24 Thread Mike Duffy
I recommend you drop the Struts logic tags and switch to JSTL combined with the Struts-el tags. JSTL has support for common, structural tasks such as iteration and conditionals, tags for manipulating XML documents, internationalization and locale-sensitive formatting tags, and SQL tags. It

  1   2   >