Oracle Weblogic Server (MOSC)

MOSC Banner

weblogic supports jsp code inside a javascript?

edited Jan 20, 2014 6:11AM in Oracle Weblogic Server (MOSC) 2 commentsAnswered
Hi,

 

Weblogic server 10.3.6 doesn’t display the result of jsp with <script> tag calling javascript which has jsp code.

 

*scriptTest.jsp

<script type="text/javascript" src="scriptTest.js"></script>

 

* script.js

<% int a = 100; %>

<%= a %>

 

In case of include tag, it works.

* includeTest.jsp

<%@ include file="includeTest.js"%>

 

* includeTest.js

<% int a = 100; %>

<%= a %>

è The result is 100

 

WebLogic supports jsp code inside javascript?

Customer said scriptTest.jsp works well on Tomcat.

 

Thanks in advance.

YH

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center