Skip to Content

Canu00B4t resolve <jsp:include...> inside Java Script

@ all

the following jsp:include is not resolved and I get a syntax error when browsing:

<SCRIPT LANGUAGE="JavaScript"> <!-- function buildFrame() { <jsp:include page="/servlet/com.iflx.web6020.servlets.iflxPutSession" flush="true"><jsp:param name="LoginIsActive" value="J"></jsp:param></jsp:include>; mainSeite = '<jsp:include page="/servlet/com.iflx.web6020.servlets.iflxGetSession" flush="true"><jsp:param name="Field" value="SuccessMain"></jsp:param></jsp:include>';


Can anybody help me with that issue?


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2004 at 07:42 AM


    i have never tried to use JSP-tags within a JavaScript-function.

    I would rather guess that the tags won't be interpreted in JavaScript but only in the plain html-part of your web code.

    Best Regards, Astrid

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 13, 2004 at 09:43 AM

    Hi Jurgen,

    The reason for this error is you are mixing Javascript with JSP.I suggest you to handle the server side JSP code seperately by providing some exact parameter.More over please remove the comment below javascript tag.The code will be intepreted at runtime as html plus java code where jsp code available.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.