I'm trying to do the exact same thing but it isn't working.  Here is my
config:

<filter>
    <display-name>Stripes Filter</display-name>
    <filter-name>StripesFilter</filter-name>
    <filter-class>
      net.sourceforge.stripes.controller.StripesFilter
    </filter-class>
    <init-param>
      <param-name>Extension.Packages</param-name>
      <param-value>com.publishgeek.web.context,com.stripersist</param-value>
    </init-param>
    <init-param>
      <param-name>ActionResolver.Packages</param-name>
      <param-value>com.publishgeek.web.action</param-value>
    </init-param>
  </filter>

I have a Book entity and when I try and go to an edit page like

http://localhost:8080/app/action/book/edit/1

@UrlBinding("/action/book/{$event}/{book}")

It doesn't work.  My Book object is null.  Saving a book from a form works
just fine.

Gregg

On Tue, Jun 10, 2008 at 2:45 PM, Alan Gutierrez <[EMAIL PROTECTED]> wrote:

> It works. Amazing. Thank you.
>
> On Jun 10, 2008, at 2:05 PM, Aaron Porter wrote:
>
> > Alan,
> > Try
> > /Article.action?article=1
> >
> > The type converter binds to the entity, not the id.
> >
> > Aaron
> >
> >
> > Alan Gutierrez wrote:
> >> I'm working with Stripersist.
> >>
> >> I'm able to save an entity. But, I can't figure out the necessary URL
> >> to retrieve it. I'm trying...
> >>
> >> /Article.action?article.id=1
> >>
> >> And it's not working.
> >>
> >> Here is the relevant part of the web.xml.
> >>
> >>      <filter>
> >>          <display-name>Stripes Filter</display-name>
> >>          <filter-name>StripesFilter</filter-name>
> >>          <filter-
> >> class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
> >>          <init-param>
> >>              <param-name>Extension.Packages</param-name>
> >>              <param-value>org.stripesstuff.stripersist</param-value>
> >>          </init-param>
> >>          <init-param>
> >>              <param-name>ActionResolver.Packages</param-name>
> >>              <param-value>com.agtrz.missive.stripes</param-value>
> >>          </init-param>
> >>      </filter>
> >>
> >> And the ActionBean class.
> >>
> >> public class ArticleActionBean
> >> implements ActionBean
> >> {
> >>      private ActionBeanContext context;
> >>
> >>      private Article article;
> >>
> >>      public ActionBeanContext getContext()
> >>      {
> >>          return context;
> >>      }
> >>
> >>      public void setContext(ActionBeanContext context)
> >>      {
> >>          this.context = context;
> >>      }
> >>
> >>      public Article getArticle()
> >>      {
> >>          return article;
> >>      }
> >>
> >>      public void setArticle(Article article)
> >>      {
> >>          this.article = article;
> >>      }
> >>
> >>      @DefaultHandler
> >>      public Resolution view()
> >>      {
> >>          return new ForwardResolution("/fck.jsp");
> >>      }
> >>
> >>      public Resolution save()
> >>      {
> >>          EntityManager em = Stripersist.getEntityManager();
> >>          em.persist(article);
> >>          return new RedirectResolution("http://www.google.com/";);
> >>      }
> >> }
>
> --
> Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504
> 717 1428
> Think New Orleans | http://thinknola.com/
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to