How do you pass a variable controllerClass name to the classicLayout.jsp in Tiles?

2002-10-02 Thread Lou Morin

I'm trying to pass the "controller" name from the tiles definition to the 
classicLayout.jsp.
The value does get passed to classicLayout.jsp ... but, the  tag has a 
problem with it
because the  <%=myController%> does not get substituded ... does anybody know how to 
get around this problem?

Thanks,
Lou


- In tiles-def.xml:

  
   
   
   
   
   
   
  
   


- In classicLayout.jsp:

   
 
 
 
   

   
 
 
   




Re: JSP page without form bean ?

2001-11-20 Thread Lou Morin

According to an article I just read in Java Developer Journal (November 
Issue) you can have a JSP Page without a form bean. The syntax is as 
follows:



The action would forward to the specific jsp ... in your case it would be :
return new ActionForward("/main.jsp");

Hope this helps.

Lou



>From: "Màris Orbidàns" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts-list (E-mail)" <[EMAIL PROTECTED]>
>Subject: JSP page without form bean ?
>Date: Tue, 20 Nov 2001 18:13:12 +0200
>
>Can I have a JSP form without a  form bean?
>I dont need the bean, there are no input fields on form.
>
>
>I defined action like this:
>
>   type="addressbook.MainAction"
>   input="/main.jsp"
>   >
> 
>
>But it threw an exception:
>   javax.servlet.ServletException: Cannot retrieve definition for
>form bean null
>
>
>Maris
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Using

2001-09-26 Thread Lou Morin

Make sure that "error.company.updatecollision" is defined correctly in your 
ApplicationResources.properties file ... I had a similar problem.

Lou

>From: David Winterfeldt <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: Using 
>Date: Wed, 26 Sep 2001 07:10:45 -0700 (PDT)
>
>If you don't declare the taglib at the top of the JSP,
>you won't get any error message because the JSP
>compiler will assume it is just some normal markup it
>doensn't have to deal with so it ignores it.  If the
>'foo' tag isn't defined in the html tag library, then
>when you tried to call html:foo you would get an
>undefined error message.
>
>David
>
>--- [EMAIL PROTECTED] wrote:
> > If she hadn't declare the struts-html.tld, she
> > should have a struts error
> > message
> > like "html tag is not defined"
> >
> > -Message d'origine-
> > De: Jonathan M Crater
> > [mailto:[EMAIL PROTECTED]]
> > Date: mercredi 26 septembre 2001 15:58
> > À: [EMAIL PROTECTED]
> > Objet: Re: Using 
> >
> >
> > are you declaring the html tag library before you
> > try to use the errors tag?
> >
> > <%@ taglib uri="/WEB-INF/struts-html.tld"
> > prefix="html" %>
> >
> > Anna Englund wrote:
> >
> > > Hi,
> > >
> > > I'm new with Struts and have a question on how to
> > > display error messages.
> > >
> > > In my Action I detect an error and take the
> > following
> > > actions:
> > > - Create an ArrayErrors object, errors
> > > - Add a new ArrayError to errors
> > > - Save errors in request
> > > - Retrieves the messages with  in my
> > jsp
> > >
> > > ...
> > > ActionErrors errors = new ActionErrors();
> > > errors.add(ActionErrors.GLOBAL_ERROR,
> > > new
> > ActionError("error.company.updatecollision"));
> > > saveErrors(request, errors);
> > > ...
> > >
> > > The problem I'm having is that the error message
> > is
> > > never displayed. I've added a java snippet in my
> > jsp
> > > that retrieves all attributes from the request and
> > > there I can find the bean
> > > org.apache.struts.action.ERROR which has a
> > property
> > > named org.apache.struts.action.GLOBAL_ERROR.
> > >
> > > I have no idea what I have done wrong. Any help
> > would
> > > be greatly appreciated.
> > > //Anna
> > >
> > > __
> > > Do You Yahoo!?
> > > Get email alerts & NEW webcam video instant
> > messaging with Yahoo!
> > Messenger. http://im.yahoo.com
> >
> >
> >
>
>
>__
>Do You Yahoo!?
>Get email alerts & NEW webcam video instant messaging with Yahoo! 
>Messenger. http://im.yahoo.com


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




HTML:FORM Action problem with proxy server

2001-09-23 Thread Lou Morin

I've been using Struts for the last couple of months and have been pretty 
much able to resolve all my problems by reading the documentation, 
tutorials, etc.
Now, I'm looking to deploy this to my ISP server. The ISP is translating my 
domain name as follows:

  "www.tarponweb.com" -->  "http://webappcabaret.com/tarponweb1";

My action-mappings are as follows:

  
 
 



My html form start like this:




When the form is displayed, if you view the generated source the action 
contains a "/tarponweb1" prefix as follows:

 

The Problem:

When the submit button is pressed the following URL is submitted:
 
"http://www.tarponweb.com/tarponweb1/SaintIgnatiusYouthGroup/Admin/AdminLogon.do";

This gets translatted to the following:
 
"http://webappcabaret.com/tarponweb1/tarponweb1/SaintIgnatiusYouthGroup/Admin/AdminLogon.do";

Hence, I get a page not found because of the double  
"/tarponweb1/tarponweb1" directories in the URL.

It looks like Struts is adding the "/tarponweb1" to the generated form 
because this is the context that it is in ... it does this in my test 
environment and it works because "localhost" does not get translated to 
"localhost/tarponweb1".

Is there a way to tell Struts not to add the Servlet Context to the form 
action?
Has anybody come across this problem?

Any help would be greatly appreciated!

Thanks,
Lou

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp