Skip to Content
author's profile photo Former Member
Former Member

Jsp error

Hi all,

i need some help with the code below wich i have in an jsp file:

<% if(a==1) { %>

show an tabstripitem

<% } else { %>


<% } %>

I am trying to use this to turn a tab in an tabstrip on or off depending on what role the have in the portal. when i use this for a buttonRow which is outside the tabstrip i works fine, but inside it throws errors... for example

C:/usr/sap/POT1/j2ee/j2ee_00/cluster/server/services/servlet_jsp/work/jspTemp/irj/root/WEB-INF/portal/portalapps/WRCJSPDYN_1.0/work/pagelet/ while expected } finally { ^

I hope someone can help me,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 17, 2003 at 08:26 PM

    Hi Max,

    If you are using this logic inside a <hbj:...> tag then you might want to check whether you can or not. I mean the best place to look is in the JAVA file generated by the J2EE engine from the JSP page you have written. The file is the one listed in the error:, check out line 1952 and see what code has been generated. My guess is the HTMLB tag doesn't like having a scriplet embedded in it.



    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.