Just reread your question… I need to sleep more. Sorry. I’ll give it a try,
and comment again.

 

 

  _____  

De: Héctor López [mailto:[email protected]] 
Enviado el: viernes, 30 de enero de 2009 8:39
Para: 'Stripes Users List'
Asunto: Re: [Stripes-users] Clean URLs and stripes:form

 

Correct me if i’m wrong, but events are selected with the form buttons. HTML
form tags have no understanding of events, and I doubt this will work (POST
mechanics, and such):

 

<form action=”mybean.action?event=foo”>

 

You should use a button to select the correct event.

 

<s:submit name=”addNewToCatalog”>To Catalog</s:submit>

<s:submit name=”addNewToQuestionnaire”>To Questionnaire</s:submit>

 

Hope it helps.

 

 

  _____  

De: Cosmin Marginean [mailto:[email protected]] 
Enviado el: jueves, 29 de enero de 2009 22:05
Para: Stripes Users List
Asunto: [Stripes-users] Clean URLs and stripes:form

 

Hi guys,

I am using clean urls with one of my actions:

@UrlBinding("/admin/question.{$event}.action")
public class QuestionAction extends ActionBase {
    @DefaultHandler
    public Resolution addNewToCatalog() throws Exception {...}
    public Resolution addNewToQuestionnaire() throws Exception {...}
    ...
}

I've tried both of these:
<stripes:form action="/admin/question.addNewToCatalog.action">
and 
<stripes:form action="/admin/question.addNewToQuestionnaire.action">


However, they both get rendered in:
<form action="/app/admin/question.action" method="post">

Any clue why this happens? (I am using a 1.6 beta that I've just built a
couple of minutes ago).

Thanks in advance,
Cosmin

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to