RE: problem with checkbox values and map backed properties

2005-05-02 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
hi, thanks, already solved, problem is that the map is (of course) fille up dynamically, and putting the code to reload it into the reset function is not possible, as the list depends on one of the other properties of the form. now i just say "if there's no property in the map, it's unset". kr,

Re: modules

2005-05-02 Thread Cliff Lam
http://struts.apache.org/userGuide/configuration.html#dd_config_modules =) Cliff - Original Message - From: "Lucas Bern" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, April 30, 2005 5:39 AM Subject: modules > > Any resource that explains how to configure modules

Re: problem with checkbox values and map backed properties

2005-05-02 Thread Cliff Lam
You can try to set a "unlicked value" in the reset function in the form. When the click-box is clicked the unlicked value will be covered. Hope this is useful for you. =) Cliff - Original Message - From: "Günther Wieser" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Satu

Re: [OT] Re: ajax proj

2005-05-02 Thread Craig McClanahan
On 5/2/05, Jason Lea <[EMAIL PROTECTED]> wrote: > Just a quick note/question about Craig's code below: > > This line > > ${category.label} > > will output the value with not xml filtering, so some values will cause > incorrect xml to be generated. > > You should use tag to filter the <,>,

Re: [OT] Re: ajax proj

2005-05-02 Thread Jason Lea
Just a quick note/question about Craig's code below: This line ${category.label} will output the value with not xml filtering, so some values will cause incorrect xml to be generated. You should use tag to filter the <,>,',", and & characters to output <, >, ', ", and & and the same for

Re: [OT] Re: ajax proj

2005-05-02 Thread Dave Newton
Woodchuck wrote: JSTL is da bomb! :) Does this mean... we can drop it? Eh, it's Friday, whaddya want. Seriously, I hate all that typing-JSP 2.0 may save my wrists. Dave "What do you mean, Monday?" Newton - To unsubscribe, e-ma

Re: [OT] Re: ajax proj

2005-05-02 Thread Craig McClanahan
On 5/2/05, Woodchuck <[EMAIL PROTECTED]> wrote: > JSTL is da bomb! :) Indeed it is. If you actually need to create XML in a response to an XmlHttpRequest call from an Ajax client side gadget :-), here's an approach using a JSP 2.0 page (in xml syntax) that uses JSTL to iterate over a result set

[OT] Re: ajax proj

2005-05-02 Thread Woodchuck
JSTL is da bomb! :) --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote the following on 5/2/2005 4:01 PM: > > > > The other aspect that is not discussed above is the removal of the > > complexity from the "page". This is where JSP, Taglibs, etc., come > > into the picture. And, I

Re: ajax proj

2005-05-02 Thread Dakota Jack
Yes, Rick, exactly! On 5/2/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote the following on 5/2/2005 4:01 PM: > > > > The other aspect that is not discussed above is the removal of the > > complexity from the "page". This is where JSP, Taglibs, etc., come > > into the picture. An

Re: ajax proj

2005-05-02 Thread Rick Reumann
Dakota Jack wrote the following on 5/2/2005 4:01 PM: The other aspect that is not discussed above is the removal of the complexity from the "page". This is where JSP, Taglibs, etc., come into the picture. And, I suspect, you two are talking about a combination of this problem (keeping the page si

Re: ajax proj

2005-05-02 Thread Dakota Jack
I thought I would toss in a couple of philosophical points about the HTML being created in the action. As we know, the "technologies" of Servlets and Taglibs essentially mask the fact that HTML is created other than on the page. I won't complete all my thinking on that. Just tossing that into th

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 3:33 PM: The fifth example in my webapp from the article shows this, Perfect thanks. I should have looked at all of these before posting:) -- Rick - To unsubscribe, e-mail: [EMAIL

AW: AW: Struts with PHP

2005-05-02 Thread Leon Rosenberg
Hehe, personally I still prefer LPC (mud languange - C clone) with closures which would remind you of Lisp!!! Regards Leon > -Ursprüngliche Nachricht- > Von: Dave Newton [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 2. Mai 2005 21:40 > An: Struts Users Mailing List > Betreff: Re: AW: St

AW: AW: Struts with PHP

2005-05-02 Thread Leon Rosenberg
Hehe, personally I still prefer LPC (mud languange - C clone) with closures which would remind you of Lisp!!! Regards Leon > -Ursprüngliche Nachricht- > Von: Dave Newton [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 2. Mai 2005 21:40 > An: Struts Users Mailing List > Betreff: Re: AW: St

Re: Setting focus on invalid form submission

2005-05-02 Thread Wendy Smoak
From: "Randy Kennedy" <[EMAIL PROTECTED]> > I am wondering if there is a way to set the focus after a form has been > validated through Struts and deemed invalid? Currently, focus always > goes to the first form element. Is there not a way to make this go to > the first INVALID form element? I

Re: AW: Struts with PHP

2005-05-02 Thread Dave Newton
Leon Rosenberg wrote: Ok, Dave, I beg my pardon, but I think the initual intent of the thread originator was far beyond struts/cobol bridges and such. I don't want to start new senseless threads about using third generation languages, when there are fifth generation languages available and so on.

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Woops, a couple of typos in there... When I talked about "...all the outputting of HTML would be removed...", I was referring to removing what you see now in the Action. And the first line of that JSP code should read: <% ArrayList sortedPresidentsList = (ArrayList)request.getAttribute("sortedPr

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Sure! :) Basically view the entire server portion as one piece... at the end of whatever it is that it does, it's returning HTML (whether it's a complete page, as usual, or just a snippet, like with Ajax techniques usually). Whether that HTML is written directly to response in an Action or a JSP

AW: Struts with PHP

2005-05-02 Thread Leon Rosenberg
Ok, Dave, I beg my pardon, but I think the initual intent of the thread originator was far beyond struts/cobol bridges and such. I don't want to start new senseless threads about using third generation languages, when there are fifth generation languages available and so on. So please forgive me, a

AW: Struts with PHP

2005-05-02 Thread Leon Rosenberg
Ok, Dave, I beg my pardon, but I think the initual intent of the thread originator was far beyond struts/cobol bridges and such. I don't want to start new senseless threads about using third generation languages, when there are fifth generation languages available and so on. So please forgive me, a

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 2:53 PM: I think most people would tell you to forward to a JSP to generate what really amounts to just a snippet of HTML... I'm confused though, you can do that? In other words you can make an XMLHttpRequest from one JSP that goes to an Action a

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 2:53 PM: Sometimes I think we all get so wrapped up in trying to achieve the perfect architecture that we overcomplicate things... amen brotha' Preaching to the choir:) -- Rick - T

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Hmm... well, if I was doing something like that in real life I might well do it from the Action :) That doesn't make it the generally accepted "right answer' thought. I think most people would tell you to forward to a JSP to generate what really amounts to just a snippet of HTML... IIRC, one of m

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Feel free, link away! If you like that, I suggest taking a peak at the ajaxtags... it's even better when you don't have to write the code yourself, just throw an entry in a config file :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mo

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 2:18 PM: Glad your enjoying it Rick! I hope you find something useful in it too. :) I see in your examples you make the note about writing the HTML in your Action is bad form, but I'm curious then how you handle this in real life. For example, lo

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 2:18 PM: Glad your enjoying it Rick! I hope you find something useful in it too. :) I like learning from examples and your examples ARE AWESOME If you don't mind, I'm going to link your article from Struttin With Struts http://www.reumann.

Re: Setting focus on invalid form submission

2005-05-02 Thread Brady Hegberg
I think this would have to be done with Javascript. And it might be a bit tricky determining what the first invalid element was. I think it would involve setting javascript variables and then looping through the page looking for the first one with an error. Unless there's a way to do it with the

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Glad your enjoying it Rick! I hope you find something useful in it too. :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, May 2, 2005 2:00 pm, Rick Reumann said: > Thanks for your Ajax/Struts PDF Frank. Reading it right now. Good st

Re: ajax proj

2005-05-02 Thread Rick Reumann
Thanks for your Ajax/Struts PDF Frank. Reading it right now. Good stuff. Frank W. Zammetti wrote the following on 5/2/2005 1:40 PM: Because of some technical difficulties that are being worked on (not with AjaxTags itself though), there is no official download available yet, of the updated taglib o

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Because of some technical difficulties that are being worked on (not with AjaxTags itself though), there is no official download available yet, of the updated taglib or the sample app. You would get it in exploded format as well, but that's probably not a big deal to anyone. If you want to play w

ajax proj

2005-05-02 Thread Sergey Livanov
Frank, Where can I find ajaxsample.war ? -- С уважением, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts with PHP

2005-05-02 Thread Andres Almiray
There is also another project that can help: http://www.mojavelinux.com/projects/studs/ Be aware that this is a reimplementation of Struts in PHP. Also it is possible from PHP to invoke Java code, or even open a socket connection and do some kind of marshalling; but I think that is much more comp

Re: Struts with PHP

2005-05-02 Thread Robin Ericsson
Craig McClanahan wrote: http://jcp.org/en/jsr/detai?id=223 The objectives of this JSR include the ability to connect the object models of a scripting language (with PHP being an obvious target) and a Java virtual machine. Servlet containers make a natural place to integrate this sort of functina

RE: Struts with PHP

2005-05-02 Thread Frank W. Zammetti
You know boys and girls, this just goes to show... DO NOT stick your nose in a conversation that you don't have enough knowledge to contribute intelligently to :) As I said in my first post, I don't have much experience with PHP... I made some incorrect assumptions about it and how it works, and t

Re: Struts with PHP

2005-05-02 Thread Frank W. Zammetti
Oh great, now all those out-of-work COBOL programmers are going to be useful again, making it even MORE difficult for us Java guys to find work! Thanks a lot Dave! LOL ;) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, May 2, 2005 1

Re: Struts with PHP

2005-05-02 Thread Craig McClanahan
On 5/2/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks... I'm working right now with PHP... > > Is it possible to combine PHP with struts? I mean, instead to JSP, use PHP. For reasons discussed by several people in this thread, information sharing between the Java logic and the PHP log

Re: Struts with PHP

2005-05-02 Thread Dave Newton
Frank W. Zammetti wrote: Yeah, you raise a fair point, maybe I didn't think it through enough... I'm not sure how much session really matters, but I think request does... I mean, I have an HttpServletRequest object that I populate in an Action, and let's assume I can forward that to a PHP page, it'

Re: Struts with PHP

2005-05-02 Thread Dave Newton
Leon Rosenberg wrote: Well, I'm not saying this is possible either... But after all, people manage to do Struts + XML/XSLT without JSP. So why not with PHP ? Yes, by generating XML out of the action or jsp, and adding an XSLT transformer. How do you want to share any variables with a php scri

Re: Struts with PHP

2005-05-02 Thread Joe Germuska
At 6:18 PM +0200 5/2/05, Stéphane Zuckerman wrote: > On 5/2/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: Hi folks... I'm working right now with PHP... Is it possible to combine PHP with struts? I mean, instead to JSP, use PHP. Folashade Adeyosoye a écrit : hmm, good question, but i would not t

Re: Use of Javascript [was] Re: AJAX: Whoa, Nellie!

2005-05-02 Thread Craig McClanahan
On 5/2/05, Sergey Livanov <[EMAIL PROTECTED]> wrote: > > I liked the smartclient technology very much! It's great! > Just wondering if there will be a similar possibility in > Java Server Faces? > Can I combine the capabilities of JSF and AJAX ? Yes. The general idea is that you encapsulate the

RE: Struts with PHP

2005-05-02 Thread Folashade Adeyosoye
Completely not what is been discussed. Php.mvc is a framework on its own, doing what struts does, not interaction between PHP and Struts. -Original Message- From: Kris Barnhoorn [mailto:[EMAIL PROTECTED] Sent: Monday, May 02, 2005 12:28 PM To: 'Struts Users Mailing List'; 'Rafael Taboa

RE: Struts with PHP

2005-05-02 Thread Folashade Adeyosoye
Am assuming here that there is some sort of Servlets container or application server that runs Java/Struts and there is another PHP server all running on the same machine/box. Please explain how both containers would manage ONE session when a user logs in and pass/manage information between each ot

RE: Struts with PHP

2005-05-02 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
you can get parameters and headers (as they are part of http and included in the http request), but no chance to get attributes, they only exist in the virtual machine. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, May 02, 2005 6:30 PM To: Struts User

RE: Struts with PHP

2005-05-02 Thread Frank W. Zammetti
Yeah, you raise a fair point, maybe I didn't think it through enough... I'm not sure how much session really matters, but I think request does... I mean, I have an HttpServletRequest object that I populate in an Action, and let's assume I can forward that to a PHP page, it's still a Java object. Y

Re: Struts with PHP

2005-05-02 Thread Frank W. Zammetti
I presume one can get at the parameters, attributes and headers of the request object in a PHP script, no? As long as you can do that, then you should be able to replace JSP pages with PHP pages, sans the taglibs of course, which, as some people seem to forget, are an OPTIONAL element of Struts :)

RE: Struts with PHP

2005-05-02 Thread Folashade Adeyosoye
Because they are Oranges and Apples... XML/XSLT are mainly file/processors that produces HTML that are universally recognized by almost all servers. -Original Message- From: Stéphane Zuckerman [mailto:[EMAIL PROTECTED] Sent: Monday, May 02, 2005 12:19 PM To: Struts Users Mailing List Su

RE: Struts with PHP

2005-05-02 Thread Kris Barnhoorn
http://www.phpmvc.net/ is a php port of struts just info. Not used or tested it. Kris. -Oorspronkelijk bericht- Van: Rafael Taboada [mailto:[EMAIL PROTECTED] Verzonden: maandag 2 mei 2005 17:59 Aan: Struts List Onderwerp: Struts with PHP Hi folks... I'm working right now with PHP...

RE: Struts with PHP

2005-05-02 Thread Folashade Adeyosoye
I don't see how you would be able to forward to a PHP page and have all the fields work, one thing to consider is they do not share the same session. Struts is a java framework, that has jar files etc, a PHP server would not know what to do with them. -Original Message- From: Frank W. Za

Re: Struts with PHP

2005-05-02 Thread Leon Rosenberg
> Well, I'm not saying this is possible either... But after all, people > manage to do Struts + XML/XSLT without JSP. So why not with PHP ? Yes, by generating XML out of the action or jsp, and adding an XSLT transformer. How do you want to share any variables with a php script? And, after all

[OT] Sun RI JSF 1.1 VS myfaces 1.09

2005-05-02 Thread Jimmy Emmanual
All, Just wondering if anyone has used both and prefer one over the other. If so, why? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts with PHP

2005-05-02 Thread =?ISO-8859-1?Q?St=E9phane_Zuckerman?=
> On 5/2/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > >> Hi folks... I'm working right now with PHP... >> >> Is it possible to combine PHP with struts? I mean, instead to JSP, use PHP. >> Folashade Adeyosoye a écrit : hmm, good question, but i would not think so, one system developed in struts

Re: Struts with PHP

2005-05-02 Thread Frank W. Zammetti
Actually, while I don't know much about PHP, I would say it *better* be possible :) Struts is, by and large, the "C" in MVC (some parts arguably cross boundaries, but as a generality...), so if I can't swap in a different "M" and "V", there's probably something wrong. I think it's probably a give

Re: Struts with PHP

2005-05-02 Thread Folashade Adeyosoye
hmm, good question, but i would not think so, one system developed in struts can call a PHP and vise-visa, but i dont think they can be intergrated. 1. PHP has a diff processor compared to java/jsp/struts On 5/2/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks... I'm working right now

Struts with PHP

2005-05-02 Thread Rafael Taboada
Hi folks... I'm working right now with PHP... Is it possible to combine PHP with struts? I mean, instead to JSP, use PHP. thanks -- Rafael Taboada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Setting focus on invalid form submission

2005-05-02 Thread Randy Kennedy
Relatively new to the list, so I apologize if this has already been submitted. I am wondering if there is a way to set the focus after a form has been validated through Struts and deemed invalid? Currently, focus always goes to the first form element. Is there not a way to make this go to th

RE: ANOTHER IDE

2005-05-02 Thread Mathew, Manoj
Hi Any idea if I can download TOgetherJ for free? -Original Message- From: Folashade Adeyosoye [mailto:[EMAIL PROTECTED] Sent: Monday, May 02, 2005 10:29 AM To: Struts Users Mailing List; Rafael Taboada Subject: Re: ANOTHER IDE This might not be in the free realm, but give JBuilder 200

Re: ANOTHER IDE

2005-05-02 Thread Lee Harrington
I like Eclipse with MyEclipse. MyEclips is a $30 per year subscription, but well worth it. Lee On 5/2/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks... > > I'm using NetBeans as IDE. But i want to know if there is another > powerful IDE that supports working with struts... > > Net

Re: ANOTHER IDE

2005-05-02 Thread Folashade Adeyosoye
This might not be in the free realm, but give JBuilder 2005 a try... On 5/2/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks... > > I'm using NetBeans as IDE. But i want to know if there is another > powerful IDE that supports working with struts... > > Netbeans can do ant build for m

ANOTHER IDE

2005-05-02 Thread Rafael Taboada
Hi folks... I'm using NetBeans as IDE. But i want to know if there is another powerful IDE that supports working with struts... Netbeans can do ant build for me. Is there another powerful IDE? or better?? thanks for ur cooperation -- Rafael Taboada --

RE: [OT] Survey - Tell me what you think about Struts.

2005-05-02 Thread Barnett, Brian W.
I addressed the "stuffing up of any useful CVS functionality" by using Jalopy source code formatter. http://jalopy.sourceforge.net. The key is for someone to specify the source code formatting rules, usually the defaults are close enough for most. Jalopy provides "export" functionality, so all you

Re: Use of Javascript [was] Re: AJAX: Whoa, Nellie!

2005-05-02 Thread Sergey Livanov
I liked the smartclient technology very much! It's great! Just wondering if there will be a similar possibility in Java Server Faces? Can I combine the capabilities of JSF and AJAX ? RR> Jesse Alexander (KBSA 21) wrote the following on 4/19/2005 5:30 AM: >> I also think that a well-designed web

Re: ActionForm key in request/session

2005-05-02 Thread Dave Newton
Frank W. Zammetti wrote: Fair point, at least as far as params go :) I never noticed the getParameterMap() method to be honest. The wonders of an API larger than... well, something Really Big. I didn't know it was there either until today when I thought to myself "nobody's ever written that b

Re: ActionForm key in request/session

2005-05-02 Thread Frank W. Zammetti
Fair point, at least as far as params go :) I never noticed the getParameterMap() method to be honest. The methods in RequestUtils (and the one in SessionUtils) came from the fact that during debugging I (and I think most of us) have a need to easily see what's coming in with a request. So, I wi

Use of Javascript [was] Re: AJAX: Whoa, Nellie!

2005-05-02 Thread Rick Reumann
Jesse Alexander (KBSA 21) wrote the following on 4/19/2005 5:30 AM: I also think that a well-designed web-UI does not need JS at all... Sorry to jump on the train late, but the above is completely BS. If you want to use standard HTML, then there will be some things you will HAVE to do with Javasc

Re: ActionForm key in request/session

2005-05-02 Thread Dave Newton
Frank W. Zammetti wrote: Alternatively, you could use the Commons Servlet packages' getRequestParameter(), getRequestHeaders() and getRequestAttributes() methods of the RequestUtils class, and if you need it there is also a getSessionAttributes() method in SessionUtils (I know because I added a

how do I mix modules and tiles ?

2005-05-02 Thread marc
I have made two test project's, one where I use modules and one where I use tiles. And they both work fin. Now for my prodution project I what to mix the two. But I dont what to use a tiles-def.xml for each modul. I what to make a "head" modul, that contains a header tile, a bottom tile, a cent