RE: collections in forms((correction in Form code to make it work))

2002-12-10 Thread shirishchandra . sakhare
Hi, There was a problem in the sample FOrm Bean code I have given. The getEmployee (int Index){ }method should be modified as follows /* instead of if(index = beanList.size()){ beanList.add(new Employee()); } now I have made it while(index =

RE: Re: Best Practices for Logging?

2002-12-10 Thread shirishchandra . sakhare
I had not checked this.Had taken what log4j documentation says about performance verbatim... BTW,I didnt get your comment about ** In particular, under a Tag library for Tomcat 4.0.X [where tags are not reused] * Are the tags reused on other servers? And what do u mean by

Re: JSTL x STRUTS bean display

2002-12-10 Thread flare
I have a arraylist containing a collection of beans, something like : List list = new ArrayList (); list.add(bean1_1); list.add(bean1_2); request.setAttribute (BEAN1_LIST, list); c:forEach var=item items=${requestScope.BEAN1_LIST} c:out value=${item.Field1}/ c:out

RE: Design Question regarding navigation menu

2002-12-10 Thread ROSSEL Olivier
I could not follow your question. A good practices that I use is to have centralized navigation in XML, using Struts menu from sf.net. So the question is: in StrutsMenu, how do you highlight the currently selected menu item? Another question about StrutsMenu: is it possible to get a string

Re: Query on modular applications

2002-12-10 Thread Michael Cunningham
Thanks David, I downloaded the latest nightly build (jakarta-struts-20021209.zip). It also did not work. When I try to access one of the jsp files, I get the following error: javax.servlet.jsp.JspException: Missing message for key It would seem as if the resource.moduleA file is not being

RE: Loosing form data when chaining actions

2002-12-10 Thread ROSSEL Olivier
Hi, I defined 2 actions in session scope referring the same form. The first action sets some properties in the form and then forwards the request to the second action. The second action sets some more properties and then forwards to a JSP page which contains the html form. The

bean:write ' , , ' characters

2002-12-10 Thread Duma Rolando
I have a bean property that returns an html tag, but bean:write substitute the , , characters with lt; , gt; etc. If this is the normal behaviour of the tag, how can I disable it? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: bean:write ' , , ' characters

2002-12-10 Thread Beeson, Ashley
Use filter=false to turn off this behaviour -Original Message- From: Duma Rolando [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 11:37 To: Struts Users Mailing List Subject: bean:write ' , , ' characters I have a bean property that returns an html tag, but bean:write substitute

dynamically disable a input field.

2002-12-10 Thread Mouratidis, Georg
Greetings i want to disable some input elements but only if a bean property is not set: e.g. logic:equal name=OrganizationSession property=isProvider value=0 here i want to set a variable to be used than in each input element. e.g. something like disabled=disabled

Locale and html:text

2002-12-10 Thread Renato Aganippe
Hi, Does anyone have an idea about formatting an html:text input field with the user's Locale? I need to initialize the field value with a Date from a Bean according to the Request Locale. Thanks, Renato Aganippe

RE: html:file Problems

2002-12-10 Thread Mouratidis, Georg
Hi, i dont' use the validator plugin. i dont know how to do. i have set the validate attribute in struts-config.xml to true. in the validate method inside my form i check the value and the length of the input element. if there is an error i create an ActionError. public ActionErrors

RE: dynamically disable a input field.

2002-12-10 Thread shirishchandra . sakhare
Hi, I had similar functionality.But I will advice u not to use html:text disable=true/ because it does not work with Netscape. So instead i used logic:equal tag and bean write. logic:equal name=OrganizationSession property=isProvider value=true html:text name= property=/

RE: dynamically disable a input field.

2002-12-10 Thread Edgar P. Dollin
A couple of choices: Actually put the html:text inside the logic and use an else clause. Use struts-EL for the disabled attribute calculation ${OrganizationSession.isProvider==0?disabled:enabled} Edgar -Original Message- From: Mouratidis, Georg [mailto:[EMAIL

Initializing application

2002-12-10 Thread Jordan Thomas
Hi, I want to initialize my application with some application variables. What is the best way to do this? My approach so far has been to call the init() method in an unmapped servlet. So everytime the server statrs up they are loaded into memory. The only thing is that I am not sure how to set an

RE: dynamically disable a input field.

2002-12-10 Thread Mouratidis, Georg
the disadvange is that i have to do it for 25 inputfields. 25x logic:equal.../logic:equal 25x logic:notEqual.../logic:notEqual is this the only way you know? thx georg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 10. Dezember 2002 12:51 To:

RE: dynamically disable a input field.

2002-12-10 Thread Mouratidis, Georg
Hi edgar, i had never used struts-EL. does this work with struts 1.02 or do i have to user 1.1? Where can i found any sources/infos thx -Original Message- From: Edgar P. Dollin [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 10. Dezember 2002 13:03 To: 'Struts Users Mailing List' Subject:

RE: dynamically disable a input field.

2002-12-10 Thread shirishchandra . sakhare
If u dont want to wory about netscape then i think u can go the other way.And i Am talking about netscape 4.77. So in the other case u can use logic equla in just one place as u said. %!String isDisbled=false% logic:equal name=OrganizationSession property=isProvider value=0

RE: dynamically disable a input field.

2002-12-10 Thread Mouratidis, Georg
hi shirishchandra ( i hope this is your forename ) thx alot. i think i will go this way. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 10. Dezember 2002 13:05 To: [EMAIL PROTECTED] Subject: RE: dynamically disable a input field. If u dont want

Re: Modules and Tiles: Problem

2002-12-10 Thread Andrew Kuzmin
Hi, Cedric - Original Message - From: Cedric Dumoulin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, December 09, 2002 10:19 PM Subject: Re: Modules and Tiles: Problem Hi, Is there any errors regarding Tiles in the Tomcat console (you may need to

RE: dynamically disable a input field.

2002-12-10 Thread Mouratidis, Georg
hi, i did it your way but now i have problems with the focus attribut in the html:form tag. if the element is disable i cant set the focus. of course not. i try so many things to set the attribute dynamically but i didn't solve it. can you help again please? thx in advance -Original

RE: dynamically disable a input field.

2002-12-10 Thread Mouratidis, Georg
hi, now i can answer my own question. i did it using javascript in onload(); thx to all for helping -Original Message- From: Mouratidis, Georg Sent: Dienstag, 10. Dezember 2002 14:31 To: Struts Users Mailing List Subject: RE: dynamically disable a input field. hi, i did it your

Re: JSTL x STRUTS bean display

2002-12-10 Thread Joao Araujo
I have a arraylist containing a collection of beans, something like : List list = new ArrayList (); list.add(bean1_1); list.add(bean1_2); request.setAttribute (BEAN1_LIST, list); c:forEach var=item items=${requestScope.BEAN1_LIST} c:out value=${item.Field1}/ c:out

Re: JSTL x STRUTS bean display

2002-12-10 Thread V. Cekvenich
In a secret place: http://jakarta.apache.org/struts/resources you can find a link to this (www.basicPortal.com) http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/portlets/proj/TasksLstPortlet.jsp?rev=1.4content-type=text/vnd.viewcvs-markup Here is another hiden place,

LookupDispatchAction onchange

2002-12-10 Thread Cook, Graham
Is it possible to use an onchange event on a text input field to submit the form to a LookupDispatchAction? I have numerous buttons on the JSP page which submit the form to my LookupDispatchAction, and work depending on what the value of the action is, but i would like to also call my

Can DynaActionForm contain DynaActionForm?

2002-12-10 Thread Jerome Jacobsen
All of the DynaActionForm examples I've seen contain simple Java types or regular JavaBeans. Can a DynaActionForm contain another DynaActionForm? Something like this: form-beans form-bean name=com.blah.LocaleForm type=org.apache.struts.action.DynaActionForm dynamic=true form-property

Re: JSTL x STRUTS bean display

2002-12-10 Thread Kris Schneider
Try changing: c:out value=${item.Field1}/ - c:out value=${item.field1}/ and: c:out value=${item.Field2}/ - c:out value=${item.field2}/ Quoting V. Cekvenich [EMAIL PROTECTED]: In a secret place: http://jakarta.apache.org/struts/resources you can find a link to this (www.basicPortal.com)

RE: LookupDispatchAction onchange

2002-12-10 Thread Andrew Hill
Should be possible. You may need to do something like appending a parameter to your forms action url with a bit of javascript to simulate whats submitted by a button. Can't remember the details for LookupDispatchAction since I havent used it, but heres some js that will play with your forms action

Re: JSTL x STRUTS bean display

2002-12-10 Thread Kris Schneider
Not quite sure I understand why the basicPortal link is a good example of looping. Here's the (reformatted) snippet: c:forEach var=row items=${requestScope.formBean} tr tdlic:out value=${requestScope.formBean.taskName}//td td c:url value=/do/port/tasks var=url c:param

Odd logging message

2002-12-10 Thread Graham Lounder
Hey all, Since I upgraded to Struts 1.1b I have been getting the following messages in my standard output: processActionForward(/secure/index.jsp, false) '/secure/index.jsp' - processed as uri Does anyone know why these messages show up? Also does anyone know how to turn them off short of

Re: Odd logging message

2002-12-10 Thread David Graham
That looks like a Tiles message which are controlled with the commons logging properties. David From: Graham Lounder [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Odd logging message Date: Tue, 10 Dec 2002

Re: Initializing application

2002-12-10 Thread David Graham
You can define context-params in your web.xml file that will be application init variables. You could also setup a servlet to be loaded when the container starts and put the code in the init() method. See the javadocs on the servlet.init() method it's pretty easy to get ahold of the

RE: Odd logging message

2002-12-10 Thread Graham Lounder
I would assume it was a commons logging message but the message is not formatted that same as my other logging messages which makes me think its a System.out.println message. Here is a larger snippet to show you what I mean: // START SNIPPET --- DEBUG

RE: LookupDispatchAction onchange

2002-12-10 Thread Alvarado, Juan (c)
If I remember correctly the LookupDispatchAction does a reverse lookup on your resource bundle in order to determine which method to call in the class. Example: if you have a key in your ApplicationResources.properties called: textfield.changed=submit form then you would obviously need

Application Modules and Path Prefix Mapping: eventually/already supported?

2002-12-10 Thread Bill Tomlinson
In all the things I've read about the new application modules feature in 1.1, there is always a caveat like this only works with extention mapping (*.do) not path prefix mapping (/do/*). But now that I'm looking at upgrading my 1.0 path mapped application to 1.1 (and wanting to use modules), I

possible limited supports for inheritance in struts?

2002-12-10 Thread Denis Wang
Hello, all, Sorry for re-post. I believer this is a problem worthywhile of attention. I posted this message yesterday, but basically no answers. I have an ActionForm, which includes a field/getter/setter of subclass. The subclass inherits superField field/getter/setter from its superclass. In my

Re: bean:write ' , , ' characters

2002-12-10 Thread David Graham
It's pretty easy to find out in the user's guide: http://jakarta.apache.org/struts/userGuide/struts-bean.html#write David From: Duma Rolando [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: bean:write ' , , '

RE: Initializing application

2002-12-10 Thread Andrew Hill
Another idea would be to make use of a struts plugin. These are actually very simple to write! Just implement PlugIn and its init() method and add to struts-config and bobs yer uncle. btw: the signature of the init method changed between 1.1b1 and 1.1b2. If you do the following trick your Plugin

RE: Initializing application

2002-12-10 Thread Andrew Hill
Oh yeh. Almost forgot. Plugins are called when your webapp is initialised (before anyone can access it) and are executed serially in the order you listed them in your struts-config. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 23:36 To:

Re: possible limited supports for inheritance in struts?

2002-12-10 Thread Gemes Tibor
2002. december 10. 16:26 dátummal Denis Wang ezt írtad: I have an ActionForm, which includes a field/getter/setter of subclass. The subclass inherits superField field/getter/setter from its superclass. In my JSP page, I try to access the superField. But it is complained no getter method for

Re: Application Modules and Path Prefix Mapping: eventually/already s upported?

2002-12-10 Thread Gemes Tibor
2002. december 10. 16:29 dátummal Bill Tomlinson ezt írtad: In all the things I've read about the new application modules feature in 1.1, there is always a caveat like this only works with extention mapping (*.do) not path prefix mapping (/do/*). I reckon you wouldn't be able to make

RE: possible limited supports for inheritance in struts?

2002-12-10 Thread Denis Wang
may i see you sample codes? thanks. denis -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:37 AM To: Struts Users Mailing List Subject: Re: possible limited supports for inheritance in struts? 2002. december 10. 16:26 dátummal Denis

RE: LookupDispatchAction onchange

2002-12-10 Thread Cook, Graham
Thanks Andrew Juan, thats very helpful. Its is a shame that I have to use JavaScript to achieve a submit from a text field. The other buttons on the screen use the html:submit tag, html:submit property=doaction bean:message key=button.savedetails/ /html:submit obviously theres no

RE: LookupDispatchAction onchange

2002-12-10 Thread Alvarado, Juan (c)
The LookupDispatchAction was designed with the intention of not having to use javascript to work with multiple submit buttons in one form. Since what you need is a submit from an onChange event in a text field which is a somewhat not often seen operation (at least from my experiences), you have

Re: Xdoclet and Struts

2002-12-10 Thread Jack R.
Thanks for your feedback. If we use xdoclet and struts, is it possible for me NOT to edit/create the struts-config file for both struts 1.0 and 1.1? It kind of beat the purpose of using xdoclet if we need to manually add/change the struts-cofig file after it is generated by xdoclet. Thank you.

RE: Struts Child Windows

2002-12-10 Thread Mouratidis, Georg
-Original Message- From: Cook, Graham [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 5. Dezember 2002 14:00 To: [EMAIL PROTECTED] Subject: Struts Child Windows What is the correct way in Struts to open a child window (from a JSP), which calls an Action, retrieves a input field value from

RE: JSTL x STRUTS bean display

2002-12-10 Thread Frank Renaers
c:forEach var=item items=${BEAN1_LIST} c:out value=${item.Field1}/ c:out value=${item.Field2}/ /c:forEach -Original Message- From: Joao Araujo [mailto:[EMAIL PROTECTED]] Sent: dinsdag 10 december 2002 14:49 To: Struts Users Mailing List Subject: Re: JSTL x STRUTS bean display

RE: Initializing application

2002-12-10 Thread Jordan Thomas
Thanks guys, I've got it all working. cheers Jordan :O) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 10 December 2002 4:40 PM To: Struts Users Mailing List Subject: RE: Initializing application Oh yeh. Almost forgot. Plugins are called when your

RE: LookupDispatchAction onchange

2002-12-10 Thread Cook, Graham
Originally, I had a customer number and customer name fields on a jsp and a button:- customer number ___ {SEARCH} customer name __ when the user types in a customer number and clicks the SEARCH button, the LookupDispatchAction was called, fetched the values from the

DynaActionForm problem - IllegalArgumentException: No bean specified

2002-12-10 Thread Jerome Jacobsen
Oh Struts masters, I get an exception when Struts populates my DynaActionForm from request parameters. With DEBUG logging on I see the following: INFO org.apache.struts.action.RequestProcessor - Processing a 'POST' for path '/changeLocale' DEBUG org.apache.struts.util.RequestUtils - Looking

RE: DynaActionForm problem - IllegalArgumentException: No bean specified

2002-12-10 Thread Alvarado, Juan (c)
I don't believe DynaActionForm supports java.util.Collection. Please correct me if I'm wrong. Thanks -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 11:27 AM To: Struts User Subject: DynaActionForm problem - IllegalArgumentException:

RE: possible limited supports for inheritance in struts?

2002-12-10 Thread Vinh Tran
Denis: I too use inheritance just fine but I do not use nested tags. Try implementing Serializable in ScheduleVO as well. Just a wild guess. If that doesn't work simply try to get a field from the superclass using something other than the nested tags to see if the tags are a problem. Vinh

ExceptionInInitializerError

2002-12-10 Thread Gustavo Lopez
This question concerns both Struts and Oracle 9i Application Server. I have an application that uses Struts 1.0.2 It is developed and tested on JDeveloper (9.0.2) It is deployed to Oracle 9iAS (9.0.3) OC4J J2EE container The application runs correctly when deployed on JDeveloper's internal

RE: JSTL x STRUTS bean display

2002-12-10 Thread Kris Schneider
All that does is change the way that the BEAN1_LIST attribute is located. In your example, it's effectively pageContext.findAttribute(BEAN1_LIST). In the original, it's request.getAttribute(BEAN1_LIST). Either should work just fine. I think the real problem is that item.Field1 and item.Field2

RE: possible limited supports for inheritance in struts?

2002-12-10 Thread Vinh Tran
One more thing... Why is the ActionForm using type ScheduleVO instead of ScheduleBean? You may want to try returning ScheduleBean. Vinh -Original Message- From: Denis Wang [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:26 AM To: Struts Users Mailing List Cc: [EMAIL

RE: possible limited supports for inheritance in struts?

2002-12-10 Thread Denis Wang
Thanks for your reply. ActionForm needs access to ScheduleVO.subclassFields, which are not present in ScheduleBean. Would you please forward your jsp code, which does not use nested tage? Thanks. Denis -Original Message- From: Vinh Tran [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December

Prepopulating DynaActionForm which has an indexed property

2002-12-10 Thread Srinivas Bhagavathula
Hi, How can I prepopulate an DynaValidator/DynaAction form which has an indexed property? this is my form definition form-bean name=myForm type=org.apache.struts.action.DynaActionForm dynamic=true form-property name=firstName type=java.lang.string[]/ form-property name=companyID

Re: Loosing form data when chaining actions

2002-12-10 Thread James Mitchell
ROSSEL Olivier wrote: Hi, I defined 2 actions in session scope referring the same form. The first action sets some properties in the form and then forwards the request to the second action. The second action sets some more properties and then forwards to a JSP page which contains

RE: possible limited supports for inheritance in struts?

2002-12-10 Thread Vinh Tran
There is nothing magical about the JSP but below is an excerpt. Just so you know I return the type of the base class and I access the fields in my subclass just fine. Iterate through a collection of myVO objects... bean:define id=mymap name=myclass property=myMap/ logic:iterate id=vo name=mymap

RE: Using the key of a HashMap in an html:option tag ?

2002-12-10 Thread Vinh Tran
have you tried this? html:option name=element value=key -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 12:26 PM To: Struts List Subject: Using the key of a HashMap in an html:option tag ? I have a case where I'm getting returned a

RE: Loosing form data when chaining actions

2002-12-10 Thread Gustavo Lopez
I have encountered this problem before. Try this: Within your first Action set the get the values that are not being passed from the request object. Then before forwarding to the next Action set these values explicitly in the request objects attributes. -Original Message- From: ROSSEL

RE: Loosing form data when chaining actions

2002-12-10 Thread ROSSEL Olivier
I have encountered this problem before. Try this: Within your first Action set the get the values that are not being passed from the request object. Then before forwarding to the next Action set these values explicitly in the request objects attributes. My current method is to use a

RE: JSTL x STRUTS bean display

2002-12-10 Thread Joao Araujo
All that does is change the way that the BEAN1_LIST attribute is located. In your example, it's effectively pageContext.findAttribute(BEAN1_LIST). In the original, it's request.getAttribute(BEAN1_LIST). Either should work just fine. I think the real problem is that item.Field1 and item.Field2

RE: possible limited supports for inheritance in struts?

2002-12-10 Thread Denis Wang
Cool!!! This is the solution to this problme. Thanks a lot for Sri and all people trying to help. I always find this mailing list amazingly helpful. Denis -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 1:19 PM To: Struts Users Mailing

Re[2]: Using the key of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann
On Tuesday, December 10, 2002, 12:39:26 PM, Vinh wrote: VT have you tried this? VT html:option name=element value=key Tried that, but name is an invalid attribute of html:option. I must be missing something simple here. There has to be a way to get the value of the key set as the

RE: Struts SLL extension - Really lost

2002-12-10 Thread Ditlinger, Steve
Sounds like you are missing this line in the struts-config.xml (just before all the action definitions): action-mappings type=org.apache.struts.config.SecureActionConfig Once you add that, the ClassCastException should go away. If you have any more problems, let me know. Steve

RE: Application Modules and Path Prefix Mapping: eventually/already s upported?

2002-12-10 Thread Bill Tomlinson
From: Gemes Tibor [mailto:[EMAIL PROTECTED]] 2002. december 10. 16:29 dátummal Bill Tomlinson ezt írtad: In all the things I've read about the new application modules feature in 1.1, there is always a caveat like this only works with extention mapping (*.do) not path prefix mapping

Re: Lists, actions and links

2002-12-10 Thread Mark
Vellosa I think i understand what you're saying here, but when you have a jsp with the iterate tags in do you (a) link to the jsp or (b) call an action that forwards to the page with the iterate tags in? However what you were saying about having one db access object and passing that back...

Re: Using the key of a HashMap in an html:option tag ?

2002-12-10 Thread Kris Schneider
Maybe something like this: html:select styleClass=field property=assignedTo logic:iterate id=element name=employees html:option value=%= element.getKey() % bean:write name=element property=value.firstName/ bean:write name=element property=value.lastName/ /html:option

Re: Help! Need Struts-El Library Compatible With Struts 1.1 B2

2002-12-10 Thread Brian Moseley
Hohlen, John wrote: P.S. If anyone has the 11/7 release of Struts-EL, I'd love it if they could send it to me. http://www.maz.org/struts/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Application Modules and Path Prefix Mapping: eventually/already s upported?

2002-12-10 Thread David Graham
AFAIK, no one is working on adding the prefix mapping module support for 1.1. If you find a way to implement it without breaking backwards compatibility, the Struts team would be delighted to see the patch. David From: Bill Tomlinson [EMAIL PROTECTED] Reply-To: Struts Users Mailing List

Form Bean with Lists client updates

2002-12-10 Thread Pat Quinn
I have a form bean with an List(i.e. Lines) of Value Objects with the normal get/set method for the List only. Every thing works fine when i display the data to the client. I have some thing like this: - Form Bean - public class myForm extends ActionForm { private List lines =

Re: Form Bean with Lists client updates

2002-12-10 Thread Justin Ashworth
Hi Pat, With the way you're using the html:text tag, you would need a getter and setter for firstName if you're using a regular ActionForm. You might want to try using a Map-backed (or List-backed) ActionForm to do your sets and gets. Take a look at this - I think the examples make usage pretty

Re[2]: Using the key of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann
On Tuesday, December 10, 2002, 2:21:36 PM, Kris wrote: KS You may have to cast element: KS %= ((java.util.Map.Entry)element).getKey() % Thanks Kris! Yes that's exactly what I had to do (mostly). I say mostly, because so many times I've been bitten in the butt by this and I'm not

RE: struts-blank: A strange problem

2002-12-10 Thread Jonas Björnerstedt
Hello, The application.properties file is in the wrong directory in the 1.1b2 distribution. Move it from /WEB-INF/java/resources to /WEB-INF/resources. Jonas -Original Message- From: BERTINO FULVIO [mailto:[EMAIL PROTECTED]] Sent: den 10 december 2002 08:51 To: '[EMAIL PROTECTED]'

Attribute rtexprvalues

2002-12-10 Thread Justin Ashworth
Hi, This is really more of a JSP question, but I'm sure somebody here has a quick answer. I am using the bean:write tag to write a property from a Map-backed ActionForm. The Map in my Actionform is called profile and I have that set up properly. However, it seems as though the property

RE: Re: Best Practices for Logging?

2002-12-10 Thread Michael Rimov
At 10:03 AM 12/10/2002 +0100, you wrote: I had not checked this.Had taken what log4j documentation says about performance verbatim... BTW,I didnt get your comment about ** In particular, under a Tag library for Tomcat 4.0.X [where tags are not reused] * Are the tags reused

RE: Attribute rtexprvalues

2002-12-10 Thread Karr, David
You've already figured out most of it. If you use an rtexprvalue, the entire value needs to be an rtexprvalue, not just a portion. If you use the JSTL, or Struts-EL (or anything that uses the JSTL EL engine for attribute values), then this sort of thing gets easier to do, as you can easily

Re: Best Practices for Logging?

2002-12-10 Thread Michael Rimov
Hi Matt, At 10:12 PM 12/9/2002 +, you wrote: Thanks for all the responses on this topic, now another question: What is the recommended method of configuring logging for a particular class: private Log log = LogFactory.getLog(getClass().getName()); or private Log log =

Tiles tabsLayout stopped working with struts 1.1?

2002-12-10 Thread Lee Zhao
Hi, The Tiles tabsLayout no longer works after I migrated my code to struts 1.1 from struts 1.0 and the separate Tiles download. I also tried the examples in the tiles-documentation war that comes as part of the struts 1.1-b2 and was getting exactly the same problem. The error I am getting is

html-el styleId error with 12/7 Nightly Build

2002-12-10 Thread Hohlen, John
I'm using the 12/7/02 nightly build and have encountered the following error in my JSP: Error in using tag library uri='/WEB-INF/struts-html-el.tld' prefix='html-el': The Tag class 'org.apache.strutsel.taglib.html.ELImageTag' has no setter method corresponding to TLD declared attribute 'styleId',

Getting MessageResources from a ActionForm

2002-12-10 Thread Jim Collins
Hi, I would like to get a MessageResoure from an ActionForm. I thought of calling servlet.getResources() but according to the documentation this method is deprected. I want to use the ActionForm to populate a select with values from my ApplicationResources. I have seen the select example and know

Re: Re[2]: Using the key of a HashMap in an html:option tag ?

2002-12-10 Thread Kris Schneider
Rick, Glad it's working, but I don't understand why you'd have a problem with the JSP expression. IIRC, it's equivalent to the following code getting generated within the page's _jspService method: // out is a javax.servlet.jsp.JspWriter instance out.print(

RE: Getting MessageResources from a ActionForm

2002-12-10 Thread Darren Hill
Hey Jim, I remember asking the same question. The basic answer is to populate those selections in the action. Pain in the butt eh? Darren. -Original Message- From: Jim Collins [mailto:[EMAIL PROTECTED]] Sent: December 10, 2002 4:50 PM To: Struts Users Mailing List Subject: Getting

Dynamic URL's and Actions

2002-12-10 Thread Brown, Melonie S. - Contractor
I have code that generates a navigation bar based on a particular user's set of permissions. The user logs in, the menu is retrieved into a list, and the user gets a welcome page with the menu options. All of that works fine and dandy. The problem is when I actually try to go someplace from the

struts, tiles ans roles

2002-12-10 Thread Christian Simonutti
Hi there. I'm on the way to get into struts 1.1-b2 with tiles and have to develope a web-application with a lot of roles. In the sample chapter of Struts in Action, there is an example with the role attribute in the tiles:put statement, but according to tiles-dtd, the role is used in an

Re: Getting MessageResources from a ActionForm

2002-12-10 Thread Jim Collins
Hi Darren, It does seem a pain. I think I will use the deprecated servlet method for now. Jim. - Original Message - From: Darren Hill [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 10:07 PM Subject: RE: Getting MessageResources from a

Re: struts, tiles and roles

2002-12-10 Thread David Graham
I don't know enough about Tiles and roles to answer your question but I encourage you to use a recent nightly build instead of 1.1b2. There have been many important bug fixes since beta 2 was released. It will make your life easier when beta 3 and final come out. David From: Christian

RE: LookupDispatchAction onchange

2002-12-10 Thread Edgar Dollin
My requirement (not necessarily on text, but on select fields) is to force the jsp page to recalculate. Yes, this can all be done with javascript and hidden fields, but hiding and redisplaying with javascript is a pain and more logic that I care to put into a jsp. Edgar -Original

Re[4]: Using the key of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann
On Tuesday, December 10, 2002, 5:06:26 PM, Kris wrote: KS Glad it's working, but I don't understand why you'd have a problem with the JSP KS expression. IIRC, it's equivalent to the following code getting generated within KS the page's _jspService method: Trust me I don't know either. I'm

Forcing SSL for index page of application

2002-12-10 Thread Matt Raible
I'm trying to replicate the behavior that occurs when you set transport-guaranteeCONFIDENTIAL/transport-guarantee to confidential in web.xml. If I do this, when I hit the index.jsp page of my webapp, I am automatically redirected to https://localhost/myappname. However, I have a different SSL

Re[2]: Best Practices for Logging?

2002-12-10 Thread Rick Reumann
I apologize, I haven't been following this whole thread, but I'm wondering if what I've implemented is a poor solution. For a particular app called taskmanager I created a Logging class which is pretty small and looks like this: public class Logging { static Category log =

Re: struts, tiles and roles

2002-12-10 Thread Christian Simonutti
On Tue Dec 10, 2002 at 03:3601PM -0700, David Graham wrote: I don't know enough about Tiles and roles to answer your question but I encourage you to use a recent nightly build instead of 1.1b2. There have been many important bug fixes since beta 2 was released. It will make your life

Re: struts, tiles and roles

2002-12-10 Thread David Graham
Keep in mind that a beta release is simply a nightly build that the committers think is ready. David From: Christian Simonutti [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: struts, tiles and roles Date:

RE: Forcing SSL for index page of application

2002-12-10 Thread Edgar P. Dollin
I am no expert but here is the IE developers link for SSL http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodt echnol/ie/reskit/ie5/part1/ch06digi.asp Edgar -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 6:07 PM To:

dynamic input paths

2002-12-10 Thread Brian Moseley
i'm using struts 1.1b2 to perform a simple validation on an action form. it works great, except: when validation fails, i need to specify an additional request parameter for the input path, as the input page requires that parameter to exist. unfortunately, i get a configuration frozen error

sslext problem

2002-12-10 Thread Andy Kriger
I'm using SSLExt to rewrite HTTP/HTTPS links. Sometimes the link from HTTPS to HTTP is being rewritten http://serverhref;sessionID as opposed to http://server/webapp/href;sessionID (not the missing webapp and slash). Not sure what's going on. The links work fine on HTTP-HTTP pages. The actions in

whither validator taglib?

2002-12-10 Thread Brian Moseley
(apologies if this topic has been discussed before- i'm getting an error when searching the list archive: text search not supported for this list or some such.) chapter 12 of struts in action refers to a javascript taglib that doesn't appear to exist. i see the javascript tag in the html

RE: html:options encoded property

2002-12-10 Thread Kocur, David
Correct me if I'm wrong, but aren't the quote; entries unnecessary? Couldn't you just remove them? -Original Message- From: Nathalie Foures [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 9:52 AM To: [EMAIL PROTECTED] Subject: html:options encoded property Hi! I wrote a JSP

Why no text search on the mailing list archives?

2002-12-10 Thread Andy Kriger
Why doesn't text searching work any more for the mailing list archives at http://nagoya.apache.org/eyebrowse/SearchList?[EMAIL PROTECTED] pache.org You get a message 'Text search not available for this list' -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

RE: Tiles tabsLayout stopped working with struts 1.1?

2002-12-10 Thread Lee Zhao
I just downloaded and tried the 12/9 nightly build and the tabsLayout worked fine. I was using 1.1-b2 distribution when the tabsLayout had problem. -Original Message- From: Lee Zhao Sent: Tuesday, December 10, 2002 1:35 PM To: [EMAIL PROTECTED] Subject: Tiles tabsLayout stopped working

  1   2   >