2

I'm using a Jboss5/Spring/Struts implementation, and I'm not familiar enough with JSP technology to know how to do this. Is this even possible?

1
  • Can you explain in more detail what you're trying to do? Commented Feb 9, 2010 at 23:34

1 Answer 1

5

You need to set the correct content-type

<%@ page contentType="text/javascript" %>

… but other than that, JavaScript (like HTML) is just text.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.