[OT] Javascript in HTML events

2006-03-11 Thread Michael Jouravlev
I am cleaning up my Javascript code. First I made all functions having prefix, so they won't mix with others' functions. Then I noticed that DOJO uses one global variable dojo, and defines everything including functions inside it. I thought that was cool, and tried it myself, but it does not work.

remove ActionForm from session

2006-03-11 Thread Markus Demetz
Hi all, i have some ActionForms which I declared with a session scope. This because I validate them over more steps. After a completed task (i.e. registration) I would like to remove them to keep session small. is there a simple way to do that? thanks! markus

getting started

2006-03-11 Thread Carolina Rodríguez Getán
Hello!! I´m a student who wants to use Struts for the first time. I must develop a web application using Eclipse, Tomcat, Struts and Mysql, and I want to know which framework to use. I have read about Shale Framework, Action framework, and Spring framework, but I don´t know which one I have to

getting started

2006-03-11 Thread Carolina Rodríguez Getán
* Hello! I´m a Spanish student who wants to use Struts for the first time. I must develop a web application using Eclipse, Tomcat, Struts and Mysql, and I want to know which framework to use. I have read about Shale framework, Action framework and Spring framework, but I don´t know which one I

Re: [OT] Javascript in HTML events

2006-03-11 Thread Niall Pemberton
Yes but you have to create an object and assign it to your aaa var first, before assigning a variable value such as bbb Try var aaa = {}; Niall - Original Message - From: Michael Jouravlev [EMAIL PROTECTED] Sent: Saturday, March 11, 2006 8:34 AM I am cleaning up my Javascript

Re:getting started

2006-03-11 Thread starki78
Ciao Carolina, you don't need to use any of them. You will be busy enough to develop a application using Eclipse, Tomcat, Struts and Mysql as you have mentioned. The tomcat-eclipse integration is very nice so if you know the basics of struts you can begin with your development. Perhaps the most

Re:getting started

2006-03-11 Thread starki78
I forgot to mention that Hibernate is a very fine tool to learn the basics of java Database programming very deeply so if you have time beneath your studies you can learn most from Hibernate!! -- Initial Header --- From : Carolina Rodríguez Getán [EMAIL PROTECTED] To

Re: [shale] Tomahawk clay-config.xml help

2006-03-11 Thread Gary VanMatre
From: Richard Wallace [EMAIL PROTECTED] I'm trying to use some of the extended Tomahawk components and attributes in a Clay web page. The table is being configured with: component jsfid=instructorCourseReportTable extends=t:dataTable attributes set name=value value=[EMAIL

Re: [shale] Tomahawk clay-config.xml help

2006-03-11 Thread Gary VanMatre
From: Richard Wallace [EMAIL PROTECTED] But the forceId tag is being ignored. In the Tomahawk clay-config.xml file attached to this JIRA issue, https://issues.apache.org/jira/browse/TOMAHAWK-70, has the following: I think the forceId is being ignored because you need it on all

Re: [shale] Tomahawk clay-config.xml help

2006-03-11 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] But the forceId tag is being ignored. In the Tomahawk clay-config.xml file attached to this JIRA issue, https://issues.apache.org/jira/browse/TOMAHAWK-70, has the following: I think the forceId is being ignored because you

Beginner question about views and subviews in Struts Shale.

2006-03-11 Thread Marcio E Miranda
Hi, I've a few questions regarding how Shale handles views and suvbviews: 1. Why a redirect to somepage.faces (in the index.jsp for example) will output a blank screen. I used to do that in my regular My Faces application, but it doesn't seem to work with Shale. 2. Do I have to

Struts Shale documentation

2006-03-11 Thread Marcio E Miranda
Hi guys, I've read the material about Shale and Clay in the website but am still confused about the details (I tried to put something to work and it wasn't that easy). Could you point me to a more thorough documentation on these products? Do you know if there is a book or good tutorial

Re: [OT] Javascript in HTML events

2006-03-11 Thread Craig McClanahan
On 3/11/06, Niall Pemberton [EMAIL PROTECTED] wrote: Yes but you have to create an object and assign it to your aaa var first, before assigning a variable value such as bbb Try var aaa = {}; Niall I figured out how to do this by reading the beginning of the dojo.js.uncompressed

Re: Beginner question about views and subviews in Struts Shale.

2006-03-11 Thread Craig McClanahan
On 3/11/06, Marcio E Miranda [EMAIL PROTECTED] wrote: Hi, I've a few questions regarding how Shale handles views and suvbviews: 1. Why a redirect to somepage.faces (in the index.jsp for example) will output a blank screen. I used to do that in my regular My Faces application, but

Re: Struts Shale documentation

2006-03-11 Thread Craig McClanahan
On 3/11/06, Marcio E Miranda [EMAIL PROTECTED] wrote: Hi guys, I've read the material about Shale and Clay in the website but am still confused about the details (I tried to put something to work and it wasn't that easy). Could you point me to a more thorough documentation on these

Re: Struts Shale documentation

2006-03-11 Thread Craig McClanahan
On 3/11/06, Craig McClanahan [EMAIL PROTECTED] wrote: Brett McLaughlin has just published the first of what looks like a series of five articles on IBM DeveloperWorks about Shale ... I imagine that will be useful. http://www-128.ibm.com/developerworks/java/library/j-shale0228/?ca=drs-

Re: [OT] Javascript in HTML events

2006-03-11 Thread Michael Jouravlev
On 3/11/06, Craig McClanahan [EMAIL PROTECTED] wrote: On 3/11/06, Niall Pemberton [EMAIL PROTECTED] wrote: Yes but you have to create an object and assign it to your aaa var first, before assigning a variable value such as bbb Try var aaa = {}; Niall I figured out how

Re: remove ActionForm from session

2006-03-11 Thread Michael Jouravlev
On 3/11/06, Markus Demetz [EMAIL PROTECTED] wrote: Hi all, i have some ActionForms which I declared with a session scope. This because I validate them over more steps. After a completed task (i.e. registration) I would like to remove them to keep session small. is there a simple way to do

Re: [OT] Javascript in HTML events

2006-03-11 Thread Frank W. Zammetti
The Manning AJAX In Action book has an appendix that covers a great many of these useful techniques. Even if you have zero interest in AJAX, I haven't seen many books or articles that covers Javascript as well as this one. I consider myself fairly well-versed in Javascript, and even I picked

Auto Generated URLs

2006-03-11 Thread Jeff Thorne
I have noticed that many sites use virtual URLs such as http://www.imdb.com/title/tt0244244/ to point to some sort of profile on their website whether it be a movie, product, or user homepage. I was wondering what is the most efficient way to accomplish this programmatically in struts. I will

Re: Auto Generated URLs

2006-03-11 Thread Leon Rosenberg
I think the most easy ways are: use a servlet which maps to title and evaluate the last part of the path use a filter which does the same but maps the last part of the path to a parameter evaluate by the action later. regards leon On 3/11/06, Jeff Thorne [EMAIL PROTECTED] wrote: I have noticed

ApplicationResources.properties

2006-03-11 Thread Yariel Ramos Moreno
Hi: It is possible to have 2 keys with diferent names and the same value in the ApplicationResources.properties file and use it in the same action (LookupDispatchAction)?

Re: [OT] Javascript in HTML events

2006-03-11 Thread Michael Jouravlev
Thanks, Frank. I guess I need this book :) Before I get it, allow me one more question. I have a working XHR using GET (target is full URL with query params): ajaxRequest.open(GET, target, true); ajaxRequest.send(null); Now I want to switch to POST (url is base URL, params contain request

Re: [OT] Javascript in HTML events - RESOLVED

2006-03-11 Thread Michael Jouravlev
Resolved. Sorry to type the question before searching thoroughly. For POST request I had to set content-type header: ajaxRequest.setRequestHeader(Content-Type, application/x-www-form-urlencoded); Michael. On 3/11/06, Michael Jouravlev [EMAIL PROTECTED] wrote: I am cleaning up my Javascript

Re: [OT] Javascript in HTML events

2006-03-11 Thread Frank W. Zammetti
Weird, I can't explain that. I just did this as a test: htmlheadtitle/title script xhr = null; function test() { if (window.XMLHttpRequest) { xhr = new XMLHttpRequest(); } else { xhr = new ActiveXObject(Microsoft.XMLHTTP); } xhr.onreadystatechange = handler;

Re: ApplicationResources.properties

2006-03-11 Thread Wendy Smoak
On 3/11/06, Yariel Ramos Moreno [EMAIL PROTECTED] wrote: It is possible to have 2 keys with diferent names and the same value in the ApplicationResources.properties file and use it in the same action (LookupDispatchAction)? I don't see how it could work. It's a reverse lookup from the

Re: [OT] Javascript in HTML events

2006-03-11 Thread Michael Jouravlev
Frank, I am sorry you took time checking this. I guess, this recommendation Optimally, the reply should be to the thread started by the original question posting, and should have 'FIXED', 'RESOLVED' or an equally obvious tag in the subject line. from

Fw: ApplicationResources.properties

2006-03-11 Thread Yariel Ramos Moreno
Thanks very much Wendy Smoak!! That's what I want to know. I thought that it picked the key by it's name always, not by the value. Now I'm clear about it... - Original Message - From: Wendy Smoak To: Struts Users Mailing List Sent: Saturday, March 11, 2006 8:11 PM Subject: Re:

Re: [OT] Book recommendation requested: Object-Oriented Analysis and Design

2006-03-11 Thread Alexandre Poitras
On 3/9/06, Thor Kristensen [EMAIL PROTECTED] wrote: I found Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development, 3rd Edition by Craig Larman to be a good book on OO analysis and design. I second on that. Larman is great. Best

Passing value from one form to another

2006-03-11 Thread Yariel Ramos Moreno
Hi: I have a form with a text area (input) and whe I submit it, I need to show this value in the input field of another form. How can I do this?? Thanks in advance...

Re: Auto Generated URLs

2006-03-11 Thread Yu-Wei Chang
Using a URLWrite is the most easy way. You can use Apache mod_rewrite or UrlRewriteFilter for any J2EE compliant web application server. Apache mod_rewrite: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html UrlRewriteFilter https://urlrewrite.dev.java.net/ 2006/3/12, Jeff Thorne [EMAIL

Pass acute characters by URL

2006-03-11 Thread Yariel Ramos Moreno
Hello: How can I pass acute characters by URL? I try this: http://localhost:8080/newsSystem/menu.do?clasification=Programaci%C3%B3n where Programaci%C3%B3n is the equivalent of Programación. Then, when I show this in one Page it appears with those characters instead of the correct word.

Re: [OT] Javascript in HTML events

2006-03-11 Thread Niall Pemberton
On 3/11/06, Craig McClanahan [EMAIL PROTECTED] wrote: On 3/11/06, Niall Pemberton [EMAIL PROTECTED] wrote: Yes but you have to create an object and assign it to your aaa var first, before assigning a variable value such as bbb Try var aaa = {}; Niall I figured out how

Re: Auto Generated URLs

2006-03-11 Thread Laurie Harper
Jeff Thorne wrote: I have noticed that many sites use virtual URLs such as http://www.imdb.com/title/tt0244244/ to point to some sort of profile on their website whether it be a movie, product, or user homepage. I was wondering what is the most efficient way to accomplish this