Thanks for the detailed response. I can do it in the "classic" way, but I would have liked to make it more elegant. :)
In other words, clean urls are not going to work with <s:form> tags. As for the Jira ticket related to this, I understand that this won't be available very soon.

Thanks for looking into this.

Best regards,
Cosmin

It seems that this behaviour is intended. Stripes 1.5 acts the same way. The form tag has a lot of complicated tasks that don’t cope well with “add-in parameters” like {$event} or the like. Fortunately, if you use a <stripes:submit> and name it with your desired event, it works flawlessly. You won’t see the desired url, but it’ll work.

 

For a better explanation: http://www.stripesframework.org/jira/browse/STS-423

 

Regards.

 

 


De: Cosmin Marginean [mailto:[email protected]]
Enviado el: viernes, 30 de enero de 2009 9:23
Para: Stripes Users List
Asunto: Re: [Stripes-users] Clean URLs and stripes:form

 

I was relying on the article here http://greggbolinger.blogspot.com/2008/01/stripes-15-feature-clean-urls.html
where it clearly states Stripes JSP tags <s:url />, <s:link />, and <s:form /> all support Clean URLs.

That's why I was wondering if I'm doing something wrong.

Thanks,
Cosmin

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="">

 

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="">
and
<stripes:form action="">


However, they both get rendered in:
<form 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
  




Cosmin Marginean
 
-- 
cosminaru.ro

------------------------------------------------------------------------------ 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


Cosmin Marginean

-- 
cosminaru.ro
------------------------------------------------------------------------------
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