[Helma-user] action that looks like a file

tobias.schaefer at orf.at tobias.schaefer at orf.at
Thu Oct 5 16:24:08 CEST 2006


hi anton

for a generic approach you can use the following lines:

   var servlet = res.getServletResponse();
   servlet.setHeader(
      "Content-disposition", 
      "attachment; filename=feed.xml"
   );

hth,
tobi


Anton Pirker wrote:
> hi list!
> 
> i want to make an action that looks like a file.
> something like this:
> 
> http://www.example.com/user/anton/feed.xml
> 
> the action would be "feed.xml"
> how can i achieve this?
> it is not possible to make a js-function that is called
> "feed.xml_action()" 
> 
> thanks for your help!
> 
> ciao
> Anton
> 
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user




More information about the Helma-user mailing list