Author Topic: Using JSP for multiple file types  (Read 2247 times)


  • Community Member
  • Posts: 47
  • Hero Points: 2
Using JSP for multiple file types
« on: May 04, 2007, 02:14:26 pm »
Traditionally, JSP files have been used to generate HTML output.  However, it's perfectly valid to use them for other types of output, such as XML, CSS, or JS.  For example, I might want to generate JavaScript that is dependent on various input attributes and so on; rather than coding a JavaScript outputter in Java, I'd just do it in using JSP syntax, perhaps in a .jsp_js file.

The catch, of course, is that SlickEdit doesn't recognize JSP syntax in a JavaScript file, so I lose syntax coloring, tag lookups, etc.

Has anyone done anything like this?  Got any tips?