RE: html:select / html:options

2003-05-27 Thread Abhinav (Cognizant)
That means we are keeping unsafeValues and unsafeLabels separately in our form-bean. (Though they are related -- i think so) What if these two are kept encapsulated in an object. -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 9:06 PM To:

SOLVED Re: [OT] unit testing something that uses JNDI

2003-05-27 Thread Erik Price
Erik Price wrote: Hi, I would like to write some unit tests for some classes. Unfortunately the classes use some JNDI data so they need to be run from within my app server (Tomcat in this case) in order to get the JNDI data from the web.xml. Any suggestions on a good way to go about this?

Re: html:select / html:options

2003-05-27 Thread Denis Avdic
use optionsCollection tag property: name of the collection in the form Bean label : The property of the bean within the collection which represents the label to be rendered for each option. (ie. Name) value: The property of the bean within the collection which represents the value to be

RE: Issues with Struts and IE 6 SP 1 upgrades?

2003-05-27 Thread Viggio, Alex
Yes, our app is returning pure HTML (no client-side Javascript). We're setting up a time to troubleshoot the logs. - Alex -Original Message- From: Xu Cheng [mailto:[EMAIL PROTECTED] Sent: Saturday, May 24, 2003 8:43 AM To: Struts Users Mailing List Subject: Re: Issues with Struts and IE

Re: The Action, the bean and the JSP

2003-05-27 Thread Gareth Andrew
Torsten Schlabach wrote: Dear List, I am working with Struts for some weeks now, but there are just some concepts that don't become clear to me neither from the docs nor from all that tutorials. They all stop where my questions start. So first of all, I would like to ask the list for

[ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread Christian Cryder
Hi folks, I normally wouldn't post this type of info to the Struts list, but since a number of you have asked to be kept abreast of Barracuda develpments, I figured I would let you know that the long awaited stable release of Barracuda 1.2.0 is finally here! You can download it at:

[OT] I'm tired of restarting tomcat!

2003-05-27 Thread Fabio Mancinelli
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, this is somewhat off-topic but I don't know why I have this behaviour. I deployed my struts application on tomcat 4.1.18 and randomly, it stops serving requests (it waits forever on index.jsp). In the log files I always notice an

RE: The Action, the bean and the JSP

2003-05-27 Thread Krishnakumar N
Hi, If I understand you right, you are wondering (a) why the formbean gets instantiated while building the view and (b) how you can get your data into the form bean for display. The normal processing is as follows: [user enters data in the html form] - [HTTP request] - [form bean] which gets

RE: html:options

2003-05-27 Thread shirishchandra.sakhare
There are other optiosn to use it... I ahve never used it with Arays but i have used it with Collections... First i use jsp:useBean tag to get the collection from the form and make it available in the page scope and then use html:options with collection=beanName where beanName is the eban

RE: html:options

2003-05-27 Thread Abhinav (Cognizant)
I was able to do it like that. bean:define id=blist name=MyForm property=List type=java.util.Vector/ html:select property=Id html:options collection=list property=ID labelProperty=desc / /html:select Thanks a lot all you ppl. -Original Message-

RE: html:select / html:options

2003-05-27 Thread Kandi Potter
I'm just learning here as well.but that is what worked for me. I actually store the vectors in a CollectionForm with the two vectors as members. I don't know if this was the most graceful way to handle the problem, but it worked for me. I have something like this: I used a

RE: html:options

2003-05-27 Thread Kandi Potter
hey thanksmaybe I'll try to minimize my code. -Original Message- From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:15 PM To: Struts Users Mailing List Subject: RE: html:options I was able to do it like that. bean:define id=blist name=MyForm

Direct me to the archive about individual error reporting next to fields

2003-05-27 Thread Bailey, Shane C.
I was looking at this: http://husted.com/struts/tips/017.html http://husted.com/struts/tips/017.html but what ends up happening is I get the header to show up next to the error as well. Is it possible to have errors.header=The following validation errors occured:

RE: URL missing .do

2003-05-27 Thread Steve Raeburn
-Original Message- From: Marcel Overdijk [mailto:[EMAIL PROTECTED] Sent: May 27, 2003 12:12 AM I have developed a webapp on Tomcat 4.0.3 and works fine. After deploying it at my provider (Tomcat also 4.0.3) my action-mappings aren't working If your web host is using Apache, it

Parameters v form beans (again!)

2003-05-27 Thread Mike Whittaker
I know I've been here before, but it is my main sticking point. Does anyone JUST use the Form Beans as a html form backend, whether that is for pre population or validation or both. BUT Then decide that is easier to use the request parameters as a java.util.Map in the business layer. I know I

Custom Validator not being called

2003-05-27 Thread Brown, Melonie S. - Contractor
I have the standard validation working just fine. I have attempted to branch out to use a custom validator for making sure that passwords follow a certain set of rules. The custom validation method does not get called. I set the logging to debug, but the output only confirmed that my method

RE: Custom Validator not being called

2003-05-27 Thread Bailey, Shane C.
Could it be that it is failing required or minlength first and therefore isn't getting to your method? -Original Message- From: Brown, Melonie S. - Contractor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:32 PM To: '[EMAIL PROTECTED]' Subject: Custom Validator not being

Having problems with DynaValidatorForm

2003-05-27 Thread sannabel
I'm a struts novice trying to use DynaValidatorForm. I am getting this error. javax.servlet.ServletException: Exception creating bean of class org.apache.struts.action.DynaValidatorForm: {1} at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:530)

Bean input

2003-05-27 Thread Kamholz, Keith (corp-staff) USX
Hi everyone, I'm creating a web app that uses struts and tiles. I have a question about my action mapping When you specify the input attribute for an action mapping, should I use the name of the JSP that forwards to my form page, or the tiles name of that entire page? Thanks in advance. -

Validator replace of field value instead of key?

2003-05-27 Thread Bailey, Shane C.
I can get {0} is required. to be replaced with a key like label.firstName but how do I do a replace for a var like email address as in: {0} is not a valid email? A key doesn't go in there but the email submitted goes in there. In the validation.xml instead of arg0 key=label.firstName /

Starting subsystems

2003-05-27 Thread Mohan Radhakrishnan
Hi Our presentation tier using struts ends right at the business delegate. I am aware of the load-on-startup tag. Now if I want to start a subsystem like my messaging (JMS) server which is very loosely coupled to my presentation tier I think of the startup class provided by almost all

RE: Having problems with DynaValidatorForm

2003-05-27 Thread Bailey, Shane C.
Try: form-bean name=searchForm type=org.apache.struts.validator.DynaValidatorForm ... -Original Message- From: sannabel [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:46 PM To: [EMAIL PROTECTED] Subject: Having problems with DynaValidatorForm I'm a struts novice

RE: Bean input

2003-05-27 Thread Bailey, Shane C.
Tiles def. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:44 PM To: Struts (E-mail) Subject: Bean input Hi everyone, I'm creating a web app that uses struts and tiles. I have a question about my action mapping

RE: RequestUtils.populate(RequestUtils.java:943)

2003-05-27 Thread Bailey, Shane C.
Get the source for your version and check out what is going on at line 943 of RequestUtils. I tried looking at 1.1b3 source and the line numbers didn't line up to yours. Too bad JAD wouldn't help (because it doesn't give original source code it just decompiles so lines won't mach either).

Re: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread David Graham
I normally wouldn't post this type of info to the Struts list, but since a number of you have asked to be kept abreast of Barracuda develpments, I figured I would let you know that the long awaited stable release of Barracuda 1.2.0 is finally here! IMO, people interested in Barracuda developments

RE: Custom Validator not being called

2003-05-27 Thread Brown, Melonie S. - Contractor
I could live with that. :) The problem is that the custom validation isn't being called when the required and minlength pass. To test that, I changed the field settings to: form name=changePasswordForm field property=newPassword depends=complexpassword

RE: Starting subsystems

2003-05-27 Thread Robert Taylor
Take a look at javax.servlet.ServletContextListener. They are bootstraps for web applications. robert -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:54 PM To: 'Struts Users Mailing List' Subject: Starting subsystems Hi Our

RE: Custom Validator not being called

2003-05-27 Thread Bailey, Shane C.
Is your form subclassing either ValidatorForm (or DynaValidatorForm depending on how you are defining your form)? And not ValidatorActionForm (or DynaValidatorActionForm) since you are basing your validation off of a form and not an action? If these tests fail then I am out of suggestions :(

RE: Having problems with DynaValidatorForm

2003-05-27 Thread sannabel
Thanks a bunch. I knew my eyes were just missing something that like that. Seth -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 10:48 AM To: 'Struts Users Mailing List' Subject: RE: Having problems with DynaValidatorForm Try: form-bean

Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Leon
Hi, I have DataAccessException thrown by DAO class and catched by BusinessDeligate class. ApplicationException thrown by BusinessDeligate class and catched by MyAction class. I want to send a jsp to clients to display a message that the clients submit a duplicate entry in their request. What

Problem Validating Integer

2003-05-27 Thread Victor J. Soares
Hello, I am learning how to use the DynaValidatorForm and Validtor, but I have run into a problem I can't figure out: One of the fields in the form is of type Integer. The validation rules I set up check to see if (1) the a value has been given (required) (2) the value given is an integer. I

RE: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Mike Jasnowski
Return a forward appropriate to the exception caught? -Original Message- From: Leon [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 2:45 PM To: Struts Users Mailing List Subject: Newbie question: how does MyAction class handle Exceptions? Hi, I have DataAccessException thrown by

RE: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread Chappell, Simon P
Wow, give the guy a break! He prefixed the post with [ANN] and he indicates that a number of Struts users have encouraged him to post this information here. Simon -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:09 PM To: [EMAIL PROTECTED]

RE: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread Brandon Goodin
We post JavaServerFaces stuff here and it appears to me that Barracuda presents itself as a similar sort of product. Brandon Goodin -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:47 PM To: Struts Users Mailing List Subject: RE: [ANN]

Re: html:link with dynamic javascript confirmation

2003-05-27 Thread Lorrin Nelson
Thanks David! That solved my problem and sounds like something I never would have figured out on my own.. -Lorrin At 12:49 PM 5/24/2003, you wrote: Lorrin == Lorrin Nelson [EMAIL PROTECTED] writes: Lorrin I have a table displaying a list of items, and on each row there is a delete

RE: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread David Graham
It's not that I'm upset by post but this is a very high traffic list and I'm trying to keep it focused on Struts. David Wow, give the guy a break! He prefixed the post with [ANN] and he indicates that a number of Struts users have encouraged him to post this information here. Simon

RE: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread Chappell, Simon P
I understand that, but the Struts mailing list has a history of leniency towards OT stuff and doubly so on Fridays! (I should know, I'm one of the offenders! ;-) The list is high nineties percent about Struts, so I think that life will continue and the sun will still shine! :-) Simon

RE: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread Bill Johnson
I'm with Simon. David, sometimes you spend way too much energy being the Struts Nazi. No soup for you!! -Bill --- Chappell, Simon P [EMAIL PROTECTED] wrote: Wow, give the guy a break! He prefixed the post with [ANN] and he indicates that a number of Struts users have encouraged him to post

Re: Direct me to the archive about individual error reporting next tofields

2003-05-27 Thread Carl Walker
You'll need to use your own bean:message key=errors.header /,bean:message key=error.myproperty / scheme or remove the errors.header/prefix, etc. from the resource file. Bailey, Shane C. wrote: I was looking at this: http://husted.com/struts/tips/017.html

Re: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Leon
I should forward an ApplicationException to MyAction class and then, MyAction finds an appropriate jsp based on the message in ApplicationException. But, how can I know the SQLException thrown by persistance tire is duplicate entery SQLException or other SQLException? Thanks. - Original

RE: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread Brandon Goodin
That was a great Seinfeld episode. One of the classics. But, let's not gang up on David too much. I think Simon made his point pretty clear. It's a Tuesday-Monday. Let's start the week off right. Now why don't you all stop bickering and go back to your cubicles. ;-) Brandon Goodin -Original

Re: Parameters v form beans (again!)

2003-05-27 Thread Carl Walker
I use the request object to deal with parameters whose names aren't known in advance. For instance, I had an app that allowed the user to associate attributes on-the-fly with a given record. So I used the identifier for these schema-changing attributes to come up with input type=text names like

HTML:OPTION from bean to JSP

2003-05-27 Thread Yinti, Deepak
I am new to struts framework. Can somebody let me know ,how to get data from bean into html:option which I am using my jsp page Thanks Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply

Re: Container Managed Authentication

2003-05-27 Thread Erik Price
Hirschmann, Bernhard wrote: Is there a documentation or a how-to around for CMA support in Struts? I found this to be helpful, although it is not struts-specific: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html If you are not using Tomcat, here is a more general explanation

RE: problem with JAASRealm

2003-05-27 Thread Craig R. McClanahan
On Wed, 21 May 2003, Tim Clotworthy wrote: Date: Wed, 21 May 2003 17:09:50 -0400 From: Tim Clotworthy [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: problem with JAASRealm

what the wrong withis?

2003-05-27 Thread Anand M S
waht the wrong with following code, it doesn't work. can't we use bean:write inside any other struts tag? html:select property=fosCode value=bean:write name=header property=gender/ html:options collection=FIELD_OF_STUDY_CODES property=code labelProperty=description / /html:select

Re: Struts Performance - Any Benchmarks?

2003-05-27 Thread Craig R. McClanahan
On Thu, 22 May 2003, Tin Pham wrote: Date: Thu, 22 May 2003 00:09:09 -0400 From: Tin Pham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Struts Performance - Any Benchmarks? Hi, I have been scouring the internet with no results.

Re: what the wrong withis?

2003-05-27 Thread James Mitchell
#1 - You didn't close your nested tag properly. #2 - Second, you can't nest tags. Try this instead: bean:define id=gender bean:write name=header property=gender/ /bean:define html:select property=fosCode value=%=gender% html:options collection=FIELD_OF_STUDY_CODES property=code

RE: HTML:OPTION from bean to JSP

2003-05-27 Thread Steve Raeburn
In an Action that forwards to your form jsp, you do something like this: ArrayList flavours = new ArrayList(); flavours.add(new LabelValueBean(Vanilla, 0)); flavours.add(new LabelValueBean(Strawberry, 1)); flavours.add(new LabelValueBean(Chocolate, 2)); flavours.add(new

RE: what the wrong withis?

2003-05-27 Thread Hibbs, David
The problem is because you end up having quotes inside of quotes. Maybe if you look at this it will make sense: value=b:w n=h p=g/ How many quotes are there? I count 6, where a property must have only 2. The solution is to put a bean:define ahead of it, then use the local bean inside the other

Re: what the wrong withis?

2003-05-27 Thread Anand M S
Thanks, James. From: James Mitchell [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: what the wrong withis? Date: Tue, 27 May 2003 16:29:18 -0400 #1 - You didn't close your nested tag properly. #2 - Second, you

Re: [OT] I'm tired of restarting tomcat!

2003-05-27 Thread Daniel H. F. e Silva
Hi Fabio, I know Tomcat is reference implementation and its license is great, but i can't loose my time with issues like that you reported. So, i use Resin at my development environment. Let it take a chance. But if you still prefer Tomcat, use 4.1.24. Maybe this issue was solved. I think

RE: HTML:OPTION from bean to JSP

2003-05-27 Thread Yinti, Deepak
Thanks Steve for your help Deepak -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:30 PM To: Struts Users Mailing List Subject: RE: HTML:OPTION from bean to JSP In an Action that forwards to your form jsp, you do something like this:

Dynamic key access into a Map?

2003-05-27 Thread Josh McCulloch
Hi, I have a Map that is currently in application scope (key=String, value=Bean). I'm iterating over a collection of line items, and need to do a lookup within the Map for each line item: object contains a Collection, and a Collection getItems() getter. objectWithMap contains a Object

Re: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Erik Price
Leon wrote: I should forward an ApplicationException to MyAction class and then, MyAction finds an appropriate jsp based on the message in ApplicationException. But, how can I know the SQLException thrown by persistance tire is duplicate entery SQLException or other SQLException? Put an

Re: [OT] Calculating distance using Longitude/Latitude

2003-05-27 Thread Barry Volpe
Micael, Thanks for your input. My problem is limited to how far one is willing to travel to provide a service. The way I have it setup now is one can specify up to five locations (cities). But if someone wants to provide service to more than five cities they have no way of specifiying this.

WebSphere Application Server weirdness

2003-05-27 Thread Chappell, Simon P
Folks, Has anyone out there in Strutsville seen this weird behaviour from IBM's WebSphere Application Server 4.0.5 running on Solaris. We are moving our app from JRun 4 to WAS 4.0.5 and so now we are packaging it up as a EAR file instead of just a WAR file, but I'm not convinced that is the

How to refer to the name of the form within a html:form block?

2003-05-27 Thread Erez Efrati
Is there a way to refer or get the name of the form inside the html:form ? I am trying to do something like the following: html:form logic:iterate id=item name=??name-of-form?? Property=items ... /logic:iterate /html:form Thanks, Erez

RE: WebSphere Application Server weirdness

2003-05-27 Thread Mounagurusamy, Jayakumar (HAL)
When you build your EAR you would have provided the CONTEXT ROOT, I assume your context root in this case is /sorters, since you are implementing a EAR file in Web sphere you need not to provide the context root again. However if your are implementing the WAR file then you have to. Try

Re: [OT] Calculating distance using Longitude/Latitude

2003-05-27 Thread Barry Volpe
To all interested here are suggested calculations ( I was planning on using this as a baseline): http://www.meridianworlddata.com/HTML2/distance-formula-2.asp Thanks, Barry - Original Message - From: Barry Volpe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

RE: WebSphere Application Server weirdness

2003-05-27 Thread Witbeck, Shane
This is a known issue with WebSphere. I think I answered this question a while back so search the archive. Shane -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:48 PM To: Struts Mailing List (E-mail) Subject: WebSphere Application Server

RE: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Bailey, Shane C.
How about catching the database exception in the middle tier and throwing a more middle tier like Exception (so your front tier - any of the struts classes - don't have to deal with anything with SQL in it) that you define like UserExistsException or InvalidSomethingException or

Struts configuration via api

2003-05-27 Thread Geoff Apps
I am trying to add to the struts configuration file programatically inside a plugin. The following plugin code compiles and runs, public void init(ActionServlet action, ModuleConfig config) { actionConfig = new ActionConfig(); actionConfig.setPath(/Login);

RE: what the wrong withis?

2003-05-27 Thread Wendy Smoak
waht the wrong with following code, it doesn't work. can't we use bean:write inside any other struts tag? html:select property=fosCode value=bean:write name=header property=gender/ html:options collection=FIELD_OF_STUDY_CODES property=code labelProperty=description / /html:select No, you

Re: [OT] I'm tired of restarting tomcat!

2003-05-27 Thread Johan
He Fabio, For answering this question you included not enough data. Since this is a question quite of topic you can search the tomcat mailing lists. But you can also mail me the complete exception and of cource the server.xml of your tomcat installation. If you use tomcat in combination with

RE: How to refer to the name of the form within a html:form block?

2003-05-27 Thread Sukhenko, Mikhail (Contr)
you don't need to, leave the name attribute out, the iterate tag will automatically associate name with the name of the form that it is inside. Hope this helps -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 5:44 PM To: 'Struts Users Mailing

Re: Why should I...?[Fwd: Não é possível entregar: Execute some method before tiles redering... HOW?]

2003-05-27 Thread Johan
I contacted the postmaster with instructions how to remove him/her of the list or to please check the diskquota Johan James Mitchell wrote: correction You didn't receive that message from mailling list service. It came from CKhimjee's mail server. /correction -- James Mitchell Software

RE: How to refer to the name of the form within a html:form blo ck?

2003-05-27 Thread Erez Efrati
Thanks for the reply, but it doesn't work if I remove the 'name=myFormName' part. Should I be using the nested:iterate tag? Erez -Original Message- From: Sukhenko, Mikhail (Contr) [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 12:30 AM To: 'Struts Users Mailing List' Subject:

Do I need an Action to call forms from a list box?

2003-05-27 Thread Barry Volpe
Hi, Creating a list box as follows: Selection A (calls form A) Selection B (calls form B) Selection C (calls form C) The solution that comes to mind is create an action and depending on which selection is made define and call the foward for the appropriate form. Anyway of doing this

RE: How to refer to the name of the form within a html:form blo ck?

2003-05-27 Thread Erez Efrati
Ok it's working when I am using the nested:iterate tag. -- Erez -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 1:38 AM To: 'Struts Users Mailing List' Subject: RE: How to refer to the name of the form within a html:form blo ck? Thanks for

html:link - a real pain!

2003-05-27 Thread brian jf
Hi all, I've had it with html:link. I just can't get the thing to work how I want. I have created a String within my jsp which I want to forward to my action using html:link eg: % String myString = some value % html:link page=/category.do paramId=categoryId paramName=myString some text

RE: Parameters v form beans (again!)

2003-05-27 Thread Mike Whittaker
But I think you really take a step back if you are going to tie all of your code to the request map. You'll lose the validation capabilities of struts and the pre-population of forms. So in fact the ONLY reasoning behind ActionForms is that you can easily prepopulate? And I don't see how

role - tiles definition?

2003-05-27 Thread José Fortunato H. Tomás
Hi! I read the tilesAdvancedFeatures.pdf in some fast way. At end I see (9.2) a reference to role for tiles definition. I look backwords in the document I could find any mension of how it works, or how it should be used. Any one has a reference or could tell how this role works, or how I should

RE: html:link - a real pain!

2003-05-27 Thread Steve Raeburn
It wants a bean, so give it a bean ;-) bean:define id=myString value=some value/ html:link page=/category.do paramId=categoryId paramName=myString some text /html:link Steve -Original Message- From: brian jf [mailto:[EMAIL PROTECTED] Sent: May 27, 2003 3:55 PM To: [EMAIL

Do I need an Action to call forms from a list box?

2003-05-27 Thread Barry Volpe
Hi, Creating a list box as follows: Selection A (calls form A) Selection B (calls form B) Selection C (calls form C) The solution that comes to mind is create an action and depending on which selection is made define and call the foward for the appropriate form. Anyway of doing this

UnavailableException: Parsing error processing resource path

2003-05-27 Thread ross
Is there a way find out which file is causing the following error. have been over web.xml, tiles-def.xml and struts-config.xml commenting out each section but can't find the problem. Is there somewhere else I should be looking? What other information would be needed to help me find this? I

Re: Parameters v form beans (again!)

2003-05-27 Thread Mark Lowe
umm.. i'm afraid you wont have any moral support from me. your not only talking about html forms but a way of thinking about systems in an understandable way from a number of different perspectives. Form beans give a convenient way of representing a form both to programmers and site builders.

Re: UnavailableException: Parsing error processing resource path

2003-05-27 Thread Mark Lowe
if you get stuts console it validates you tiles, struts and validator xml files. Might save you some time.. http://www.jamesholmes.com/struts/ cheers mark On Wednesday, May 28, 2003, at 01:04 Europe/London, [EMAIL PROTECTED] wrote: Is there a way find out which file is causing the

How can I call forms from a list box?

2003-05-27 Thread Barry Volpe
Hi, Creating a list box as follows: Selection A (calls form A) Selection B (calls form B) Selection C (calls form C) The solution that comes to mind is create an action and depending on which selection is made define and call the foward for the appropriate form. Anyway of doing this

Re: Problem Validating Integer

2003-05-27 Thread Victor J. Soares
FYI for anybody that runs into this same *issue* I found the problem with my form validation not validating an integer field correctly. The problem was in the form-property for the form field. I had declared it as java.lang.Integer, but when I changed it to java.lang.String it worked

programmatic security w/o JAAS?

2003-05-27 Thread Fisher Trent
This seems like a possiblity to me, but let me elaborate. 95% of the security for my application will be utilizing the concept of Role properties on ActionMapping objects to limit access to the protected resource. (this would be declaritive if I'm not mistaken). The other 5% of my security

what is wrong here?

2003-05-27 Thread Erez Efrati
I keep getting errors on the following: (I am using 1.1 beta 3) bean:define id=col value='%= 6 / 4 + 1 %' / Can someone tell me what is wrong here? Thanks, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

How to call forms from list box without action?

2003-05-27 Thread Barry Volpe
The following works but I was wondering if there is an easier way? html:form action=/GetCategory name=categoryForm type=com.CategoryForm scope=request html:select property=category size=1 html:option value=CategorySelect-A-Category/html:option html:option

RE: what is wrong here?

2003-05-27 Thread Steve Raeburn
I vaguely remember something about the JSP processor not converting to a String when you use an expression inside a tag like that. Someone els emay have the details. Anyway this works: bean:define id=col value='%= Integer.toString(6 / 4 + 1) %' / Steve -Original Message- From: Erez

Re: problems with Tiles regarding the relative links

2003-05-27 Thread Tin Pham
Well one solution is indeed as Mark mentions, to use exclusively struts tags for linking. I solved it by placing the template file at the root of my web folder. I notice you're using the html base tag so that would make all your links then relative to the root. Then you require the forward slash

session

2003-05-27 Thread Susana Ruiz Mata
How do I obtain the session made in one servlet from another servlet??

RE: session

2003-05-27 Thread Steve Raeburn
Just use request.getSession(). The session is not specific to a servlet but to the user. Each time they send a request to the server their session id is sent in the request (via a cookie or url rewriting). You can retrieve the session in any servlet using request.getSession() Steve

Basic CRUD

2003-05-27 Thread emiles
I am putting together a simple web app that performs CRUD operations on a database table. The web app consists of 1 jsp page which handles all CRUD actions. The first part of the page contains a form with 2 fields and 'create' and 'retrieve' buttons. Both these functions work fine. When a

Basic CRUD

2003-05-27 Thread emiles
I am putting together a simple web app that performs CRUD operations on a database table. The web app consists of 1 jsp page which handles all CRUD actions. The first part of the page contains a form with 2 fields and 'create' and 'retrieve' buttons. Both these functions work fine. When a

LookupDispatchAction and getParameter

2003-05-27 Thread Gregory F. March
Hi all. Typical standard disclaimers apply... I'm new to struts, I'm having problems, I hope you all can help, thanks in advance, etc. :-) Here's my problem. I have a form with multiple submit buttons. I'm trying to set up a LookupDispatchAction. It seems that

RE: what is wrong here?

2003-05-27 Thread Mark Galbreath
Well, for one thing, review your JSP. %= xxx % is a synonym for out.println. It cannot render calculations at runtime. You have to have a function to do that, like %= calculate( 6/4+1 ) %. Mark -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: May 27, 2003 6:44

Re: Struts Performance - Any Benchmarks?

2003-05-27 Thread Tin Pham
Hi David, Craig, Thanks for your replies. I will forward them to my team. I made the same points about multi-threading verbally and following up with research and references for the team. They seem to be itching for benchmarks though, so I'll give it to them by building a single, then

Re: LookupDispatchAction and getParameter

2003-05-27 Thread Eric Miles
Don't override the execute method, the LookupDispatchAction will call 'doSave' automatically. Simply comment out your execute method. -Eric --- In [EMAIL PROTECTED], Gregory F. March [EMAIL PROTECTED] wrote: Hi all. Typical standard disclaimers apply... I'm new to struts, I'm having

Struts In A Distributed\Clustered Environment.

2003-05-27 Thread Tin Pham
Hi, Has anybody successfully managed to use Struts in a distributed\clustered environment? If so with what setup? And did you have any Struts related difficulties? Thanks, Tin - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: LookupDispatchAction and getParameter

2003-05-27 Thread Eric Miles
or try getParameter(action) in your execute method. The URL for the request looks like http://...?action=doSave; internally. -Eric --- In [EMAIL PROTECTED], Eric Miles [EMAIL PROTECTED] wrote: Don't override the execute method, the LookupDispatchAction will call 'doSave' automatically.

RE: what is wrong here?

2003-05-27 Thread Steve Raeburn
That's not true. 'System.out.println(6 / 4 + 1 );' outputs 2, as does %= 6 / 4 + 1 %. It just doesn't work when it's nested like that. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: May 27, 2003 8:13 PM To: 'Struts Users Mailing List'; [EMAIL

Re: Struts Performance - Any Benchmarks?

2003-05-27 Thread David Graham
They seem to be itching for benchmarks though, so I'll give it to them by building a single, then multi-servlet app and using Introscope with some load test simulators. I was hoping somebody in a situation such as myself already had done it. It's a shame that you're required to do this because an

RE: what is wrong here?

2003-05-27 Thread Mark Galbreath
Ah f*ck...I've been working 16 hours straight and no end in site; got a deadline to meet in the AM. I'll review this tomorrow. Mark -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 11:41 PM To: Struts Users Mailing List Subject: RE: what is

Could someone help me

2003-05-27 Thread Ken
I have two tables:one is question and another is answer. the table structure list below: QUESTION(questionId, questionText) ANSWER(questionId, answerId, answerText) and I must display the page like this: Question 1: A ... B ... C ... Question 2: A ... B ... C ... D ...

RE: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread Daniel Joshua
I think you are being too strict... give him a break. His title is clear, just delete it if you are not interested... Regards, Daniel -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, 28 May, 2003 1:09 AM To: [EMAIL PROTECTED] Subject: Re: [ANN] Barracuda

  1   2   >