Flash Flex w/ Struts article

2003-12-17 Thread Vic Cekvenich
http://www.macromedia.com/devnet/flex/articles/struts.html Is this for real? YES! Point of Struts is MVC, so some people do JSP, Velocity... other do Hibrenate or iBatis... one thing remains. (note how they did not support Spring, or WebWork or XYZ). Flex is XML like, used to be Royale ( and

RE: Modules with Tiles Problem

2003-12-17 Thread Patrick Cheng
HI All, I found a way to get it working. %org.apache.struts.util.RequestUtils.selectModule(,request,applicatio n);% html:form action=/Layout.do I have to do this for every html:form item. This works, but it is ugly. It's even worse since this method is deprecated in struts1.2. I'm suspecting

RE: Flash Flex w/ Struts article

2003-12-17 Thread Daniel Joshua
is there a sample Flash Flex w/ Strut application on the web? currious what a RIA looks like... Regards, Daniel -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich Sent: Wednesday, 17 December, 2003 3:07 PM To: [EMAIL PROTECTED] Subject: Flash Flex w/

Re: Flash Flex w/ Struts article

2003-12-17 Thread Vic Cekvenich
I usually show the Flash PetStore, but there are dozens of Flash Data Entery applications out there. I am a MacroMedia parter, and I could get you more links, but check out the Flash PetStore first (from http://blueprints.macromedia.com ) and then if you want more, let me know. (the only VERY

html:img is not getting recognised.

2003-12-17 Thread Amit Kumar Sharma
Dear friends, I am substituting the normal HTML image tag img src=%=contextPath%/images/cal.gif onClick=popUpCalendar(this, ParameterEditForm.endDate, 'dd-mmm-',46,735) with the shown below but is not getting recognised, can somebody guide me out how to use it, I am new to

Re: Re: How to digest a customized struts configuration

2003-12-17 Thread Sebastian Linz
Hi Joe, thank you for your usefull hint. Now it flies :) Of course I was quite close. I even tried out different addSetNext methods. Following your hint I knew I had to change something else. But I missed to add a corresponding add-method to my ActionMapping sub-class. Once again: thank you for

Problem with requiredIf validation

2003-12-17 Thread Markus
Hi, we try to concat more than two conditions with requiredIf. Something like (selectionOne==1 || selectionOne==2) value ==2 The problem is that it is not clear how the validator evaluates the expression. Does anyone having experiences with that. TIA, Markus

RE: html:img is not getting recognised.

2003-12-17 Thread Yves Sy
Struts already appends the context path. html:img src=./images/cal.gif onClick=popUpCalendar(this, ParameterEditForm.endDate, 'dd-mmm-',46,735) / ...should be enough -Yves- -Original Message- From: Amit Kumar Sharma [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 4:33

Re: How To Output the Value Of a Hidden Field?

2003-12-17 Thread Koni Roth
You cannot have two properties with the same name in a form. Try: html:hidden property=creator_1/ input type=text name=creator vlaue=bean:write name=beanName property=creator_1/ size=82 maxlength=25 tabindex=1/ cheers Koni Caroline Jen wrote: My JSP #2 receives a hidden field passed from JSP

BUG!!! FormFile

2003-12-17 Thread Ben Janes
Hi Further to my other mail I have tracked the source of my problem here org.apache.commons.beanutils.PropertyUtils#setSimpleProperty The problem is that when you submit a form, with a file element and the user has left the file elemet blank, it crashes The altered code below from line

BasicDataSource class of package org.apache.commons.dbcp

2003-12-17 Thread Jitesh Sinha
Hello all, I am making use of BasicDataSource class to get connections .The code which I write to get a connection is as follows : basicDataSource = new BasicDataSource(); basicDataSource.setDefaultAutoCommit(autoCommit);

RE: BUG!!! FormFile

2003-12-17 Thread Andrew Hill
Did you remember to make it a multipart form??? (And use input type=file in the page?) -Original Message- From: Ben Janes [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 December 2003 17:28 To: [EMAIL PROTECTED] Subject: BUG!!! FormFile Hi Further to my other mail I have tracked the

RE: BUG!!! FormFile

2003-12-17 Thread Ben Janes
Yes, as it works perfecrtly as long as someone enters a file in the html input field Benjamin A. Janes BLUEWAVE SVERIGE M. +46 (0)40-631 1068 F. +46 (0)40 -631 10 50 F. +46 (0)46-540 03 50 Drottninggatan 18, S-211 49 Malmö, Sweden

RE: BUG!!! FormFile

2003-12-17 Thread Andrew Hill
Hmmm. Strange. I dont get that problem in my apps. What struts version are you using? -Original Message- From: Ben Janes [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 December 2003 17:41 To: Struts Users Mailing List Subject: RE: BUG!!! FormFile Yes, as it works perfecrtly as long as

ActionMapping - regexp pattern matching for path

2003-12-17 Thread Sergey Proskurnya
Hello to all, In Struts-1.1 it is possible to bind Actions to static URL path, but is it possible to bind Actions to the set of the paths, described by Java regular expression? For example: action-mappings action path=/users/.* type=com.mysite.UserPageAction

validation

2003-12-17 Thread struts
can the validator plugin be used for the following. I have a delete button which deletes a user. Prior to the delete i want to show a warning : 'are you sure you want to delete? ' I can do it whith a javascript but can it be done using the validator as well ? Thanks !

RE: BUG!!! FormFile

2003-12-17 Thread Ben Janes
Struts 1.1 Do you want more code, such as JSP / ActionForm etc Mvh Benjamin A. Janes BLUEWAVE SVERIGE M. +46 (0)40-631 1068 F. +46 (0)40 -631 10 50 F. +46 (0)46-540 03 50 Drottninggatan 18, S-211 49 Malmö, Sweden

AW: Flash Flex w/ Struts article

2003-12-17 Thread Oliver Thiel
Read the article ;) http://blueprints.macromedia.com/PetMarket/flashstore.html Doesn't look to bad ... Oliver -Ursprüngliche Nachricht- Von: Daniel Joshua [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 17. Dezember 2003 09:11 An: 'Struts Users Mailing List' Betreff: RE: Flash Flex w/

RE: Please Help With This Error Message

2003-12-17 Thread fredatwork
Your statement is OK. It comes from the surrounding quote. The only idea I have is to check double-quotes correctly. Fred -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: mercredi 17 décembre 2003 07:41 To: [EMAIL PROTECTED] Subject: Please Help With This Error

Re: Please Help With This Error Message

2003-12-17 Thread Firat TIRYAKI
maybe you don't have a space character between creator and scope... try to write the tag in one line, not multiple lines. F. - Original Message - From: fredatwork [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 8:53 AM Subject: RE:

RE: How To Output the Value Of a Hidden Field?

2003-12-17 Thread Robert Taylor
There are a couple (3) ways to do it. 1. Have both JSP#1 and 2 use the same form then have the action that processes JSP#1 simply forward to JSP#2 and Struts will auto-populate the field. 2. Have the action that processes JSP#1 forward or redirect to JSP#2 whose form has the same property

RE: BasicDataSource class of package org.apache.commons.dbcp

2003-12-17 Thread Jitesh Sinha
No friends for me on this list ! :( -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 3:12 PM To: Struts Users Mailing List Subject: BasicDataSource class of package org.apache.commons.dbcp Hello all, I am making use of BasicDataSource

RE: BasicDataSource class of package org.apache.commons.dbcp

2003-12-17 Thread Ben Janes
Hi, I used a connection pool via JNDI,, the only issue was that it was possible for the system to check out the same connection once, and if you return one, (close) then it closes for them all.. I wrote a little item that added the hashcode to an arraylist, removeing it when then code

Help on form reset

2003-12-17 Thread vasudevrao gupta
Hi, I am new to struts.. I understand that the validate method of the Action form can be called based on the validate attribute in struts_config.xml. Similarly, for the reset method, can we configure in the xml file. Regards VasudevRaoGupta Confidentiality Notice The information contained

RE: Help on form reset

2003-12-17 Thread Fullam, Jonathan
No, the reset method will automatically be called on a Session scoped ActionForm upon each request. Request scoped ActionForms are newly instantiated upon each request so, with Request scoped ActionForms, the reset method is irrelevant. -Jonathan -Original Message- From: vasudevrao gupta

RE: [OT ]BasicDataSource class of package org.apache.commons.dbcp

2003-12-17 Thread chekuri raju
hello jitesh, why do u need to bother about BasicDataSource code if u r running it on any server just configure the configuration files and use JNDI lookup to get the connection and your close() on Connection object returns the con obj to pool regards srinivas Jitesh Sinha [EMAIL

Help on setting multiple values in Action form from client side

2003-12-17 Thread vasudevrao gupta
Hi , I have a screen with number of records and each record has an associated check-box. User clicks on single/multiple checkboxes to select the records and clicks on delete button(same as in Yahoo mail). I have an associated action form to this screen with one of the attributes of String[]

Re: Error using Struts Validation on Weblogic 8.1 platform

2003-12-17 Thread Milon Krejca
Seems like you do not have DTD configured localy and the server is tryiing to access DTD from web server. See beginning of validation.xml file and look for DTD definition... Milon [EMAIL PROTECTED] wrote: All, The validation doesn't seem to work.Checking the Server logs displays the

Re: Help on form reset

2003-12-17 Thread Martin Gainty
Any Form Bean which extends ActionForm can override the reset() method http://www.fawcette.com/javapro/2002_07/online/kjones/default_pf.aspx Is there something in particular you wish to accomplish? Martin - Original Message - From: Fullam, Jonathan [EMAIL PROTECTED] To: 'Struts Users

Newbie: java.lang.boolean and DynaActionForm?

2003-12-17 Thread Engbers, ir. J.B.O.M.
Hi, Both 'Struts in Action' and 'Programming Jakarta Struts' state that ActionForms and DynaActionForms are nearly equivalent and the main advantage of using DynaActionForms is that you don't have to declare all the getters and setters. In DynaAction Forms each property can be of a (array of a)

RE: [OT ]BasicDataSource class of package org.apache.commons.dbcp

2003-12-17 Thread Jitesh Sinha
Thanks Chekuri and Ben for your replies...meanwhile I have done some research on BasicDataSource and found a few things..will post once I am totally sure about that... -Original Message- From: chekuri raju [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 7:49 PM To: Struts

sample program not running..getting stuck at Creating new Action

2003-12-17 Thread deepak saini
Hi, I have written a small application based on struts. there is one jsp page from which i am submitting some data. this is the code inthe jsp file html:form action=Lookup table width=45% border=0 tr tdSymbol:/td tdhtml:text property=symbol //td /tr tr

New Tag Files vs Tiles??

2003-12-17 Thread Graham Lounder
Hey all, I just learned about the new tag files in the JSP 2.0 spec by playing around with the tomcat 5 examples. I'm wondering since these tag files seem so easy to create, could they be used as another templating mechanism similar to tiles? Does anyone see any reason why you would want to use

Re: Newbie: java.lang.boolean and DynaActionForm?

2003-12-17 Thread Mark Lowe
DynaActionForms as cool as they are are more trouble than they're worth unless its a small simple form. For one thing you don't find out what's wrong until runtime. I just use strings for dynaaction forms as it works, the problems our in part caused (i think) by the conversions done by

RE: Newbie: java.lang.boolean and DynaActionForm?

2003-12-17 Thread Robert Taylor
To address the fundemental question, it is considered a best practice to only use String or Boolean objects or collections of String and/or Boolean objects or collection of data structures which contain String and/or Boolean objects in your forms. This is because it gives you more control over

Re: Newbie: java.lang.boolean and DynaActionForm?

2003-12-17 Thread Mark Lowe
No one's suggesting that anyone hangs them selves or that struts isn't good. But the fact that this list sees a high influx of newbies, getting battered with high-brow design concepts which while are very interesting have a certain chocolate fire guard quality to them . Easiest thing is to

Re: Newbie: java.lang.boolean and DynaActionForm?

2003-12-17 Thread Ed Dowgiallo
Mark, Perhaps I am getting old, but the meaning of your metaphors went over my head. On the other hand, this is an international audience. What is a chocolate fire guard? Do you believe it is harder or easier to use DynaActionForms instead of Strings? Is taking the piss a bit

Re: Newbie: java.lang.boolean and DynaActionForm?

2003-12-17 Thread Mark Lowe
Hi Ed On 17 Dec 2003, at 15:49, Ed Dowgiallo wrote: Mark, Perhaps I am getting old, but the meaning of your metaphors went over my head. On the other hand, this is an international audience. What is a chocolate fire guard? a fire guard is like a shield one places in front of a fire

validation and DynaActionForm

2003-12-17 Thread Marco Mistroni
Hi all, I am experiencing problems with DynaActionForm.. I have a DynaActionForm that contains 13 properties and A DispatchAction used calling different methods depending On the value of one parameter (named methodToCall). Now, when I enter the page for the first time the only request

Re: Newbie: java.lang.boolean and DynaActionForm?

2003-12-17 Thread Mark Lowe
Hi Ed I've checked my spellings this time. On 17 Dec 2003, at 15:49, Ed Dowgiallo wrote: Mark, Perhaps I am getting old, but the meaning of your metaphors went over my head. On the other hand, this is an international audience. What is a chocolate fire guard? A fire guard is like a

RE: BUG!!! FormFile

2003-12-17 Thread Dan Payne
I have the same problem but ONLY with Opera 7.2x I'm using Struts 1.1 and with Opera 7.1 everything worked fine. The formFile field could be left blank. When I upgraded to 7.2 it began to throw a argument type mismatch when the formFile field was left blank. Could this be the source of your

RE: html:img is not getting recognised.

2003-12-17 Thread Dan Payne
Wouldn't it need to be html-el:img page=/images/cal.gif onClick=popUpCalendar(this, ParameterEditForm.endDate, 'dd-mmm-',46,735) / as using src won't append the context? -Dan -Original Message- From: Yves Sy [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 2:55 AM To:

Re: validation and DynaActionForm

2003-12-17 Thread Mark Lowe
Hi Marco Perhaps try a none strust form element input type=hidden name=methodToCall value=foo rather than html:hidden property=methodToCall value=foo / also if possible in your situation html:form action=/myaction.do?methodToCall=foo Cheers Mark On 17 Dec 2003, at 16:10, Marco Mistroni

RE: validation and DynaActionForm

2003-12-17 Thread Marco Mistroni
Hi Mark, Thanx.. but this A href=/myaction.do?methodToCall=foo../a is exactly what I am doing.. I am assuming that If validator is trying to validate all the Parameters I have no other choice than redirect straight to the Jsp... Thanx anyway and regards marco On 17

RE: validation and DynaActionForm / concrete question

2003-12-17 Thread Marco Mistroni
Hi all, After struggling with my application, I have One question to ask. I have a DispatchAction class that handles my logic, and A DynaActionForm associated with it. The problem is that the jsp from which the request comes can Contain either 1, 2 parameters (out of 13 of DynaActionForm)

Re: Newbie: java.lang.boolean and DynaActionForm?

2003-12-17 Thread Ed Dowgiallo
Thank you for the translation. ;-) Ed - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 11:11 AM Subject: Re: Newbie: java.lang.boolean and DynaActionForm? Hi Ed I've checked my spellings this

Re: validation and DynaActionForm / concrete question

2003-12-17 Thread Mark Lowe
Hi marco well i think the problem your having is because you're using a dispatch action so the form is mapped to the action and its set to validate. You can either separte yu dispatch actions into standard actions or hack it by having a single action that calls your dispatch action much like

Re: Plea for help w/Struts-Hibernate Plugin that has it working!

2003-12-17 Thread David Erickson
Excellent I will give that a try. What I was hoping to do was maintain one JDNI location for my database, but I will definitly try this out. Thanks! -David - Original Message - From: David Friedman [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December

RE: validation and DynaActionForm / concrete question

2003-12-17 Thread Wendy Smoak
well i think the problem your having is because you're using a dispatch action so the form is mapped to the action and its set to validate. You can either separte yu dispatch actions into standard actions or hack it by having a single action that calls your dispatch action much like you

RE: validation and DynaActionForm / concrete question

2003-12-17 Thread Marco Mistroni
Hi Wendy, Only a little problem.. I haven't written any class for my DynaActionForm. Instead, I declare all the properties in the struts-config.xml Struts does all the rest But, anyway, can u give more details on ur solution to my problem? Regards marco -Original

Character encoding issue

2003-12-17 Thread Seyed Razavi
Howdy, I've got a strange problem with character encoding German characters. I'm using iso-8859-1. The app is running on JDK 1.4.2, Jboss 3.2 w/ Tomcat and using Struts 1.1. The application works fine on local Windows machine and on a Red Hat system. However, when moved to a Debian system it

using redirecting forwards after failed validation

2003-12-17 Thread Par Winzell
Hello everyone -- this is my first post. I'm hoping you can help with a problem. I've seen bits and pieces of this question asked, but not entirely... Here's my problem: When the user enters data into a 'enter search parameters' form and validation fails, I don't want the URL to proceed to the

Re: Flash Flex w/ Struts article

2003-12-17 Thread BaTien Duong
Vic Cekvenich wrote: http://www.macromedia.com/devnet/flex/articles/struts.html Is this for real? YES! Point of Struts is MVC, so some people do JSP, Velocity... other do Hibrenate or iBatis... one thing remains. (note how they did not support Spring, or WebWork or XYZ). Flex is XML like,

RE: validation and DynaActionForm / concrete question

2003-12-17 Thread Wendy Smoak
Marco wrote: Only a little problem.. I haven't written any class for my DynaActionForm. Instead, I declare all the properties in the struts-config.xml That does not preclude you from writing a class-- Dyna forms just get you out of writing a bunch of get/set methods. You can still

Struts internal error

2003-12-17 Thread Julien Martin
Hello, I am working on a fairly complex application and I am running into a struts internal error. Can anyone tell me how to sort it please. Here is the exception trace: *** HTTP Status 500 -

RE: using redirecting forwards after failed validation

2003-12-17 Thread Barett McGavock
I did the following to get around the drawback with RequestProcessor that you pointed out: 1) keep the ActionErrors as a request attribute 2) set the validate parameter to false for the ActionMapping 3) add code like the following to the search action itself: errs = form.validate(); if

Re: Chain Was: Flash Flex w/ Struts article

2003-12-17 Thread Vic Cekvenich
BaTien Duong wrote: Yes. This is what I am looking at Struts 2 of request/response framework (struts-chain): in the article example of registration service, we will probably have something like this: Registration request - RequestProcessor - RegistrationService - RegistrationAction - blah

[OT?] WebSphere and commons-logging

2003-12-17 Thread Hibbs, David
For those who are using commons-logging (i.e all Struts users!) on WebSphere 4.0 or greater, you need to be aware that WebSphere comes with its own implementation of a commons-logging Log. Not only that, but it comes with its own implementation of LogFactory... and a

RE: Modules with Tiles Problem

2003-12-17 Thread Hibbs, David
If you have components used everywhere for every module, create some new and separate struts-config.xml and tiles-defs.xml files. You can specify multiples of each type of file for each module, so each module is free to reference a shared config file. To reference more than one

Targeted forward

2003-12-17 Thread Ovidiu EFTIMIE
Hi, I have an abstract base Action class which calls an abstract method called executeAction. All my Actions implement the executeAction method. //Snip from BaseAction class public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse

Strategy for out of date items through forms using hibernate?

2003-12-17 Thread David Erickson
Hi I am using Struts with Hibernate in a webapplication.. we are using forms etc. The problem I am currently trying to decide how to handle is thus: Assume user 1 loads up an object in a form and is modifying it. Assume user 2 loads up the same object in a form and is also modifying it. User 1

Weblogic 8.1 - Error in using tag library

2003-12-17 Thread aashra
Environment: OS: Windows XP App Server: BEA Weblogic 8.1 MVC: Struts 1.1 IDE: JBuilder 7 Enterprise JSP File: See attachment Error: Dec 17, 2003 9:34:42 AM MST Error HTTP BEA-101020 [ServletContext(id=28941,name=hipaax,context-path=/hipaax)] Servlet failed with Exception

Re: [OT?] WebSphere and commons-logging

2003-12-17 Thread Ovidiu EFTIMIE
Hi, Make a file called commons-logging.properties and add this line: org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFacto ry Put the file in your classpath Ovidiu - Original Message - From: Hibbs, David [EMAIL PROTECTED] To: Struts-Users (E-mail) [EMAIL

datasources and oracle 9i

2003-12-17 Thread Claire Wall
hi, i am using Oracle 9i as my datasource and have declared it in my struts-config as follows: data-source key=DB type=oracle.jdbc.pool.OracleConnectionPoolDataSource set-property property=autoCommit value=false/ set-property property=description value=DB_Connection_Pool/

Question about back button on forward.

2003-12-17 Thread Shah, Shrihas (OFT)
Hi All: In IE when user hits back button then I want to forward user to my main page. I want to do this in reset method of the form. How can I 1) forward using request object to forward to main page. 2) Or redirect to main page Note: At this time I am not executing action class.

RE: Struts internal error

2003-12-17 Thread Fullam, Jonathan
You can get the root cause of an internal exception by looking about half way down the stack trace. In your case it is: root cause java.lang.IllegalAccessError: tried to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class

Generate Java class from xml?

2003-12-17 Thread Vicky
Does anyone have an idea of how i can generate .java file from xml file? Tools like jakrata digester, JOX are there but both of them are useful in populating java beans from xml. My requirement is to generate .java file from .xml with getters and setters methods for xml elements/attributes. I

Re: OT: Strategy for out of date items through forms using hibernate?

2003-12-17 Thread Vic Cekvenich
I avoid timestamps. Just make your where class = to the selct cluase. In case any colum is changed, it fails. (if you really need this) .V David Erickson wrote: Hi I am using Struts with Hibernate in a webapplication.. we are using forms etc. The problem I am currently trying to decide how to

Struts internal error

2003-12-17 Thread Julien Martin
Thank you Jonathan, I figured this out myself but I don't know how to sort it out... Can you help? Julien. - Original Message - From: Fullam, Jonathan [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 7:58 PM Subject: RE: Struts

RE: Generate Java class from xml?

2003-12-17 Thread Higdon, Brian [VIS-Non JJ]
Have you looked at XML beans: http://xml.apache.org/xmlbeans/ -Original Message- From: Vicky [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 2:01 PM To: [EMAIL PROTECTED] Subject: Generate Java class from xml? Does anyone have an idea of how i can generate .java file

Re: Generate Java class from xml?

2003-12-17 Thread Martin Gainty
Castor (http://www.castor.org) which generate the java classes with marshall and unmarshall methods, but it is not finished, doesn't care to namespaces, owns severals bugs ... The second one is Xml Spy 5.0, it generate classes from an xsd file which wrap on the Dom Tree, but all facets are not

Re: Question about back button on forward.

2003-12-17 Thread Khalid K.
This is an age old questions. There are various javascript 'hacks' around. I suggest google the following: javascript back button the problem is that when you click on back button no server request is made, the catched page froom history.back() (i think that is the method) is displayed. So

Re: *****SPAM*****Re: Generate Java class from xml?

2003-12-17 Thread John Smart
There's also XMLBeans (http://xml.apache.org/xmlbeans/) , which, unlike Castor, works with JDK 1.4... Martin Gainty wrote: Castor (http://www.castor.org) which generate the java classes with marshall and unmarshall methods, but it is not finished, doesn't care to namespaces, owns severals bugs

Error using tiles-el

2003-12-17 Thread Narayanan, Sunitha
Hello, I am using Struts 1.2 (nightly build as of 17 Dec 2003) and am trying out using the tiles-el. When I replace my tiles taglib with tiles-el, I am getting this error /WEB-INF/tiles/layout/main_layout.jsp(4): Error in using tag library uri='/WEB-INF/taglib/struts-tiles-el.tld'

Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Sgarlata Matt
Does anyone know a good reference on how to use checkboxes with session-scoped DynaActionForms? The problem I am running into is that when the form bean is session scoped, the checkbox sticks to always being checked even if the user unchecks the checkbox. This makes some sense to me, because I

Re: Struts internal error

2003-12-17 Thread Martin Gainty
A wild guess in your jsp are you declaring any Properties such as private Properties elementMap = null; In that case you want to make sure you have mutators (set) and accessors(get) methods set up for elementMap declared in your form Would be helpful to look at the entire jsp -Martin Message

html:submit

2003-12-17 Thread Clark Kent
I am trying to use bean:message for internationalization within the html:submit button like this : html:submit property=physicianSubmit value=bean:message key='csc.button.submit'// There is a key-value pair in the resource bundle. But it seems to display the following error : Attribute

RE: Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Barett McGavock
If your fields are currently Strings, just put field = new String[0]; in your reset() method. You don't need to change it to a [Bb]oolean. This advice should work for any type. B -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 12:48

RE: Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Wendy Smoak
From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Also, It looks like I am going to have to subclass DynaActionForm or DynaValidatorForm so that I can reset the checkboxes in the reset() method of the form bean. That seems like quite a pain (kind of defeats the purpose of Dyna forms, doesn't

RE: html:submit

2003-12-17 Thread Ben Anderson
you can't specifiy a tag as the value of an attribute in another tag. There are a few different ways you could solve this problem. Here's one using jstl and struts-el: c:set var=messy bean:message key='csc.button.submit'/ /c:set html-el:submit property=physicianSubmit value=${messy}/ From:

Problem

2003-12-17 Thread Shaun Roach
Hello, I have been using struts for awhile, but after I started a new project last week, I began having a problem with it. It seems like struts cannot find the getter methods in my beans. For instance, when I try the following jsp page: html:html logic:iterate id=statLine name=playerDisplay

Struts has problem finding getter

2003-12-17 Thread Shaun Roach
Sorry for resending this, I forgot to put a descriptive subject: Hello, I have been using struts for awhile, but after I started a new project last week, I began having a problem with it. It seems like struts cannot find the getter methods in my beans. For instance, when I try the following

RE: Problem

2003-12-17 Thread Robert Taylor
Did you include the Struts bean tag-lib directive? In other words if you view source, do you see bean:write name=statLine property=lineDate/ ? robert -Original Message- From: Shaun Roach [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 3:13 PM To: [EMAIL PROTECTED]

RE: Problem

2003-12-17 Thread Shaun Roach
Yes, I have these taglib directives at the top of both those pages: %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/struts-nested.tld

Re: ActionMapping - regexp pattern matching for path

2003-12-17 Thread Brice Ruth
No, I don't believe this is possible currently. Wildcards of any kind (extending to regexps) are not support for ActionMapping paths. Sergey Proskurnya wrote: Hello to all, In Struts-1.1 it is possible to bind Actions to static URL path, but is it possible to bind Actions to the set of the

problem with adding ActionMessage to ActionErrors

2003-12-17 Thread Bradford M. Ayers
I noticed in the documentation that ActionError is deprecated, so I was trying to be a good doobie and use ActionMessage like the docs say to. So in my code, when I go from this: errors.add( ActionErrors.GLOBAL_ERROR, new ActionMessage( error.password.mismatch )); to this: errors.add(

RE: [OT?] WebSphere and commons-logging

2003-12-17 Thread Hibbs, David
Yeah, it doesn't help because there is a commons-logging.properties file in the WAS classpath already! As long as you have the classloader mode set to parent first, it will find the IBM version first and, thus, use the IBM log. Good thought, though, and I did neglect to mention that creating

Re: *****SPAM*****Re: Generate Java class from xml?

2003-12-17 Thread Christopher Milton
I use Digester which is used by Struts itself. http://jakarta.apache.org/commons/digester/ http://www.google.com/search?q=jakarta+digester http://www.javaranch.com/newsletter/August2003/TouringTheCommonsPart2.html --- John Smart [EMAIL PROTECTED] wrote: There's also XMLBeans

Re: Strategy for out of date items through forms using hibernate?

2003-12-17 Thread Jason Lea
I have done this. Hibernate supports versioning (using a version number column), if you use this Hibernate can make sure the changes are not overwritten. The basic process is: 1. Hibernate session A loads object A1 (with identifier 1234) 2. Hibernate session B loads object B1 (also with

Re: Strategy for out of date items through forms using hibernate?

2003-12-17 Thread David Erickson
I have done this. Hibernate supports versioning (using a version number column), if you use this Hibernate can make sure the changes are not overwritten. The basic process is: 1. Hibernate session A loads object A1 (with identifier 1234) 2. Hibernate session B loads object B1 (also with

RE: Character encoding issue

2003-12-17 Thread Seyed Razavi
Well to answer my own question: The source of the problem was found. A compression filter (gzipping the response) seems to have been the culprit. -Original Message- From: Seyed Razavi [mailto:[EMAIL PROTECTED] Sent: 17 December 2003 17:37 To: [EMAIL PROTECTED] Subject: Character

Re: Strategy for out of date items through forms using hibernate?

2003-12-17 Thread Jason Lea
With versioning hibernate increments the version number each time. I believe this is prefrered to the timestamp method, but I think hibernate supports both. (off the top of my head) I have a struts form which holds the fields etc plus the object I loaded from Hibernate. I use DispatchLookUp

Re: [OT] I didn't know Struts was an antipattern

2003-12-17 Thread Ted Husted
Gus Heck wrote: Interesting, I'm not sure I agree, but the patch that he complains about not being added sounds useful... A lot of people have requested a history stack, and have also implemented it in their own applications. But I think we need to solve it in the larger context of a general

Problem with initialize servlet - load-on-startup

2003-12-17 Thread Les Dunaway
I'm running Tomcat 406 on Redhat9 I have a working Struts app I've added a second servlet to web.xml, specifying load-on-startup 2 (where 1 is Action servlet The second servlet is ignored (or at least it doesn't produce anything in the logs) - the log shows the parsing of the web.xml going

Re: Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Sgarlata Matt
Wendy Barrett - Thanks for your help! Both of your answers helped me fix the problem I was having with checkboxes and session-scoped DynaActionForms. Wendy - I feel like the reset method of the DynaActionForm should be able to automatically take care of checkboxes, perhaps with a little extra

RE: Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Mainguy, Mike
I think there is a common misconception that if you use DynaActionForms you don't need to write an ActionForm AT ALL. While this is true, you may also subclass the DynaForm and provide a similar level of functionality as a normal form. Kmart Tech News news://uskihsvtfinsys The essence of

RE: using redirecting forwards after failed validation

2003-12-17 Thread Par Winzell
Barett, 1) keep the ActionErrors as a request attribute 2) set the validate parameter to false for the ActionMapping 3) add code like the following to the search action itself: errs = form.validate(); if (!errs.isEmpty()) { saveErrors(errs); return mapping.getInput(); } This seems

Re: *****SPAM*****Re: Generate Java class from xml?

2003-12-17 Thread Adam Hardy
John, this is off-topic, but why does your message header contain the word ***SPAM** ? On 12/17/2003 08:43 PMnbsp;John Smart wrote: There's also XMLBeans (http://xml.apache.org/xmlbeans/) , which, unlike Castor, works with JDK 1.4... Martin Gainty wrote: Castor (http://www.castor.org)

Re: Generate Java class from xml?

2003-12-17 Thread Adam Hardy
Hi Christopher, just a quick question about Digester, perhaps you can save me the effort of reading up on it to find out myself, but will Digester be able to parse HTML? I am dealing with the Internet Explorer bookmarks export file. I have already tried JAXB but JAXB chokes on it, saying that

RE: using redirecting forwards after failed validation

2003-12-17 Thread Barett McGavock
You are correct. Your decision to put the errors in the session is necessary if you want the URL to read that way. My understanding is that all request attributes will vanish if you redirect. Most notably including the ActionErrors that the thread was all about! :) I have long since given up

  1   2   >