Re: Best Book on Struts

2003-06-18 Thread Sloan Bowman
I read Struts in Action and found it to be pretty good but didn't go into as much detail as would like on some subjects but all around its pretty good. I would recommend having a strong background in JSP/Servlet/Taglibs before reading this book though. Hope this helps. Also if you read the

Re: Best Book on Struts

2003-06-18 Thread Carlos Duque
I found that Mastering Jarkarta Struts by James Goodwill from Wiley was the best quick start. Struts in Action by Ted Husted from Manning is, IMNSHO, the definitive guide. And the best, concise, well written and practical text is the smallest, The Struts Framework, Practical Gude for Java

Bean in the view or in the model?

2003-06-18 Thread Andy Cheng
hi! I am currently learning struts, and I have a bean that I can set some parameters, and then it query the database, render and return the result as a HTML table. I am just wondering if I should place this bean in the View (the jsp page), or the Model then return the string (HTML table) to the

RE: few questions from new struts user

2003-06-18 Thread Philip McILvenna
Hi Sorry about that it was written in 1.4.1_02. I'd love to keep working on it and I did have lots of other ideas to put in but I'm in the start up of a new project so as usually no time for anything else. Note. The method it is failing on is title = title.trim().replaceAll(\\p{Punct},);

Re: Bean in the view or in the model?

2003-06-18 Thread Gemes Tibor
Andy Cheng rta: hi! I am currently learning struts, and I have a bean that I can set some parameters, and then it query the database, render and return the result as a HTML table. I am just wondering if I should place this bean in the View (the jsp page), or the Model then return the string

Switch off validation

2003-06-18 Thread jailani . s
Hi, I can see my validation works even after my validate method inside my form class returns null. I don't know from where it is taking reference and processing,is there any cache to be cleared . Please advise, Spent a lot of time on analyzing this. Note: Here i have given validate=true in my

RE: Problem with Map based form

2003-06-18 Thread Nadja Senoucci
Hello Paul, That's strange, I've just implemented a map based form and am taking and returning String in my setter getter with no problems. Having said that I'm accessing my form in my action directly - not via the BeanUtils. Hmm... Well, maybe there was a problem with the class files then,

Re: Bean in the view or in the model?

2003-06-18 Thread Sloan Bowman
Andy, You never want to have a bean return html tags because this would cause the bean to only be used in as a http bean. Instead you should create a Data Access Bean pull the data from the database and return a State bean to the view you are wanted to use. In the view you can use the state

flush attribute for action forward tag in struts-config.xml

2003-06-18 Thread Anurag Garg
Hello Everyone, Is there any FLUSH attribute for action forward tag in struts-config.xml. Basically when I do findForward in my action class, it throws Response is already commited. Can't forward the request. error, the solution to which lies probably in setting the flush property (as we do in

About prepopulating a form...

2003-06-18 Thread Nadja Senoucci
Hello again, A while ago I had asked a question about how to prepopulate a form with the data of an object in my session. I got told to do it in the action class leading up to this form. The problem I have with this is that in the action class the form has not yet been initialized (since it is

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-18 Thread Alen Ribic
Hey James, I came from the same ASP/COM/IIS environment for the last +/3 years. All I can say is, what a pain! Man there hasn't been any really good way of making distinct separations in your code nor was there any real good way of controlling your actions. (Not in really an effective way at

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-18 Thread Adam Hardy
You're right about the lack of a View aspect, but when I was working as a VB developer, there were alot of n-tier app developers around, writing business rules in VB COM objects, sometimes with minimal coding in ASP. There are huge user lists, like [EMAIL PROTECTED] and so on, just as busy if

Validator documentation

2003-06-18 Thread Malik Recoing
Hello, I'm looking for an exaustive documentation of the struts validator's rules defined in validator-rules.xml. Where can I find the name, values and meaning of heach variable the rules can take ? Neither : http://jakarta.apache.org/struts/userGuide/dev_validator.html nor the javadoc

Errors from Backend System

2003-06-18 Thread Manuel Lenz
Hi to all, I have a connection to a Backend System that gives Error Messages to my FormBeans. But in the Error-Definiton of my FormBeans, I can only select Messages form the RessourceProperties-Files. How can I save my Backend-Messages in the Error Object? Greetings, Manuel

RE: About prepopulating a form...

2003-06-18 Thread Andrew Hill
snip The problem I have with this is that in the action class the form has not yet been initialized (since it is before form gets displayed and submitted, of course) and therefore is null. /snip Shouldnt be. The request processor will have instantiated your ActionForm bean for you based on whats

RE: About prepopulating a form...

2003-06-18 Thread Andrew Hill
Yep. If you dont specify it in the mapping then struts wont know to create/retrieve the form... Its quite common to have two actions associated with a form - one for preparing the form for display and the other for handling the submitted form after display. (Often the two roles will be combined

RE: About prepopulating a form...

2003-06-18 Thread Nadja Senoucci
snip The problem I have with this is that in the action class the form has not yet been initialized (since it is before form gets displayed and submitted, of course) and therefore is null. /snip Shouldnt be. The request processor will have instantiated your ActionForm bean for you based

Logging in struts.

2003-06-18 Thread Simon Kelly
Hi all, I didn't really want to post such a basic question, but I have tried a couple of possible solutions and have had zero luck. So, How do you log messages using the Struts logger, so that they will print to screen? I.E the window that tomcat is running in, in my case. Thanks, cheers etc

Re: Logging in struts.

2003-06-18 Thread Gemes Tibor
Simon Kelly rta: Hi all, I didn't really want to post such a basic question, but I have tried a couple of possible solutions and have had zero luck. So, How do you log messages using the Struts logger, so that they will print to screen? I.E the window that tomcat is running in, in my case.

RE: Logging in struts.

2003-06-18 Thread Filip Polsakiewicz
Hi Simon, there is a lot of info on that question in O'Reilly Programming Jakarta Struts. The tell you how to use Commons Logging or Log4J within your struts apps. And: whatever you print to stdout or stderr appears in your tomcat window anyway (at least it should) Greetz from Karlsruhe too,

RE: multiple parameters for message resources

2003-06-18 Thread salgado . pc
The problem is with javascript that the validator generates. The html:javascript doesnt have a bundle parameter (html:error, for example has bundle parameter) so i am obliged to use the default resource has the error message resource (which i really do not want). I am using a default resource for

RE: About prepopulating a form...

2003-06-18 Thread Nadja Senoucci
Yep. If you dont specify it in the mapping then struts wont know to create/retrieve the form... Its quite common to have two actions associated with a form - one for preparing the form for display and the other for handling the submitted form after display. (Often the two roles will be

Many sessions in struts 1.1 with tiles

2003-06-18 Thread Ferran Parra
Hi all, I have a webapplication with struts 1.1 - tiles-validator-OJB and tomcat 4.1.18 connect to apache JK.1.2. when start tomcat-apache and navigate in the application the number sessions increase to 130 (1XX) i can view this in the tomcat-manager aplication. why increase the number

Re: Logging in struts.

2003-06-18 Thread Simon Kelly
Hi Gemes and Filip, Thanks for the answers. I'm using commons logging (and I'm just checkin my copy of Prog' J.Struts), but println() isn't even dumping out to screen, even though when I go throught the page it runs the x.do class! Simon PS Filip, where are you in KA? - Original Message

Re: Many sessions in struts 1.1 with tiles

2003-06-18 Thread Gemes Tibor
Ferran Parra rta: Hi all, I have a webapplication with struts 1.1 - tiles-validator-OJB and tomcat 4.1.18 connect to apache JK.1.2. when start tomcat-apache and navigate in the application the number sessions increase to 130 (1XX) i can view this in the tomcat-manager aplication. why increase

html:select 's disabled property is according to other property

2003-06-18 Thread lcl
Hi I have a elementary question want to ask the experts like you guys, in my form bean ,there are 3 field : depid, empid, choosetype in jsp, depid and empid will list as dropdown menu, and choosetype will list as radio button, clip like this : html:select property=depid .. /html:select

RE: Logging in struts.

2003-06-18 Thread Filip Polsakiewicz
-Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:02 AM To: Struts Users Mailing List Subject: Re: Logging in struts. Hi Gemes and Filip, Thanks for the answers. I'm using commons logging (and I'm just checkin my copy of Prog'

Re: Logging in struts.

2003-06-18 Thread Kwok Peng Tuck
If you can't see your standard output try looking in the $CATALINA_HOME/logs directory and look for a file called catalina.out. I used a linux rpm installation of tomcat and all stdout goes there when tomcat is started up. Filip Polsakiewicz wrote: Hi Simon, there is a lot of info on that

Re: Logging in struts.

2003-06-18 Thread Simon Kelly
Thanks Filip (and hi Kwok, yep found the file. See below) I tested the servlet context logging, and found the file it writes too, and found only these lines at the ned of the file when it runs the actioin class. 2003-06-18 11:26:09 action: Processing a GET for /select 2003-06-18 11:26:09 action:

RE: Logging in struts.

2003-06-18 Thread Filip Polsakiewicz
-Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:36 AM To: Struts Users Mailing List Subject: Re: Logging in struts. Thanks Filip (and hi Kwok, yep found the file. See below) I tested the servlet context logging, and found the

Help needed

2003-06-18 Thread Vijay K Hegde
Hi, I am developing an struts application that uses EJB classes. The EJB classes refers a properties file for some constant values. It works fine when working in WSAD5.0 but when deployed on the unix server it is not able to find the path. It shows the following error.

Re: Logging in struts.

2003-06-18 Thread Kwok Peng Tuck
Hmm very strange since it doesn't log properly. Looks a bit different then how it's done in the struts examples. I see that they do this, import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; ... .. .. public final class EditSubscriptionAction extends Action {

Re: Help needed

2003-06-18 Thread Kostadinis
Why you dont leave your properties file, out of jar? Create a directory in your application Server, and insert it there. It works OK for me in Linux-Environment, One drawback of properties file inside a jar is that if you want to change a value, what do you do? Vangos. - Original

populate DynaForm with Array of Objects

2003-06-18 Thread Julie CARDON
Hi, I'm trying to use DynaForm with an Array of Object like this: form-bean name=ligneProduitForm type=org.apache.struts.validator.DynaValidatorForm form-property name=lignesReceptionDTO type=package_name.LigneReceptionIhmDTO[] / /form-bean I know the populate method is ok, because I can

Struts validator, validating dates with pattern.

2003-06-18 Thread Eirik Kjølsrud
Hi. I'm using Struts 1.1 RC1 and wants to validate a date in an input field as required and date. The part in validation.xml describing the validation is : field property=orderstart depends=required,date arg0 key=gameparamForm.orderstart.displayname/ var

RE: Validator documentation

2003-06-18 Thread Mark Galbreath
Good luck. -Original Message- From: Malik Recoing [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 4:02 AM To: Struts Users Mailing List Subject: Validator documentation Hello, I'm looking for an exaustive documentation of the struts validator's rules defined in

Re: Logging in struts.

2003-06-18 Thread Simon Kelly
Done that. It's my usual option for loggin in struts. But even that seems to have failed me :-( - Original Message - From: Kwok Peng Tuck [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:24 PM Subject: Re: Logging in struts. Hmm very

Re: Struts validator, validating dates with pattern.

2003-06-18 Thread Nagendra Kumar O V S
hi, use this syntax var var-namedatePatternStrict/var-name var-valuedd/MM//var-value /var -nagi ---Original Message--- From: Struts Users Mailing List Date: Wednesday, June

Re: Logging in struts.

2003-06-18 Thread Adam Hardy
sounds like your logging configuration file doesn't contain what you think it does or is not being found at start-up. Simon Kelly wrote: Done that. It's my usual option for loggin in struts. But even that seems to have failed me :-( - Original Message - From: Kwok Peng Tuck [EMAIL

Good Struts-tiles example?

2003-06-18 Thread Alen Ribic
Hi all Can anyone please point me to a good example of using Struts Tiles. Sample code and some explanation would be good. Thanks --Alen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Is modern Java IDE enough to work with Struts Project? Was: [OT] IDE with easy tomcat upgrade?

2003-06-18 Thread Ted Husted
Sergey Smirnov wrote: You can see a lot a references here. They are mostly string references. Just any typo and validation does not work properly. I wonder, how modern Java IDE (IDEA, JBuilder, Eclipse, NetBeans and so on) tries to help Struts developers to find and fix those kind of problems.

Re: [OT] IDE with easy tomcat upgrade?

2003-06-18 Thread Ted Husted
Aaron Longwell wrote: I too am in the market for an IDE. Can you give me some details about what features you like about NetBeans? Are you using any plugins? Any specific features that make J2EE development quicker? Arron Bates, creator of the Nested Taglib, made a post to the DEV list

Re: Good Struts-tiles example?

2003-06-18 Thread Alen Ribic
ok. found this page: http://jakarta.apache.org/struts/userGuide/dev_tiles.html seems to have it all. :) bye. --Alen - Original Message - From: Alen Ribic [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:12 PM Subject: Good Struts-tiles

creating dynabean properties on demand possible?

2003-06-18 Thread Adolfo Miguelez
Hi all, I wonder a question: Why BasicDynaBean implementation does not allow to create a DynaBean setting property/value pairs on demand.? AFAIK, first an empty DynaBean (i.e. a DynaClass) must be created and it can be filled only after creation. The issue is that sometimes it make me loop

Re: Re: Good Struts-tiles example?

2003-06-18 Thread tnist
In addition to the below, I have found the following resource, Tiles 101/201, by Patrick Peak to be very helpful: http://www.theserverside.com/resources/articles/Tiles101/article.html Regards, Todd G. Nist From: Alen Ribic [EMAIL PROTECTED] Date: 2003/06/18 Wed AM 07:37:18 EDT To:

Re: Re: Good Struts-tiles example?

2003-06-18 Thread Alen Ribic
thanks, another useful one I see. :) --Alen - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:42 PM Subject: Re: Re: Good Struts-tiles example? In addition to the

Re: Struts validator, validating dates with pattern.

2003-06-18 Thread Eirik Kjølsrud
Hi Nagendra, and thanks for your suggestion ! That kinda worked... Using var var-namedatePatternStrict/var-name var-valuedd.MM./var-value /var resulted in the datefield being correctly validated to the dd.MM. format, but I would also like it

[OT] 101 was: Re: Good Struts-tiles example?

2003-06-18 Thread Gemes Tibor
[EMAIL PROTECTED] rta: In addition to the below, I have found the following resource, Tiles 101/201, by Patrick Peak to be very helpful: This is my weak knowledge of the English culture, but cannot figure out what the 101 means in this context. I've seen this plenty of times, and I am

Re: [OT] 101 was: Re: Good Struts-tiles example?

2003-06-18 Thread Alen Ribic
hehe :) 101 == beginner / introductory --Alen - Original Message - From: Gemes Tibor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:52 PM Subject: [OT] 101 was: Re: Good Struts-tiles example? [EMAIL PROTECTED] rta: In addition to

[BeanUtils] Map can or not?

2003-06-18 Thread Andrew Hill
Quick yes/no question for the more experienced bean utilisers out there: Are PropertyUtils.populate() and getProperty() (etc...) smart enough to work with a Map instead of a bean and use the property name as a key into it? - To

RE: Same boring copy/paste technique

2003-06-18 Thread Thornton Scott Contractor CADRE/WGTD
For the presentation layer, look up the template pattern in the GOF book. class BaseSaveAction { abstract protected ActionForward doUpdate(...); abstract protected ActionForward doDelete(...); protected ActionForward doCancel(...) { return mapping.getInputForward(); } public

Re: [OT] 101 was: Re: Good Struts-tiles example?

2003-06-18 Thread Alen Ribic
Also, good Acronym collection!!! http://mini.net/tcl/49 ciao --Alen - Original Message - From: Alen Ribic [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:58 PM Subject: Re: [OT] 101 was: Re: Good Struts-tiles example? hehe :) 101

Re: [BeanUtils] Map can or not?

2003-06-18 Thread Gemes Tibor
Andrew Hill rta: Are PropertyUtils.populate() and getProperty() (etc...) smart enough to work with a Map instead of a bean and use the property name as a key into it? yes - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [OT] 101 was: Re: Good Struts-tiles example?

2003-06-18 Thread Gemes Tibor
Alen Ribic rta: hehe :) 101 == beginner / introductory Thx. :) Tib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [BeanUtils] Map can or not?

2003-06-18 Thread Andrew Hill
Cool. So if I wanted an ActionForm but the fieldname (or some of them) on it were determined only at runtime I could simply make all the 'runtime' fields be nested properties of that ActionForm property that had the Map? input name=bob.anything... public void setBob(Map bob)... public Map

Re: [BeanUtils] Map can or not?

2003-06-18 Thread Kris Schneider
Well, I'd say maybe. Something like the following will work: PropertyUtils.getProperty(map, key) But this won't: PropertyUtils.copyProperties(destMap, srcMap) Nor will: BeanUtils.populate(destMap, srcMap) And if you do: PropertyUtils.describe(map) You get: {class=null, empty=null}

RE: [OT] 101 was: Re: Good Struts-tiles example?

2003-06-18 Thread Andrew Hill
I think a lot of course structures at universities and colleges will use that as a course number. ie: Computer Science 101 hmmm How long till universities offer Struts 101 as a standard unit? ;-) Ive learnt more comsci concepts since I started using struts a year ago than I ever did at Uni or

Re: [OT] 101 was: Re: Good Struts-tiles example?

2003-06-18 Thread Alen Ribic
we had it too as a BSc course. Programming 101 - Pascal :) (Loved it...not... :)) --Alen - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:28 PM Subject: RE: [OT] 101 was: Re: Good Struts-tiles

Passing multiple ActionForms to an Action

2003-06-18 Thread Paul McCulloch
Hi, I'm a struts newbie, so forgive me if this is a FAQ. Is there a way to submit multiple ActionForms to a single Action? I'm trying to implement search functionality on the same page as the view's primary function. I think an example would help... Consider a simplified ticket booking system.

Re: Logging in struts.

2003-06-18 Thread Simon Kelly
Actually, I have a confession to make. I was nothing to do with the logging in the end. I was porting everything over from an earlier struts, to 1.0.2, and was using execute() instead of perform(). Changed them all over and it now works fine. I'm just gonna nip out the back and shoot myself!

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-18 Thread Ted Husted
James Mitchell wrote: I get so tired of hearing of this Struts version of PHP or ASP. Sorry guys, you just can't build a controller with a page by page scripting technology. Have you looked at Maverick, James? http://mav.sourceforge.net/ They apparently have .NET and .PHP versions that use

Re: [OT] 101 was: Re: Good Struts-tiles example?

2003-06-18 Thread Mark Lowe
On Wednesday, Jun 18, 2003, at 12:52 Europe/London, Gemes Tibor wrote: [EMAIL PROTECTED] írta: In addition to the below, I have found the following resource, Tiles 101/201, by Patrick Peak to be very helpful: This is my weak knowledge of the English culture, but cannot figure out what the

RE: [BeanUtils] Map can or not?

2003-06-18 Thread Kris Schneider
Is this something that might be handled by a normal mapped property with an additional property for getting the names of all the dynamic fields? public Object getDynamicField(String key) { return this.map.get(key); } public void setDynamicField(String key, Object value) { this.map.put(key,

My View Is Messy

2003-06-18 Thread Aaron Longwell
Morning everyone, I have been working on an event manager application in Struts for about 3 days. I'm just getting to the point of displaying a monthly calendar full of events. I finished up the JSP last night, and it's a mess. First, there's a lot of code in it. For example, to print out the

RE: [BeanUtils] Map can or not?

2003-06-18 Thread Andrew Hill
snip But your JSP doesn't know the field names ahead of time, so it can't ask for them by name, right? So maybe something like this would work: /snip Nah mate. Not using JSP. In this case Im actually traversing an xhtml DOM and doing a getProperty() to get values when I encounter input elements

RE: My View Is Messy

2003-06-18 Thread Andrew Hill
snip (serializing to XML just to reserialize to HTML seems like an unnecessary performance hit) /snip Yeh, Id imagine it can get pretty expensive when the server is under heavy load. I wouldnt want to do that for amazon.com type sites ... although actually for xslt, I think the modern browsers

Re: Validator documentation

2003-06-18 Thread David Graham
Hello, I'm looking for an exaustive documentation of the struts validator's rules defined in validator-rules.xml. Where can I find the name, values and meaning of heach variable the rules can take ? Neither : http://jakarta.apache.org/struts/userGuide/dev_validator.html nor the javadoc

Re: My View Is Messy

2003-06-18 Thread Aaron Longwell
Andrew, 2 things. First, is there a good tag reference (similar to the Struts docs) for the JSTL tags online? I've never worked with JSTL before. Second, I've looked at the stxx web site, and it looks like an intelligent system on the other hand... it looks like it might add a good chunk

Re: Token in struts and session bean.... problem with the framework ?

2003-06-18 Thread David Gagnon
Hi all thanks for your answers. I was indeed talking about ActionForm (sorry we use to call that a bean here :-)). What I understand from our discussion is: -Thant I Can use javascript to avoid duplicate submit: Works well when deployed in a trusted environment like intranet. (But no

html:link/ w/out a href??

2003-06-18 Thread Ben Anderson
I have a form with 2 buttons. I know I can handle this ok using the dispatch property. But, what I'd rather do (so I don't have to put ugly query strings in my links) is use javascript. What I'm wondering is, if there's a way to get action - link resolution that the html:link/ tag gives me

RE: My View Is Messy

2003-06-18 Thread Andrew Hill
Afraid my knowledge of both is strictly second-hand. Havent used either! Sorry :-( Im sure you can find jstl info online though, whats google return for it? -Original Message- From: Aaron Longwell [mailto:[EMAIL PROTECTED] Sent: Wednesday, 18 June 2003 21:50 To: Struts Users Mailing

Re: Token in struts and session bean.... problem with the framework ?

2003-06-18 Thread David Graham
Hi all thanks for your answers. I was indeed talking about ActionForm (sorry we use to call that a bean here :-)). What I understand from our discussion is: -Thant I Can use javascript to avoid duplicate submit: Works well when deployed in a trusted environment like intranet. (But no server

Re: My View Is Messy

2003-06-18 Thread Aaron Longwell
Andrew, Found this: http://www.manning.com/bayern/appendixA.pdf From a new book JSTL in Action. Aaron Andrew Hill wrote: Afraid my knowledge of both is strictly second-hand. Havent used either! Sorry :-( Im sure you can find jstl info online though, whats google return for it? -Original

Re: Same boring copy/paste technique

2003-06-18 Thread Alen Ribic
Hi Scott How will this fit into the presentation layer? I'm just trying to get my mind around it. :) Could you perhaps give me a simple example/code snippet please? (preferably keeping Struts framework in mind.) I'm just not very familiar with the template pattern in theory nor in practice.

ActionForm 'reset' method being called when JSP is rendered

2003-06-18 Thread Jerry Jalenak
I'm seeing some odd behaviour with one of my actions. If anyone can explain this I'd sure appreciate it Here's what I've got - in struts-config I have an ActionForm that is shared by two Actions. The ActionForm is created in session scope by the first action, and referenced by the second

Re: html:link/ w/out a href??

2003-06-18 Thread Gemes Tibor
Ben Anderson rta: I have a form with 2 buttons. I know I can handle this ok using the dispatch property. But, what I'd rather do (so I don't have to put ugly query strings in my links) is use javascript. What I'm wondering is, if there's a way to get action - link resolution that the

Re: [BeanUtils] Map can or not?

2003-06-18 Thread Gemes Tibor
Andrew Hill rta: Nah mate. Not using JSP. In this case Im actually traversing an xhtml DOM and doing a getProperty() to get values when I encounter input elements (etc...) based on the name attribute and using the result to set the value attribute. (or checked attribute or... whatever... for that

Re: [OT] 101 was: Re: Good Struts-tiles example?

2003-06-18 Thread Gemes Tibor
Mark Lowe rta: This is my weak knowledge of the English culture, but cannot figure out what the 101 means in this context. I've seen this plenty of times, and I am curious. cough ... You may find this is a product of american culture, not english. I'm english and I don't get it either... You

RE: [BeanUtils] Map can or not?

2003-06-18 Thread Andrew Hill
hehe Guess I was getting greedy. Still I got most of the info I needed. Many thanks to Kris and yourself for providing it. :-) -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED] Sent: Wednesday, 18 June 2003 21:34 To: Struts Users Mailing List Subject: Re: [BeanUtils] Map can

Re: html:link/ w/out a href??

2003-06-18 Thread Mark Lowe
could this do it...? script function clicked(path) { window.open(path,My Popup,); } /script a href=javascript:clicked('html:rewrite page=/yourAction.do /') On Wednesday, Jun 18, 2003, at 14:52 Europe/London, Ben Anderson wrote: I have a form with 2 buttons. I know I can handle

Re: My View Is Messy

2003-06-18 Thread Carl Walker
Maybe you should create some app-specfic custom tags. Here's one example. sched:table sched:entry start=4pm end=5pm event=Watch TV/ sched:entry start=5pm end=6pm event=Eat Dinner / /sched:table With RT values in a loop. sched:table logic:iterate id=event name=event_collection

Re: Token in struts and session bean.... problem with the framework ?

2003-06-18 Thread David Gagnon
Works well when deployed in a trusted environment like intranet. (But no server side protection...) You *always* need server side checking, even in trusted environments. Client side checking is a luxury for the user, nothing more. Agree :-) -There is no way to avoid ActionForm with session

How to use an IterateTag on an Enumerated value (eg session attributes/values) [struts 1.1RC2]

2003-06-18 Thread Brook, Andy
Hi all, I've been trying to provide a non-scriptlet solution to describing attributes and values in a session as part of a 'pretty debug page' using the iterate tag. It seems we need to use commons-IteratorUtils (Deprecated. Use commons-collections' IteratorUtils.asIterator(Enumeration).)

Re: My View Is Messy

2003-06-18 Thread Aaron Longwell
I've implemented some JSTL fixes to clean up my code a little. Here's what I've got now: fmt:formatDate value=${event.startDate} pattern=hh:mma/ - fmt:formatDate value=${event.endDate} pattern=hh:mma/ : c:out value=${event.title}/br/ c:out value=${event.description}/br/ Tags with EL are so much

Re: Help needed

2003-06-18 Thread Carlos Duque
Confirm via manual inspection whether or not the properties file actually exists on the system at the location specified. It most likely has not been included in the EAR that WSAD created. Most likely you will need to place the properties file in your source project directory as well. I

Best Practice [WAS: Logging in struts].

2003-06-18 Thread Hibbs, David
Anyone have any comments on using the log( String, int ) method on the ActionServlet? i.e. in an action getServlet().log( This is for debug only, 2 ); will only log the message if the debug level is 2 or greater... However, now that I'm looking at this in the user Guide (which I've had little

Re: Token in struts and session bean.... problem with the framework ?

2003-06-18 Thread Carl Walker
I think you will end up needing both the JavaScript and some server-side check because there are actually two problems you are facing. The first is if a panicky user repeatedly hits the 'Submit' button, sending multiple requests to the server. This is the race condition you describe. It's a

Problems with an inherited getter in a derived bean

2003-06-18 Thread Paul Harrison
In my struts application, I have a base bean with a set of basic properties (e.g. name) and then I create various derived beans with their own extra properties. I have a problem with the html:options tag in that if I try to read a property that is inherited from the base bean from a

Problem with tiles in struts rc2

2003-06-18 Thread teknokrat
The following tiles insert tiles:insert attribute=header / tiles:insert attribute=menubar/ now places the menubar above the header. Nothing i dio changes this and the behaviour was correct in RC1. Note that my menubar definition uses a ControllerUrl. bye

Re: Problems with an inherited getter in a derived bean

2003-06-18 Thread Alen Ribic
I'm doing the same thing in my current project successfully. No problems in my specializes class. e.g. public abstract class BaseBusinessBean implements java.io.Serializable { protected int id; protected String description; // getters/setters here } e.g. public class Category

Making Value Objects Into Form Objects

2003-06-18 Thread Weissman, Alan
Ok so I'm a little new to Struts but not J2EE and I've been noticing that my Value Objects that come out of EJB's in my data layer are the exact same objects as the ActionForms that are used by Strutsand I'm sure I'm not the first to notice this. So here's my question: How can I make one

Re: Making Value Objects Into Form Objects

2003-06-18 Thread Blake Whitmore
Alan, A good tool for this is the org.apache.commons.beanutils.BeanUtils.copyProperties() method. http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/BeanUtils.html --- Weissman, Alan [EMAIL PROTECTED] wrote: Ok so I'm a little new to Struts but not J2EE and I've

Re: Making Value Objects Into Form Objects

2003-06-18 Thread Alen Ribic
- Original Message - From: Weissman, Alan [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 5:07 PM Subject: Making Value Objects Into Form Objects Ok so I'm a little new to Struts but not J2EE and I've been noticing that my Value

Re: Making Value Objects Into Form Objects

2003-06-18 Thread Alen Ribic
Also check description and known subclasses http://jakarta.apache.org/struts/api/org/apache/struts/action/DynaActionForm .html --Alen - Original Message - From: Alen Ribic [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 5:15 PM Subject:

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-18 Thread James Mitchell
On Wednesday 18 June 2003 09:14, Ted Husted wrote: James Mitchell wrote: I get so tired of hearing of this Struts version of PHP or ASP. Sorry guys, you just can't build a controller with a page by page scripting technology. Have you looked at Maverick, James? As a matter of fact,

test

2003-06-18 Thread Lydia P
test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Making Value Objects Into Form Objects

2003-06-18 Thread Adam Hardy
Hi Alan, you could place the value bean in the form with a setValueObject() method on the form. In your JSP you could use indexed tags to get to the bean, e.g. for property getTitle() input id=mybean[0].title Adam Weissman, Alan wrote: Ok so I'm a little new to Struts but not J2EE and I've

RE: Making Value Objects Into Form Objects

2003-06-18 Thread Wendy Smoak
Alan wrote: Ok so I'm a little new to Struts but not J2EE and I've been noticing that my Value Objects that come out of EJB's in my data layer are the exact same objects as the ActionForms that are used by Strutsand I'm sure I'm not the first to notice this. It comes down to still

RE: Struts Menu question

2003-06-18 Thread Raible, Matt
The latest and greatest version of struts-menu has a roles attribute that will hide menus if you're not in the list of roles. BTW - you'll probably get a quicker response for struts-menu on the struts-menu mailing list. ;-) Matt -Original Message- From: [EMAIL PROTECTED]

Re: test

2003-06-18 Thread Ashish Kulkarni
passed :-) --- Lydia P [EMAIL PROTECTED] wrote: test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? SBC

  1   2   3   >