0

I just want to create a file where I can test code idea's in.
Basically I want to save a test.jsp file to my file system then open that up with a browser and have it execute the jsp code contained.

Is that possible?

Here's a simple test that I'm using ( it doesn't work of course ) ideas?

<html>
<head>
</head>
<body>
	<% alert("Test1");%>
</body>
</html>

What is the minimum I have to do for it to execute the script part?
The more advanced part that I'm working towards is to test scripts before I add them to my project.

Example

<html>
<head>
</head>
<body>
<% java.util.regex.Pattern xss = Pattern.compile( ".*<\\s*script.*|.*<\\s*\\/script.*|.*script\\:.*|.*on[a-z]\\w*\\s*=.*"); %>
<% if (xss.matches(xss.pattern(), "<script> test </script>") == true ){
	alert ("TEST");
 }%>
</body>
</html>
3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by Sadun89
1

No, you need Tomcat or any other Java server/container, you have to provide proper folder structure for project to be deployed on server/container

0

Yes, minimum part is just a container like Tomcat or Glassfish....
& Java Environment is must ;)
I recommend tomcat is good for you because of you consider that minimum part..
If you going to add some script to your project its better to use some IDE like netbeans or eclipse

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.