Switch between applications

2006-02-06 Thread Marcio Ghiraldelli
I can´t switch between applications: Struts 2.8, Tomcat 5.5.7 Two actions from distinct applications: /neoAdmin/blabla.do /neoLetter/bloblo.do struts-config.xml from neoAdmin (application 1): Then, error: message Invalid path /neoLetter/bloblo

MVC + ORM

2006-02-10 Thread Marcio Ghiraldelli
I´m using Struts 1.2.8 with Hibernate 3.0.5 and I´m doubt with some concept designs for ORM with MVC: A Hibernate session get's instantiated in my DAO constructor (Model). Later on, the JSP (View) catches the Hibernate persisted objects populated in the request or session by the Control

ActionForm String[]

2006-02-14 Thread Marcio Ghiraldelli
Hello, I am working with a dyanmic form, that generates n checkboxes (for each row of my set). Using a String[] type in the action form, I´d been able to retrieve the data. Now, I´m trying to pre-populate these checkbox values correctly, via ActionForm reset method, but can´t figur

Template action include

2006-03-07 Thread Marcio Ghiraldelli
Hello, I am including an Struts action inside an JSP file, passed by GET as an "action" attribute, exposing with bean taglib: GET: template.jsp?action=List.do template.jsp: (...) page="<%=request.getParameter("action")%>" /> (...) but I ne

Re: Template action include

2006-03-07 Thread Marcio Ghiraldelli
g to TLD, the attribute URL can´t accept any expression" - Original Message - From: "Michael Jouravlev" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, March 07, 2006 3:11 PM Subject: Re: Template action include Do or not work for

Re: Template action include

2006-03-07 Thread Marcio Ghiraldelli
ot;Michael Jouravlev" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, March 07, 2006 4:22 PM Subject: Re: Template action include On 3/7/06, Marcio Ghiraldelli <[EMAIL PROTECTED]> wrote: worked ok, it keep the request values and integrate ok the out

Re: Template action include

2006-03-07 Thread Marcio Ghiraldelli
quot; uri="http://java.sun.com/jsp/jstl/core"; %> Now it doens't complains with the expression and worked perfectly! Thanks! - Original Message - From: "Marcio Ghiraldelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday

Struts 1.2 Roles

2006-03-20 Thread Marcio Ghiraldelli
Hello, the atribute "roles" in an actionMapping configuration works perfectly, deniyng access to unauthorized users. Is there an way to redirect to a login page, instead showing a forbidden error page, like I can do in the web.xml, where a login and an error page can be configured?

Strange Form Reset Behavior

2006-03-22 Thread Marcio Ghiraldelli
Hello, I am facing a strange ActionForm Reset behavior with Struts 1.2: I want after submit a form, redirect via controler to the same form (so the user can submit it subsequently times). Should the normal behavior be: 1) Controler receives the first request (Action.do)

Re: Strange Form Reset Behavior

2006-03-23 Thread Marcio Ghiraldelli
If you want to just return to the same page after you submit, then simply provide that as the return value in your Action and have it mapped just like you would for going to any other page in your flow. There is no difference what so ever. Maybe I'm confused what you are trying to accomplish?

Re: Strange Form Reset Behavior

2006-03-23 Thread Marcio Ghiraldelli
without using request? The form instance is only created in the view! - puzzled! - - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, March 23, 2006 10:13

Re: Strange Form Reset Behavior

2006-03-23 Thread Marcio Ghiraldelli
Cool name="Form" scope="request" - Original Message - From: "Marcio Ghiraldelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, March 23, 2006 11:05 AM Sub

Cookie

2006-03-29 Thread Marcio Ghiraldelli
How do I unset a Cookie with a Struts Action?

Basic template

2005-11-07 Thread Marcio Ghiraldelli
Hello, What would be the best aproach without hurting MVC framework in having one central "template.jsp" and inserting into it Struts actions, such as: The usual

Re: Basic template

2005-11-07 Thread Marcio Ghiraldelli
: "Michael Jouravlev" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, November 07, 2005 3:06 PM Subject: Re: Basic template On 11/7/05, Marcio Ghiraldelli <[EMAIL PROTECTED]> wrote: Hello, What would be the best aproach without hurt

AJAX Recursive Tree

2005-11-11 Thread Marcio Ghiraldelli
Hello! Just for not reinventing the wheel, does anybody has a simple tutorial or source for an AJAX/Struts recursive tree?

Taglibs

2005-11-11 Thread Marcio Ghiraldelli
Good resume of avaible open-source taglibs. Perfectly for a "Struts, now what" situation. :) http://java-source.net/open-source/jsp-tag-libraries

Re: [OT] AJAX Recursive Tree

2005-11-14 Thread Marcio Ghiraldelli
- From: "Laurie Harper" <[EMAIL PROTECTED]> To: Sent: Friday, November 11, 2005 11:44 PM Subject: Re: [OT] AJAX Recursive Tree Marcio Ghiraldelli wrote: Hello! Just for not reinventing the wheel, does anybody has a simple tutorial or source for an AJAX/Struts recursi

Re: A simple question about web design

2005-11-16 Thread Marcio Ghiraldelli
Look for "Prizetags" Tree Taglib. It was the most "elegant" way I found to do it... an MVC web tree implementation. - Original Message - From: "Comain Chen" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 16, 2005 1:27 PM Subject: A simple question about web design Hey, I am a

Form Bean population

2005-11-17 Thread Marcio Ghiraldelli
I need to populate a a form-bean with a collection for an instance. Wich is the better place to do it: 1) Into the form-bean reset() method or 2) In an Action before the jsp call ? - To unsubscribe, e-

Struts UTF-8

2006-01-16 Thread Marcio Ghiraldelli
I am trying to use UTF-8 in my Tomcat 5.5 / Struts 1.2.7 app, but my form beans shows "??" chars in place of international chars. 1) My JSP's has the UTF-8 encoding declaration <[EMAIL PROTECTED] pageEncoding="UTF-8"%> 2) The Tomcat java proccess is running with UTF-8 option:

Re: Struts UTF-8

2006-01-16 Thread Marcio Ghiraldelli
in web.xml you add setCharaterEncoding com.bhb.servlet.filter.ServletCharacterEncodingFilter charset 8859_1 hope this helps. -Original Message- From: Marcio Ghiraldelli [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 13:38 To: user@struts.apache.org Subject: Struts UTF-8