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

Similar Messages

  • 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

  • BUG JSP editor jsp:attribute action

    Hello, there's a bug in JDeveloper.
    1. Create tag file
    <%@ tag pageEncoding="UTF-8"%>
    <%@ attribute name="x" fragment="true" required="true" %>
    2. Create JSP file
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@ taglib tagdir="/WEB-INF/tags/" prefix="tags"%>
    <tags:tagFile1>
    <jsp:attribute name="x">
    Hello
    </jsp:attribute>
    </tags:tagFile1>
    JDeveloper underlines the tag in red and says "Required attribute x is missing..." OC4J runtime behaviour is normal (if we ignore other issues with tag files). I am using JDeveloper 10.1.3.1.

    Hi,
    Put this code in the editor and see it will show you the preview
    =========================================
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <html>
    <body>
    Hello
    </body>
    </html>
    ============================================
    This will not show you a preview
    ===========================================
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="myBean" scope="application" class="com.cts.bean.User" />
    <hbj:content
         id="myContext">
    <hbj:page title="Kirupanand">
       <hbj:form id="myFormId" >
      <hbj:inputField type="String"  id="Getuser"
        size="30"  value="" maxlength="8"
        disabled="false">
       </hbj:inputField>
    <hbj:inputField  type="String"
    id="Displayuser"  size="30"
    value="<%=myBean.getUser()%>"
    maxlength="8"      disabled="false">
    </hbj:inputField>
    <hbj:button  id="Store"  text="Save"  width="125px"
    tooltip="Save User Name"  onClick="clientSave"
    disabled="false" design="STANDARD" />     
      </hbj:form>
    </hbj:page>
      </hbj:content>
    <html>
    <body>
    Hello
    </body>
    </html>
    ===================================================
    what does this mean? If you use HTMLB tags then you cannot see a preview. Not because of " <%@ taglib uri="tagLib" prefix="hbj" %> " this statement is used to tell to the program which executes the jsp that use this TagLib to understand what the component starting with hbj should do.

  • [Bug] [pagetemplate-metadata]  Was: [Bug] [JSP Editor]

    Edit:
    Ok the problem happens after you manually move pages and do a project refresh, the /META-INF/pagetemplate-metadata.xml file's content isn't updated and thus bad references show up everywhere in your project.
    ~ Simon
    Original:
    Hello JDeveloper team,
    Using JDeveloper TP2, the JSF editor show an error when you try to use something like
    <af:pageTemplate viewId="/WEB-INF/templates/detailBlock.jspx">It works fine at runtime though.
    Regards,
    ~ Simon

    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

  • How to register free jsp editor for eclipse 3.1

    When I attempt to register the free jsp editor I get the message "name already exists". I used the eclipse 3.0 version of the free jsp editor and now I would like to use the eclipse 3.1 version. How can I get the activation key for the eclipse 3.1 version?
    Thanks.

    Did you receive an email containing Order Id/Serial#?
    If not, send the email Id used for free editor registration to [email protected]
    FYI, you can reuse the same OrderID/Serial# with any version of eclipse & also switch between systems by deactivating the license (Help > NitroX License)

  • 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 which either act as a Plugin to Forte or independent and free

    I am in Search for JSP Editor Which can generate the Output and as well as enables me to view the backend JSP Code
    It can be either Plugin to forte or should be independent of any IDEs
    I know Eclipse has many plugins but not currently moving to any other IDEs
    But the most important Part is it should be Freeee
    Thanks in advance
    CSJakharia

    I am in Search for JSP Editor Which can generate the Output and as well as enables me to view the backend JSP Code
    It can be either Plugin to forte or should be independent of any IDEs
    I know Eclipse has many plugins but not currently moving to any other IDEs
    But the most important Part is it should be Freeee
    Thanks in advance
    CSJakharia

  • Simple and Free JSP Editor Plugin for Eclipse

    Can anyone direct me a Simple and Free JSP Editor Plugin for Eclipse ? Thanks

    You can just create JSP files with "Eclipse for Java EE".
    What do you expect of the plugin then?

  • Indentation Engines and JSP Editor

    With Java Studio Standard 5 update 1 the JSP Editor is set to apply the XML Indentation Engine. However, there are some problems:
    1. When clicking the Backspace button after an indentation generated due to a tag, the cursor goes back by only one space and not a tab.
    2. HTML tags are always written in capital letters. Unlike HTML editor which gives the option fo Code Completion with small letters JSP Editor does offer that option.
    Any help is greatly appreciated.
    Regards,
    Basel Mahdi

    1. Try ctrl-d
    2. NetBeans. 3.6 which uses the same core base as Sun Java Studio Standard, has this feature (lower case HTML for JSP pages). Future releases of Sun Java Studio may be built using the same core base as NetBeans 3.6 or a later version.

  • 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.

  • JDeveloper Line Compiler and Generics

    Hello all. Well it's great to finally have a fully Java 6 compatible JDeveloper. I have run into a problem with
    generics however. Consider the following code:
    public class MyMessageFactory
    public static <Type extends MyMessageType> Type getInstance()
    Type rtnObj;
    // some code
    return rtnObj;
    where MyMessageType is defined as an abstract class:
    public abstract class MyMessageType
    So far everything is good. When I refer to the above method in another class however, the line compiler complains that I am
    equating to an incompatible type:
    MyMessageImpl myMessageImpl = MyMessageFactory.getInstance();
    When I use NetBeans or Eclipse I do not get this error. However the JDeveloper line compiler forces me to use a cast:
    MyMessageImpl myMessageImpl = (MyMessageImpl)MyMessageFactory.getInstance();
    Anyone have any ideas on what may be wrong here?

    What is wrong is that there is a bug in Audit and also in the OJC compiler. Sorry about that. I filed bugs to have this fixed.
    Please use the cast to avoid the bugs.
    Keimpe Bronkhorst
    JDev IDE team

  • The content type for office excel 2007 in jsp page and the mime-type in  we

    Hi,
    In my system MS Office 2007 is installed. I am trying to generating excel sheets from JSP page by setting the content type "application/vnd.ms-excel" in jsp page and as well as in web.xml file. I am getting the below message
    The file you are trying to open, 'xxxxxxxx.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
    Then finally the excel file is opening and displaying properly. If in my system MS Office 2003 is installed , then the above message is not coming.
    I have changed the content type according to Excel 2007 <%@ page contentType= "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" %> and in web.xml file the mime type to
    <mime-mapping>
    <extension>xlsx</extension>
    <mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
    </mime-mapping>
    even the content type is changed according to office excel 2007 , i am getting the same above message.
    My client is asking not to display the above message. So how to prevent that message ?
    It's very great if any body reply me as soon as possible.

    Hi Akash,
    I am not using the POI. I am generating the excel sheet using the below code.
    <jsp:directive.page import="java.util.Map" />
    <jsp:directive.page import="lehman.ra.Report.ReportDefinition" />
    <jsp:directive.page import="lehman.ra.RAUtilBean" />
    <jsp:directive.page import="java.util.ArrayList" />
    <jsp:directive.page import="lehman.util.GeneralUtil" />
    <jsp:directive.page import="lehman.admin.report.AdminHtmlReportFormatter"/>
    <jsp:directive.page import="lehman.helper.irprod.IRProdHelper"/>
    <%@ page contentType= "application/vnd.ms-excel" %>
    <jsp:directive.page import="java.util.Iterator"/>
    <jsp:directive.page import="java.util.HashMap"/>
    <%
         String strTradeDate = (String) session.getAttribute("TradingDate");
         String sContextPath = request.getContextPath();
         IRProdHelper irHelper     = new IRProdHelper();
         String  sReportFormat  = "E2E";     
         String subtab1 = request.getParameter("subtab1");
         if (subtab1 == null)
              subtab1 ="";     
         Map report_Ids    = (Map) session.getAttribute("ADMIN_E2E_REPORTS");
         AdminHtmlReportFormatter formatter = new AdminHtmlReportFormatter();
         ArrayList contentData = new ArrayList();
         ArrayList headerData  = new ArrayList();
         ArrayList metaData    = new ArrayList();
         Map resultMap            = null;
         String headerString       = "";
         String contentString  = "";
         String reportId            = "";
         int titleSpan         = 5;     
         if( report_Ids!=null && report_Ids.size() > 0){
              Object oReportObj      = null;
              Iterator rowIter = report_Ids.keySet().iterator();
              RAUtilBean raUtilBean = new RAUtilBean();
              ReportDefinition rdef = new ReportDefinition();
              while ( rowIter.hasNext() ){          
                   oReportObj = rowIter.next();     
                   reportId = oReportObj.toString();
                   System.out.println("**************reportId="+reportId);     
                   resultMap  =  (HashMap) report_Ids.get(oReportObj);
                   if(resultMap == null )
                        continue;
                   if(resultMap.size() > 0 ) {
                        contentData          = (ArrayList)resultMap.get(GeneralUtil.CONTENT_DATA);
                        headerData          = (ArrayList)resultMap.get(GeneralUtil.COL_METADATA);
                        metaData          = (ArrayList)resultMap.get(GeneralUtil.METADATA);
                        rdef = new ReportDefinition();                    
                        raUtilBean.setReportAttributes(rdef, headerData, metaData,reportId, sReportFormat);
                        titleSpan = raUtilBean.findMaxCol(contentData, rdef.getDisplayCols());
                        if("51031".equals(reportId)){                         
                             if(resultMap.get("HIDE_ETA")!=null){
                                  boolean hideETA = ((Boolean)resultMap.get("HIDE_ETA")).booleanValue();                              
                                  formatter.setHideETA(hideETA);
                                  if(hideETA){
                                       titleSpan = titleSpan-1;
                        rdef.setMaxCol(titleSpan);
                        headerString = formatter.constructHeadingForE2E(rdef, headerData);
                        contentString = formatter.constructContentForE2E(rdef, contentData, strTradeDate, sReportFormat);
    %>     
    <html xmlns:o="urn:schemas-microsoft-com:office:office"
         xmlns:x="urn:schemas-microsoft-com:office:excel"
         xmlns="http://www.w3.org/TR/REC-html40">
         <head>
         <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
         <meta name="ProgId" content="Excel.Sheet"/>
         <meta name="Generator" content="Microsoft Excel 9"/>
         <link rel="File-List" href="./Test33_files/filelist.xml"/>
         <link rel="Edit-Time-Data" href="./Test33_files/editdata.mso"/>
         <link rel="OLE-Object-Data" href="./Test33_files/oledata.mso"/>
         <link href="<%=sContextPath %>/llehman.css" rel="stylesheet" type="text/css">
         <link href="<%=sContextPath %>/llcontent.css" rel="stylesheet" type="text/css">
         <style>
         <xsl:comment>
         table
              {mso-displayed-decimal-separator:"\.";
              mso-displayed-thousand-separator:"\,";}
         .style0
              {mso-number-format:General;
              text-align:general;
              vertical-align:bottom;
              white-space:nowrap;
              mso-rotate:0;
              mso-background-source:auto;
              mso-pattern:auto;
              color:windowtext;
              font-size:10.0pt;
              font-weight:400;
              font-style:normal;
              text-decoration:none;
              font-family:Arial;
              mso-generic-font-family:auto;
              mso-font-charset:0;
              border:none;
              mso-protection:locked visible;
              mso-style-name:Normal;
              mso-style-id:0;}
         .xl21
         {mso-style-parent:style0;
         color:black;
         font-size:8.0pt;
         font-family:Arial, sans-serif;
         mso-font-charset:0;
         border-top:.5pt solid silver;
         border-right:.5pt solid silver;
         border-bottom:.5pt solid silver;
         border-left:none;}
         .xl24
              {mso-style-parent:style0;
              mso-number-format:"\#\,\#\#0\.00_\)\;\\\(\#\,\#\#0\.00\\\)";}
         .xl25
              {mso-style-parent:style0;
              mso-number-format:0%;}
         .xl26
              {mso-style-parent:style0;
              mso-number-format:"\#\,\#\#0_\)\;\\\(\#\,\#\#0\\\)";}
         .xl27
         {mso-style-parent:style0;
         background-color:#666666;
         color:#FFFFFF;
         font-size:9.0pt;     
         font-family:Arial, sans-serif;
         mso-font-charset:0;
         text-align:left;
         vertical-align:middle;
         border-top:none;
         border-right:.5 pt solid silver;
         border-bottom:.5pt  silver;
         border-left:none;
         mso-pattern:auto none;
         white-space:normal;
         .xl55
         color:black;
         font-size:8.0pt;
         font-weight:700;
         mso-style-parent:style0;
         mso-number-format:"\#\,\#\#0_\)\;\[Red\]\\\(\#\,\#\#0\\\)";
         mso-pattern:auto none;
         font-size:9.0pt;
         font-family:Arial, sans-serif;
         mso-font-charset:0;
         text-align:right;
         border-top:none;
         border-right:.5pt solid silver;
         border-bottom:.5pt solid silver;
         border-left:none;
         .xlDate{
         mso-style-parent:style0;
         mso-number-format:"yyyy\\-mm\\-dd";
         .xlDateTime{
         mso-style-parent:style0;
         mso-number-format:"yyyy\\-mm\\-dd\\ h\\:mm\\ AM\/PM";
         </xsl:comment>
         </style>
         <xml>
          <x:ExcelWorkbook>
           <x:ExcelWorksheets>
            <x:ExcelWorksheet>
              <x:Name><%=subtab1%></x:Name>
              <x:WorksheetOptions>
               <x:ProtectContents>False</x:ProtectContents>
               <x:ProtectObjects>False</x:ProtectObjects>
               <x:ProtectScenarios>False</x:ProtectScenarios>
              </x:WorksheetOptions>
            </x:ExcelWorksheet>
           </x:ExcelWorksheets>
          </x:ExcelWorkbook>
          </xml>
         </head>
    <body text="#000000" style="margin-left:5px;margin-top:5px">
          <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tr>
                  <td>
                       <table  border='0' cellpadding="0"  cellspacing='0' width="100%">
                             <tr class="xl21">
                                  <td align="left" nowrap style='font-size:11px;' colspan="<%=titleSpan%>"><b><%=subtab1%></b> -  COB  <%=irHelper.formatDate(strTradeDate)%>  </td>
                                  </tr>
                         </table>
                   </td>
                </tr>
                <tr>
                     <td> </td>
              </tr>
    <!-- Report Processing -->
              <tr>
                   <td>
                        <%=headerString%>
                        <%=contentString%>
                   </td>
              </tr>
    <%
                   }//end of if
              }//end of while
         }//end of if report_Ids     
    %>          
         </table>
    </body>
    </html>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • 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

Maybe you are looking for