You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Thompson <mr...@instanton.com> on 2001/06/13 15:24:35 UTC

action help

Ok, I'm feeling totally lost.

Here is a snippet from my struts-config.xml

  <action-mappings>
    <action path="/servicemanager"
            type="com.instanton.secureex.web.action.service.ListServiceAction">
            <forward name="success" path="/service/listservices.jsp"/>
    </action>
    ...
    </action-mappings>

now in a jsp page I have
        <html:link page="/servicemanager.do">
            <bean:message key="main.servicemanager.title"/>
        </html:link>

I do have /*.do aliased for the ActionServlet.

Why is this not working?  I am using TomCat 4.0b1 in Suns j2ee reference container.  Thanks in advance.
    --m

Michael R. Thompson
http://www.instanton.com
512.439.3815

Re: action help

Posted by Mike Thompson <mr...@instanton.com>.
Yes, after a long and arduous upgrade (I think I stumbled on a few bugs :( )
It seems to be working now with the new beta 2 container.  Thanks all for
your help and attention.
    --m

----- Original Message -----
From: "Craig R. McClanahan" <cr...@apache.org>
To: <st...@jakarta.apache.org>
Sent: Wednesday, June 13, 2001 1:30 PM
Subject: Re: action help


>
>
> On Wed, 13 Jun 2001, Martin Cooper wrote:
>
> > I believe the url-pattern in your servlet mapping should be *.do, not
/*.do.
> >
>
> There was a bug in the deploytool for J2EE RI 1.3-beta-1 that caused these
> mappings to be created incorrectly ("/*.do").  It's been fixed in the
> recently released 1.3-beta-2.
>
> > Hope this helps.
> >
> > --
> > Martin Cooper
> >
>
> Craig
>
>
> >
> > ----- Original Message -----
> > From: "Mike Thompson" <mr...@instanton.com>
> > To: <st...@jakarta.apache.org>
> > Sent: Wednesday, June 13, 2001 6:24 AM
> > Subject: action help
> >
> >
> > Ok, I'm feeling totally lost.
> >
> > Here is a snippet from my struts-config.xml
> >
> >   <action-mappings>
> >     <action path="/servicemanager"
> >
> > type="com.instanton.secureex.web.action.service.ListServiceAction">
> >             <forward name="success" path="/service/listservices.jsp"/>
> >     </action>
> >     ...
> >     </action-mappings>
> >
> > now in a jsp page I have
> >         <html:link page="/servicemanager.do">
> >             <bean:message key="main.servicemanager.title"/>
> >         </html:link>
> >
> > I do have /*.do aliased for the ActionServlet.
> >
> > Why is this not working?  I am using TomCat 4.0b1 in Suns j2ee reference
> > container.  Thanks in advance.
> >     --m
> >
> > Michael R. Thompson
> > http://www.instanton.com <http://www.instanton.com>
> > 512.439.3815
> >
> >
> >
> >


Re: action help

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Wed, 13 Jun 2001, Martin Cooper wrote:

> I believe the url-pattern in your servlet mapping should be *.do, not /*.do.
> 

There was a bug in the deploytool for J2EE RI 1.3-beta-1 that caused these
mappings to be created incorrectly ("/*.do").  It's been fixed in the
recently released 1.3-beta-2.

> Hope this helps.
> 
> --
> Martin Cooper
> 

Craig


> 
> ----- Original Message ----- 
> From: "Mike Thompson" <mr...@instanton.com>
> To: <st...@jakarta.apache.org>
> Sent: Wednesday, June 13, 2001 6:24 AM
> Subject: action help
> 
> 
> Ok, I'm feeling totally lost.
>  
> Here is a snippet from my struts-config.xml
>  
>   <action-mappings>
>     <action path="/servicemanager"
>  
> type="com.instanton.secureex.web.action.service.ListServiceAction">
>             <forward name="success" path="/service/listservices.jsp"/>
>     </action>
>     ...
>     </action-mappings>
>  
> now in a jsp page I have
>         <html:link page="/servicemanager.do">
>             <bean:message key="main.servicemanager.title"/>
>         </html:link>
> 
> I do have /*.do aliased for the ActionServlet.
>  
> Why is this not working?  I am using TomCat 4.0b1 in Suns j2ee reference
> container.  Thanks in advance.
>     --m
>  
> Michael R. Thompson
> http://www.instanton.com <http://www.instanton.com> 
> 512.439.3815
> 
> 
> 
> 


Re: action help

Posted by Martin Cooper <ma...@tumbleweed.com>.
I believe the url-pattern in your servlet mapping should be *.do, not /*.do.

Hope this helps.

--
Martin Cooper


----- Original Message ----- 
From: "Mike Thompson" <mr...@instanton.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, June 13, 2001 6:24 AM
Subject: action help


Ok, I'm feeling totally lost.
 
Here is a snippet from my struts-config.xml
 
  <action-mappings>
    <action path="/servicemanager"
 
type="com.instanton.secureex.web.action.service.ListServiceAction">
            <forward name="success" path="/service/listservices.jsp"/>
    </action>
    ...
    </action-mappings>
 
now in a jsp page I have
        <html:link page="/servicemanager.do">
            <bean:message key="main.servicemanager.title"/>
        </html:link>

I do have /*.do aliased for the ActionServlet.
 
Why is this not working?  I am using TomCat 4.0b1 in Suns j2ee reference
container.  Thanks in advance.
    --m
 
Michael R. Thompson
http://www.instanton.com <http://www.instanton.com> 
512.439.3815




Re: action help

Posted by Mike Thompson <mr...@instanton.com>.
but it's not a form in the page, just a standard hyperlink...
    --m

  ----- Original Message ----- 
  From: Linnea Ahlbeck 
  To: struts-user@jakarta.apache.org 
  Sent: Wednesday, June 13, 2001 8:56 AM
  Subject: Re: action help



  Hi!

  Use the <html:form action=""> tag instead of the <html:link=""> tag in the jsp page; 

  <html:form action="/servicemanager.do">

  Maby this can help???

  /L
    ----- Original Message ----- 
    From: Mike Thompson 
    To: struts-user@jakarta.apache.org 
    Sent: Wednesday, June 13, 2001 3:24 PM
    Subject: action help


    Ok, I'm feeling totally lost.

    Here is a snippet from my struts-config.xml

      <action-mappings>
        <action path="/servicemanager"
                type="com.instanton.secureex.web.action.service.ListServiceAction">
                <forward name="success" path="/service/listservices.jsp"/>
        </action>
        ...
        </action-mappings>

    now in a jsp page I have
            <html:link page="/servicemanager.do">
                <bean:message key="main.servicemanager.title"/>
            </html:link>

    I do have /*.do aliased for the ActionServlet.

    Why is this not working?  I am using TomCat 4.0b1 in Suns j2ee reference container.  Thanks in advance.
        --m

    Michael R. Thompson
    http://www.instanton.com
    512.439.3815

Re: action help

Posted by Linnea Ahlbeck <li...@appium.com>.
Hi!

Use the <html:form action=""> tag instead of the <html:link=""> tag in the jsp page; 

<html:form action="/servicemanager.do">

Maby this can help???

/L
  ----- Original Message ----- 
  From: Mike Thompson 
  To: struts-user@jakarta.apache.org 
  Sent: Wednesday, June 13, 2001 3:24 PM
  Subject: action help


  Ok, I'm feeling totally lost.
   
  Here is a snippet from my struts-config.xml
   
    <action-mappings>
      <action path="/servicemanager"
              type="com.instanton.secureex.web.action.service.ListServiceAction">
              <forward name="success" path="/service/listservices.jsp"/>
      </action>
      ...
      </action-mappings>
   
  now in a jsp page I have
          <html:link page="/servicemanager.do">
              <bean:message key="main.servicemanager.title"/>
          </html:link>

  I do have /*.do aliased for the ActionServlet.
   
  Why is this not working?  I am using TomCat 4.0b1 in Suns j2ee reference container.  Thanks in advance.
      --m
   
  Michael R. Thompson
  http://www.instanton.com
  512.439.3815