RE: javascript html:fprm and getElementById

2005-06-26 Thread Nitish Kumar
Sorry for getting mixed up with terms, I didnt mean casting as in terms of Java, :) document.getElementById always returns object and then if we start treating it as frames or forms. It some times doesnt work.. Thanks and Regards, Nitish Kumar -Original Message- From: Frank W. Zam

Re: Form-Action combo

2005-06-26 Thread James Mitchell
Are you suggesting JSF is not MVC? -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx - Original Message - From: "Dakota Ja

Re: javascript html:fprm and getElementById

2005-06-26 Thread Nitesh
getElementById is indeed the "standards-compliant" method... but something which came in a bit late!!! Browser IE 5+ and Netscape 6+ support them... but the earlier version browsers does not support getElementById (since these browsers date before the standard was introduced. Also the standar

RE: javascript html:fprm and getElementById

2005-06-26 Thread Frank W. Zammetti
Remember that getElementById is the "standards-compliant" method, the others are not, IIRC. They of course work too, but when manipulating DOM objects, getElementById is supposed to be used, according to the current standards. Is there such a thing as casting in JS? I'm not sure. I don't thin

Re: javascript html:fprm and getElementById

2005-06-26 Thread Nitesh
Forgot to add that "myform" should be the form name! Nitesh - Original Message - From: "Nitesh" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, June 27, 2005 10:23 AM Subject: Re: javascript html:fprm and getElementById Try out... function setParam(mode) { docume

Re: javascript html:fprm and getElementById

2005-06-26 Thread Nitesh
Try out... function setParam(mode) { document.forms["myform"].action ="<%=(String) request.getAttribute("origin")%"+ mode+ ".do"; document.forms[0].submit(); } HTH Nitesh - Original Message - Hi, I need to change the action of my form on the fly. I use the following javascript: fu

Re: Form-Action combo

2005-06-26 Thread Dakota Jack
This is just like the intentional "mistake" made in JSF. There are real reasons for the MVC architecture. I am for flexibility but not for couping things together into spaghetti code once again. On 6/23/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > WebWork actions are somewhat like Struts

RE: javascript html:fprm and getElementById

2005-06-26 Thread Nitish Kumar
I geuss, some thing working or not working in JavaScript is a lot dependent on what version of what browser, are you using. Well, Any ways, from my previous experience with JavaScript, usually document.getElementById gives you an object, and casting it to form doesnt work all the time.. it is a

Re: Anyone going to JavaOne!

2005-06-26 Thread Duncan Mills
Right the presentation should be posted up - although you can follow a lot of my adventures with this stuff on the GroundBlog as well. www.groundside.com/blog Duncan David G. Friedman wrote: Duncan, Will a link to this presentation be posted to the Wiki (or this list) sometime after you prese

Re: Form-Action combo

2005-06-26 Thread Adam Hardy
Ted Husted wrote On 26/06/05 13:25: * http://struts.apache.org/roadmap.html [snip] With features like "extends", it becomes even easier to customize Struts to use your own default classes and implementation strategies. Once 1.3.x starts to ship, it will become even easier to use Struts like

Re: Anyone going to JavaOne!

2005-06-26 Thread Dakota Jack
Injection IoC replacing a lot of heavyweight crap is why Spring is "such a big [or little] deal". On 6/26/05, David G. Friedman <[EMAIL PROTECTED]> wrote: > Duncan, > > Will a link to this presentation be posted to the Wiki (or this list) > sometime after you present? I find the topic interestin

RE: Anyone going to JavaOne!

2005-06-26 Thread David G. Friedman
Duncan, Will a link to this presentation be posted to the Wiki (or this list) sometime after you present? I find the topic interesting, especially since I'm probably going to the Boston JUG in August to learn why Spring is supposed to be such a big deal. :) Regards, David -Original Message

Re: javascript html:fprm and getElementById

2005-06-26 Thread Frank W. Zammetti
Why do you believe this does not work? I just tried in IE and it worked fine, as I would expect since I do this sort of thing all the time. I would suggest throwing an alert before and after the code setting the action, display what the action of the form is. I did this and it does indeed ch

Re: javascript html:fprm and getElementById

2005-06-26 Thread Wendy Smoak
From: "Arash Bijanzadeh" <[EMAIL PROTECTED]> I need to change the action of my form on the fly. I use the following javascript: ... It works perfect under mozilla but not IE. I think the problem is that IE looks for Id in the name field of form and he couln't find it. If document.forms[0].s

Re: Anyone going to JavaOne!

2005-06-26 Thread Craig McClanahan
On 6/26/05, Van <[EMAIL PROTECTED]> wrote: > Also be there on Monday and Wednesday of the main conference. Planning > to attend Craig's Shale talk on Wednesday. I should note for completeness that I'm co-presenting this talk with David Geary. > > -Van > Craig

Re: servlet parameter is "validate" or "validating"?

2005-06-26 Thread Jan Bares
Thanks for explanation. I think that the servlet tags should contain version attribute/tag otherwise tags for 1.0 can be happily used by 1.1+. Regards, Jan > Those are both Struts 1.0 tutorials (when 'validate' would have been > correct.) And Struts in Action was published in 2003, before even S

Re: Anyone going to JavaOne!

2005-06-26 Thread Duncan Mills
Going and Speaking: TS-5068 - Spring and JavaServerâ„¢ Faces Technology: Synergy or Superfluous? I'll also be around at Van's BayChi event Duncan http://www.groundside.com/blog Richard Yee wrote: Anyone on the list going to JavaOne? -Richard

Re: configure DTD version to use for validation of struts-config

2005-06-26 Thread nicole.wollgast
Hi Laurie, I did not see that - thank you so much - you helpt me a lot. Regards, Nici Am Sonntag, den 26.06.2005, 07:19 -0400 schrieb Laurie Harper: > nicole.wollgast wrote: > > the DOCTYPE I am using is: > > > > > "-//Apache Software Foundation//DTD Struts Configuration > > 1.0//EN

Re: servlet parameter is "validate" or "validating"?

2005-06-26 Thread Wendy Smoak
From: "Jan Bares" <[EMAIL PROTECTED]> For instance: Struts in Action, table 2.7, Struts weaknesses (maybe typo, the book has many of them) In sample code from common-controls On samples found through google: http://www.netstore.ch/mesi/strutsTutorial/part3.html http://javaboutique.internet.com/

Re: Anyone going to JavaOne!

2005-06-26 Thread Van
On 6/25/05, Richard Yee <[EMAIL PROTECTED]> wrote: > Anyone on the list going to JavaOne? > > -Richard I'll be at the alumni events this evening and the Java Web Developer social gathering I organized after that from 8pm-10pm: http://www.baychi.org/bof/java/20050626/ Als

Re: Making cleaning after forwarding to page

2005-06-26 Thread atta-ur rehman
> Is that the cleanest way to do that? probably not but you be the judge :) http://forum.hibernate.org/viewtopic.php?t=927886 ATTA On 6/26/05, Larry Meadors <[EMAIL PROTECTED]> wrote: > That always struck me as a strange pattern when using hibernate - > using the view (the web layer) to manage

Re: Form-Action combo

2005-06-26 Thread Ted Husted
Support for this idea on the RoadMap for the 1.5.x zone under: "Consider a "smart" action type. The idea is that a command in Struts chain could look at the type indicated by the ActionMapping so both Action classes and ActionCommand implementations are supported. People could then mix-and-match

Re: Making cleaning after forwarding to page

2005-06-26 Thread Larry Meadors
That always struck me as a strange pattern when using hibernate - using the view (the web layer) to manage the data layer. Is that the cleanest way to do that? Larry On 6/26/05, atta-ur rehman <[EMAIL PROTECTED]> wrote: > Servlet filters would be way to go for this particular situation: > > ht

Re: Making cleaning after forwarding to page

2005-06-26 Thread atta-ur rehman
Servlet filters would be way to go for this particular situation: http://www.hibernate.org/43.html HTH. ATTA On 6/25/05, Ashraf Fouad <[EMAIL PROTECTED]> wrote: > I'm openning a hibernate session for each request, so I want to close this > after rendering data in JSP, as usually the objects are

Re: [FRIDAY] uh oh

2005-06-26 Thread Larry Meadors
On 6/24/05, Mark Galbreath <[EMAIL PROTECTED]> wrote: > muhahahaha. > > I know you've missed me! When I signed off the list a couple of years ago > (wow! that Yes Mark, we all missed you...but will aim more carefully next time, and make sure we have a clearer shot. Larry

Re: configure DTD version to use for validation of struts-config

2005-06-26 Thread Laurie Harper
nicole.wollgast wrote: the DOCTYPE I am using is: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> Your doctype declaration is inconsistent: you specify version 1.0 in the public identifier and 1.1 in the system identifier. You need to fix the public identifier to also referenc

Re: Strange error-page behavior

2005-06-26 Thread Bill Schneider
I've found that the directive in web.xml works only if the error is thrown from an Action, before the JSP is processed. Putting <%@ page errorPage="/errorPage.jsp" %> in your JSP may help. I believe Tomcat always uses RequestDispatcher.forward for directives, which breaks if the response is

Re: servlet parameter is "validate" or "validating"?

2005-06-26 Thread Jan Bares
> Where are you seeing 'validate' being used? (And what version of Struts are > you using?) All of the current docs, and the source, use 'validating'. > (But it defaults to true, so unless you're trying to turn off validation, > you don't need the init param.) (I know that there is "validate" op

javascript html:fprm and getElementById

2005-06-26 Thread Arash Bijanzadeh
Hi, I need to change the action of my form on the fly. I use the following javascript: function setParam(mode) { document.getElementById("myform").action ="<%=(String) request.getAttribute("origin")%>" + mode+ ".do"; document.forms[0].submit(); } and my form is : " styleId="myform" > It works p

Re: configure DTD version to use for validation of struts-config

2005-06-26 Thread nicole.wollgast
Hi Craig, Am Samstag, den 25.06.2005, 13:09 -0700 schrieb Craig McClanahan: > Nicole, > > Could you post the entire DOCTYPE declaration you are using? That > will help us give you an idea of what is actually going on here. the DOCTYPE I am using is: http://jakarta.apache.org/struts/dtds/struts

Re: native2ascii

2005-06-26 Thread haim
If you are using eclipse may I suggest the following http://propedit.sourceforge.jp/index_en.html Made my life a lot easer EROL TEZCAN wrote: Very Thanks Paul !! Now it works fine. I opened the old properties file, and saved it as UTF-8, and then run same native2ascii command. It encode al

[ANNOUNCE] Calyxo 0.9.0-rc2 released

2005-06-26 Thread Christoph Beck
The Calyxo development team is pleased to announce the availability of Calyxo 0.9.0-rc2! This is the second 0.9.0 candidate release, which comes with some new features (like conditional action filters, expression language based field checker) as well as improved documentation. The Calyxo Web Appl

Re: servlet parameter is "validate" or "validating"?

2005-06-26 Thread Wendy Smoak
From: "Jan Bares" <[EMAIL PROTECTED]> I am confused by parameters that can be passed to the ActionServlet from web.xml file. The documentation says, that the parameter name is "validating" but is seems that actual name is "validate": http://struts.apache.org/api/org/apache/struts/action/ActionSe