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/";);
>      }
> }
>
> Thank you.
>
> --
> 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