Invalid JSP editor warning

The following JSP will produce the following warning:
The attribute value tag "c:choose" should end with "/>".
================ badWarning.jsp ===============
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<!-- The problem appears to be related to the choose tag being inside the span tag -->
<span class='<c:choose><c:when test="true"> even </c:when><c:otherwise> odd </c:otherwise></c:choose>' >
some text
</span>
==========================================

Thanks for the catch, this will be fixed for the final 2.0 release, later this month.
In the mean time, an alternative (simpler?) way is:
<span class='${test ? "even" : "odd"}'>
some text
</span>

Similar Messages

  • Nitro jsp editor cannot parse certain Style sections

    This may be asking a bit much but.. We have a piece of jsp that looks like
    below. Nitro's jsp editor really doent like the scriptlet in the middle of
    the <Style> (it doesnt like <% if(sniffer.is_ie4up) { %>)
    We see the following warning:
    Warning org.w3c.css.sac.CSSException: Encountered "<" at line 14, column
    1.
    Was expecting one of:
    <STYLE TYPE="text/css">
    #cmButtons { position:absolute; top:<%=nMapTop + nNavBarHeight%>;
    left:<%=nMapLeft + dimMap.width + 2%>; z-index:2; visibility:visible}
    #mapLabel { position:absolute; top:<%=nMapTop - 23%>; left:<%=nMapLeft%>;
    z-index:2; visibility:visible}
    #mapImage { position:absolute; top:<%=nMapTop%>; left:<%=nMapLeft%>;
    z-index:3; visibility:visible}
    #mapNavBar { position:absolute; top:<%=nMapTop - 2%>; left:<%=nMapLeft +
    dimMap.width - 4%>; z-index:2; visibility:visible}
    #mapText { position:absolute; top:<%=nMapTop%>; left:5; z-index:1;
    visibility:visible}
    #debugText { position:absolute; top:<%=nMapTop + dimMap.height + 25%>;
    left:<%=nMapLeft%>; z-index:2; visibility:visible}
    #ruler { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    #target { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    #terraServer { position:absolute; top:0; left:0; z-index:9;
    visibility:hidden; background-color: #FCF9CD; }
    #mapquest { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    #tagging { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    #userPoint { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    <% if(sniffer.is_ie4up) { %>
    ..hdp { position:absolute; top:0; left:0; z-index:10; visibility:hidden;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: black; <%=strWidthHDP%> }
    ..hdp TABLE { background-color: white; }
    <% } else if(sniffer.is_gecko || sniffer.is_nav4up) { %>
    ..hdp { position:absolute; top:0; left:0; z-index:10; visibility:hidden;
    <%=strWidthHDP%> }
    ..hdp TABLE { background-color: lightgrey; }
    <% } %>
    ..hdp TD { font-family: arial, helvetica, sans-serif;
    font-size: 10pt; }
    ..fnt TD { font-family: arial, helvetica, sans-serif;
    font-size: 10pt; }
    ..menu1 { position:absolute; top:0; left:0; z-index:99; visibility:hidden; }
    ..menu1 TD { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
    10px; }
    </STYLE>

    This may be asking a bit much but.. We have a piece of jsp that looks like
    below. Nitro's jsp editor really doent like the scriptlet in the middle of
    the <Style> (it doesnt like <% if(sniffer.is_ie4up) { %>)
    We see the following warning:
    Warning org.w3c.css.sac.CSSException: Encountered "<" at line 14, column
    1.
    Was expecting one of:
    <STYLE TYPE="text/css">
    #cmButtons { position:absolute; top:<%=nMapTop + nNavBarHeight%>;
    left:<%=nMapLeft + dimMap.width + 2%>; z-index:2; visibility:visible}
    #mapLabel { position:absolute; top:<%=nMapTop - 23%>; left:<%=nMapLeft%>;
    z-index:2; visibility:visible}
    #mapImage { position:absolute; top:<%=nMapTop%>; left:<%=nMapLeft%>;
    z-index:3; visibility:visible}
    #mapNavBar { position:absolute; top:<%=nMapTop - 2%>; left:<%=nMapLeft +
    dimMap.width - 4%>; z-index:2; visibility:visible}
    #mapText { position:absolute; top:<%=nMapTop%>; left:5; z-index:1;
    visibility:visible}
    #debugText { position:absolute; top:<%=nMapTop + dimMap.height + 25%>;
    left:<%=nMapLeft%>; z-index:2; visibility:visible}
    #ruler { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    #target { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    #terraServer { position:absolute; top:0; left:0; z-index:9;
    visibility:hidden; background-color: #FCF9CD; }
    #mapquest { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    #tagging { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    #userPoint { position:absolute; top:0; left:0; z-index:9; visibility:hidden;
    background-color: #FCF9CD; }
    <% if(sniffer.is_ie4up) { %>
    ..hdp { position:absolute; top:0; left:0; z-index:10; visibility:hidden;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: black; <%=strWidthHDP%> }
    ..hdp TABLE { background-color: white; }
    <% } else if(sniffer.is_gecko || sniffer.is_nav4up) { %>
    ..hdp { position:absolute; top:0; left:0; z-index:10; visibility:hidden;
    <%=strWidthHDP%> }
    ..hdp TABLE { background-color: lightgrey; }
    <% } %>
    ..hdp TD { font-family: arial, helvetica, sans-serif;
    font-size: 10pt; }
    ..fnt TD { font-family: arial, helvetica, sans-serif;
    font-size: 10pt; }
    ..menu1 { position:absolute; top:0; left:0; z-index:99; visibility:hidden; }
    ..menu1 TD { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
    10px; }
    </STYLE>

  • Free JSP Editor Activation Problem with XP Pro

    I downloaded Free JSP Editor and installed on Windows XP Pro.
    But it asked me Order Id and Serial Number.
    So I received Order Id and Serial Number and entered them correctly,
    but it wasn't activated.
    (The message is Invalid Order Id.)
    I tried to activate it in other ways and it wasn't useful.
    On Windows 2000, It works fine.
    How can I resolve it?

    * NitroX license should be deactivated on the activated machine before it can be used on the second/new machine.
    NOTE: With only 1 activation of NitroX License you cannot activate it on two different systems.
    * In order to activate on Win XP you need to de-activate on Win 2000 system. And un-installing NitroX without de-activation will still retain your activation. The solution is to go back to your old system and "install NitroX" > "Launch NitroX" > "goto Help > NitroX License" dialog and de-activate.
    M7 Support

  • JSP-Editor not working properly

    Hi everybody,
    I am working with ISA5.0 and NWDI. I have checked out the Web-Module Project crm/isa/web/b2b.
    Now I would like to modify JSP-Files. Unfortonately the JSP-Editor is not working properly.
    The JSP-Editor cannot resolve references to Tag-Libraries like
    <%@ taglib uri="/isa" prefix="isa" %>
    Furthermore I get Errors with JSP-Includes
    <%@ include file="checksession.inc" %>
    The JSP-Editor does not show any other compile errors until the above mentioned errors are resolved.
    So the JSP-Editor does not help with compile errors.
    I have tried to use Lomboz instead, but due to the modularization in ISA5.0 and NWDI (ie the Taglibraries are defined in a separate module) I did not get it to work either.
    Does anybody have experience on how to get the JSP editor to work properly?
    Thanks for your help,
    Andreas

    Highlite the clip in the timeline, control click on it and choose "send to soundtrack as an audio file project" in the pop up menu. Don't do an "open with editor". This should work.
    If it doesn't and it's just the one clip, you could launch Soundtrack and then open that clip as an audio project . . . don't do a open with editor, just open it directly. Make your adjustment and save over writing the file with the new audio. You may want to copy the clip first as a backup. When you open your FCP project, you'll have to re-link the clip. Once you do it will show up with the new sound.

  • Error during activation of NitroX Free JSP Editor

    Thank you for downloading NitroX.
    If you experienced an error during the activation of the NitroX Free JSP Editor due to an earlier trial version already installed, please click the following link to activate the product and this will resolve the issue:
    https://devclub.m7.com/getFreeJsp.do
    If you have any other questions please do not hesitate to contact us.
    M7 Support

    I activated NitroX fine last night at home, but I tried it at work which uses a proxy server, and it's failing activation.I then tried manually pasting the code from the web site as mentioned in this post, but when I hit OK it just says that NitroX will not be available.
    I am having the same problem.

  • Save As in JSP editor

    The File -> Save As in the JSP Editor is disabled. Any clue why?

    Here are a few resources that might help:
    http://developer.java.sun.com/developer/technicalArticles/Intl/MultilingualJSP/
    http://www.sun.com/developers/gadc/technicalpublications/articles/iws6.html
    http://www.sun.com/developers/gadc/technicalpublications/articles/apache.html
    Hope this helps,
    John O'Conner

  • JSP editor ignores position attributes in style tag

    I have recently installed M7 NitroX for JSP and Struts evaluation build 366.
    When using the JSP editor to view the design of a jsp page that uses layers
    e.g. <div style="position:absolute; left: 100px; top: 100px;">sometext</div>
    The design view completely ignores the position attributes.
    Is this a know issue? If so, is there a workaround for displaying dhtml layers correctly?
    Thanks.

    Thanks for the post. This is a known issue that we will address in future versions of NitroX.

  • [JSF] JDeveloper comments in visual jsp editor

    hi,
    I have written a renderkit for JSF which use a FilteringResponseWriter in order to filter more characters than those who are filtered by escape attribute. And also to add filtering to components who don't have escape attribute.
    It works when i have my web application in my browser. But it doesn't work in the JDeveloper visual JSP editor.
    I have written a lot of comments like :
    <!-- oracle.DTE.BEFORE ..... -->
    <!-- oracle.DTR.BEGIN...-->
    and some <span ...> tags
    Where does the problem comes from ?
    Is it possible ton disable those elements in JDev configuration ?

    Not really - as I said, we are aiming for Summer/Middle of the year timeframe for the 905 release.
    Thanks
    Grant

  • Java or JSP editor ?

    please suggest me a good Java and JSP editor, which can be used to create plain java classes (java beans or servlet) and JSP pages.
    is NetBeans or Eclipse will fulfill my requirement ?or what else ?

    please suggest me a good Java and JSP editor, which
    can be used to create plain java classes (java beans
    or servlet) and JSP pages.
    Try a new one every week for the next several years and decide for yourself which you like best.
    There's enough of them to keep you occupied as our resident editor tester for the rest of your life even if no new ones were released every day or so.
    is NetBeans or Eclipse will fulfill my requirement
    ?or what else ?doubt have abt ur rekwaierements fur editer. plz respond asap.

  • Unable to open JSP files using Workshop JSP Editor 3.0

    Every time I try to open a JSP file in Workshop JSP Editor 3.0, I get the following error:
    Unable to create this part due to an internal error. Reason for the failure: Cannot open the specified document:
    null
    org.eclipse.ui.PartInitException: Cannot open the specified document:
    null
         at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.A(Unknown Source)
         at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.init(Unknown Source)
         at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:778)
         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
         at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:223)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2362)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
         at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
         at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2249)
         at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
         at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
         at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:98)
         at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:98)
         at org.eclipse.wst.common.navigator.internal.actions.ResourceOpenListener.open(ResourceOpenListener.java:58)
         at org.eclipse.wst.common.navigator.internal.views.extensions.CommonOpenService.open(CommonOpenService.java:63)
         at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:741)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
         at org.eclipse.core.runtime.Platform.run(Platform.java:783)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
         at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:739)
         at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:968)
         at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1067)
         at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:243)
         at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:238)
         at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:277)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
         at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
         at org.eclipse.core.launcher.Main.run(Main.java:973)
         at org.eclipse.core.launcher.Main.eclipse_main(Main.java:948)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:29)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    The jsp file is present in its directory, and the directory is not linked. Reinstalling BEA Workshop doesn't help. Any suggestions?

    Please post this question to the bea.workshop.developer.general newsgroup at http://newsgroups.bea.com/bea/forum.jspa?forumID=600000007
    Thanks
    Raj

  • Invalid Mark-up Warning - Overlapping or Unclosed Tag

    QUESTION:  When the following code is placed into a PHP document created by Dreamweaver an invalid mark-up warning is received and several of the HTML tags are highlighted with yellow.  According to the warning an overlapping or unclosed tag is present.  Unfortunately, I cannot find an overlapping or unclosed tag. 
    In an effort to determine the presence or absence of extraneous characters, I cut the code, placed it into a text file, and removed all formatting.  I then pasted it back into the document, saved the document, and still the invalid mark-up warning occurred.
    1) What is going on?
    2) Should I just ignore it?
    With the exception of an alignment problem of the headerInclude and Mainpage divisions everything appears fine.
    CODE:
    <body class="oneColElsCtr">
         <div id="container">
              <div id="headerInclude">
                   <?php include("header.php"); ?>   
              <!-- end #headerInclude --></div>
              <div id="mainContent">
                   <h1>The Include( ) Function</h1>   
                   <p>This is the content of my Mainpage.  The header to my Mainpage is created with a server-side include using the PHP include( ) function.</p>
               <!-- end #mainContent --></div>
           <!-- end #container --></div>
    </body>
    Roddy

    kiusau wrote:
    Yes, that appears to have fixed the problem.
    I am sorry to be so persistent, but the problem has returned.
    This time, however, with new insight:
    Though the mark-up error does not appear when the file is reopened after rebooting Dreamweaver, it does reappear when I open the file to be included.  In short, whatever is causing the mark-up error appears to require two files:  the one that contains the include( ) function, and the one that is included. 
    What I eventually thought to be a fluke appears to be a reoccurring phenomenon.  Alas!
    Any other suggestions?
    Roddy

  • Do JSP Variables in the JSP Editor support Generics?

    Do JSP Variables in the JSP Editor support Generics?
    For example List<Client> clients and then introspect all Variables in the Generic Type <Client>?

    Not yet. But you can always "manually" select the list element type in the smart editors. For example the c:forEach, logic:iterate, h:dataGrid smart editors allow you to specify the iteration variable type. Same thing when you insert a list variable in the page.
    M7 Support

  • JSP editor design palette in 10.3.2 not working

    Hi,
    Is there any way to enable the jsp editor Design Palette in Workspace Studio for WLP 10.3.2? I've added the Beehive NetUI, Beehive Controls, and Struts 1.2 facets to my portal web project, but the design palette for jsp editing is empty.
    Thanks.

    Thanks for that hint - the tags are in the palette now, but what does not work is autocompletion for expressions and all the nice netui wizards do not come up. Has this been removed in 10.3.2?
    With best regards,
    Florian
    Edited by: [email protected] on Mar 16, 2010 2:53 AM

  • Bug: JSP-Editor and Generics

    Hi,
    the JSP-Editor has problems with the usage of Generics in JSP-Pages.
    <%
    // without Generics it works fine
    List list1 = (List)request.getAttribute("myList");
    // with Generics the editor reports an error
    List<String> stringList = (List<String>)request.getAttribute("myList");
    %>
    Would be nice to have this fixed in the next release?
    Günther

    Simon,
    if there is a internal cache then bouncing JDeveloper or just the project would solve the problem.
    So just for me to understand the steps to reproduce:
    - create a template in public-html
    - move the template to WEB-INF
    - refresh project
    Is this all I need to do ?
    Frank

  • JSP-Editor / JDEV

    Hi,
    I develop the business logic with JDev but the Web-Designer wants to use an external HTML/JSP-Editor. Which tool works fine with JSPs and does not destroy any JSP content or the format and has a WYSIWYG mode ? (Frontpage seems to to have some problems with some JSP elemets and tries to change the format of my source code (indentation etc.)))
    Any recommendations are welcome.
    Klaus
    null

    How can I add FrontPage or DreamWaver to Tools Menu in JDeveloper in order to interface with HTML tools and JDeveloper quickly. (I saw this at Online Demo of JDeveloper)
    Thanks
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDev Team:
    I personally find DreamWeaver UltraDev to be very good with JSP/HTML code.. It doesn't corrupt any of my existing JSP code..
    Hope this helps, -Chris<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Acrobat 9.4.2 update breaks 'attach to email' functionality

    Everyone - The recent 9.4.2 CPSID_83708 Acrobat update has caused the 'attach to email' function not to work.  This is happening for at least two of my users whose computers are running  Windows XP Professional. I just installed the update on my Wind

  • IR Error

    An Interactive Reporting Service error has occurred.-Failed to acquire requested service. (2001) We're trying to create OLAP queries in IR to deploy through workspace. When I drill down on any dimension, after deploying to workspace, I get the generi

  • DHCP failed to give me an IP and OS X set my date to 2001/01/01

    Worked on my mbp for about 4 hours. Shutdown and came back home. No new software, update or whatever. Just synch'ed iPhone, Last.fm, Mail.app and some browsing. Turn it on and login. I'm asked to join a network (my wifi network that is the 1st one on

  • Awful previews of Photoshop CS5 jpg's in InDesign CS4

    Since this week I have Photoshop CS5. I save my pictures as eps with jpg preview. These pics look absolutely awful in InDesign CS4... Very jagged and low res. The pictures I save with Photoshop CS4 look good in InDesign CS4. I posted about this in th

  • Cannot create relationship between 2 BAPI based MBO

    Hello, I have 2 MBO-s based on 2 BAPI (FM) data sources. Both accept BP Number as a parameter. I want to create a relationship between them. However when I try (map the BP Number parameters) I get the following error: "Relationship has two mobile bus