JSP Code Insight

JDev Team,
The cursor disppears to some location with the JSP file after code assist is invoked. To duplicate the issue, invoke code assist on "request" and select any method. The cursor will vanish. If you are creating a new JSP you can notice that the cursor moves to last line.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>test</title>
</head>
<body>
<%
request.getAttribute()
%>
</body>
</html>
I am just unable to do any development what so ever with this behaviour even for those JSP with just 100 lines. Please address this issue and provide a patch if possible.
Thanks

Please ignore this thread. The issue is included in the bug list reported in JDeveloper Bug List
Thanks

Similar Messages

  • Jsp taglibs in include files not detected, throws errors, no code insight

    I have a jsp which is included in all the other jsp. it looks something like this
    taglibs.jsp
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    test.jsp
    <%@ include file="/jsp/menu/taglibs.jsp"%>
    <html>
         <head>
              <title>Tours</title>
         </head>
         <body>
    <form:form commandName="testCommand">
                   <form:hidden path="tour.firstname" id="tour.firstname" />
    and so on.
    I am having 2 problems
    1. the jsp editor show errors all over the place saying
    element path not expected
    element commandName not expected etc.
    2. no code insights.
    but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
    is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.

    am not sure, try with this
    <jsp:include   .../>

  • Code Insight and JSP and JDEVELOPER

    Hi everybody
    Does anybody can help me how I can enable code insight feature of jdeveloper?
    Remember that import statement is in jsp tags.
    Thanks a lot
    Shahram

    The Code Insight feature currently only works with .java files.
    null

  • JSP not showing code insight on press of CTRL+SPACE

    Hi , i am using jDeveloper 11.1.2.
    When i was using JDeveloper 11.1.1.3 , my jsp's where showing code insight correctly when i clicked on CTRL+SPACE after writing any methodname etc.
    But after upgrading to jdeveloper 11.1.2 my jsps are not showing code insight on ctrl+space , only java file shows properly code insight.
    Please help me.
    Note: but my jsp's compile successfully and run also, only code insight is not working.
    Zeeshan

    can some one please help me ?
    Zeeshan

  • Code insight is not available when eding jsp by using 10.1.3.36.73

    I use 10.1.3.36.73 jdeveloper on windows to develop web application,
    but code insight is easy not available when editing jsp 2.0.
    I must restart jdeveloper and it still isn't often available.
    ex. in jsp
    ArrayList al = new ArrayList();
    for (Iterator it=al.
    Code insight is not supported for jsp or this is bug?

    Do you still have any code error in your jdev editor? no matter the error is JSP or HTML (it is signed by little red box at the right of the window near scroll bar), code insight sometimes is not available.

  • Slow code insight in JDev 9.0.3.1035

    Hello,
    sometimes when I invoke code insight in my Jdev it needs up to 30 secs to display. In this time JDeveloper is completely blocked and does not react to any keyboard or mouse input. It doesn't matter if the library is on a network drive or on the local harddisk, even with standard JDK-Lib (for example: java.text. ) this problem appears. And, this happens not always, sometimes the popup comes as fast as I set in JDev's preferences.
    Has anyone experienced such a behaviour??
    Thank you.
    Christian

    Interesting... I confirmed via. Metalink that there was a bug within JDev 9.0.3.1 that caused code insight to fail when editing JSP against at least an Orace Portal based project.. I'm not sure if it's related, but I have a feeling it might be. Are you by chance developing with Portal? I've also noticed no problems with code insight when i'm working with straight webapps built from Struts. Perhaps it's to do with the libraries in your project.
    If you're on Windows, try the sysinternals file monitor program (www.sysinternals.com) and see if it's trying to access large files or something over the network.
    HTH,
    -sean

  • JSP Code completion fails

    The code "insight" isn't working when I edit JSP pages. The page has include directives that were wizard generated and the JSP compiles and runs successfully. I see no indication as to why it's failing. Does anyone know a solution to this?
    -s-
    ps. i'm running 9.0.3.1

    Alrighty! I opened a TAR against this issue on metalink and the results are in!
    This is what the support person had to say:
    I test the Code Insight by editing Servlet and JSP files. Code Insight is activated for Servlet case but is not activated for JSP case after one or two lines success.
    This issue and related have been filed in a few non-published bugs (e.g., 2944071). The problem will be fixed in release 9.0.5.12 according to the bug.
    I hope this helps anyone else in the same boat.
    -s-

  • Code insight is not working correctly in Jdev 10.1.3 (preview) and java 1.5

    The code insight does not work for me. I followed the advice of Steve Muench given here:
    http://radio.weblogs.com/0118231/stories/2003/01/17/whyIsntMyCodeInsightWorking.html
    but that did not change the problem. The problem seems to be related to new java 1.5 features. As soon as I start using generics the code insight is lost...
    Any clues what is going on? I s this easy to fix?
    -- example: (NOTE that iI use double (( )) to indicate generics definitions. the forum software would not let me put in the correct syntax!)
    package mypackage;
    import java.util.Set;
    public class tester1
    private Set ((Integer)) intSet = null;
    public tester1()
    intSet. ---- NO CODE INSIGHT POPS UP! (if i change to "private Set intSet = null;" it works)
    public static void main(String[] args)
    new tester1();
    P.S.
    Also, i noticed that the auto-import ist not working for the "Set((Integer))" line!
    Message was edited by:
    user444936

    thanks for the info.
    Hmm - too bad. I may have to switch to eclipse or something then, since my project involves some 1.5 parts and the missing code insights and import features are a real pain for me.
    Cheers,
    Jochen

  • Help on jsp code to display data in same page using using ajax ?

    Is there any jsp code to display in same page using using ajax ?

    Re: need help on how to display data in same jsp page. Locking.

  • Is there a way of embedding JSP code in VBScript?

    I am launching MS Excel using VBScript in the JSP Page. I want to populate the spread sheet with the values coming from a Java Bean. I am not sure how I can embed JSP code in VBScript.
    Thanks

    I tried doing that with Javascript but it gives me error..
    here is the code I was testing..
    <script language="JavaScript">
    function test(){
    var name = <%=(bean.getName())%>;
    alert(name);
    </script>
    <input type="button" name="Button" value="test" onClick=javascript:test()>
    Error : Object Expected
    If I do a similar thing with VBScript, it doesnt work either.
    here is the test code for VBScript
    <SCRIPT LANGUAGE="VBScript">
    sub button1_onclick()
         dim name = <%=(bean.getName())%>
    ' Launch Excel
    dim app
    set app = createobject("Excel.Application")
    ' Make it visible
    app.Visible = true
    set rng2 = wb.Activesheet.Range("A1").Resize(2,2)
    rng2.value = name
    ' Give the user control of Excel
    app.UserControl = true
    end sub
    </SCRIPT>

  • How to access a JAVA Script variable in JSP Code

    How to access a JAVA Script variable in JSP Code. I have been unable todo this.
    Plz Suggest a way.
    Thanks
    Soumya

    try to do this code
    String s=request.getParameter("javascriptvariablename");

  • Error While running the JSP Code

    This is the error message:
    A java exception has occurred during the processing of this request.
    Error occurred in JSP element starting at line number 20
    javax.servlet.jsp.JspTagException: I/O Error: java.net.SocketException: Connection reset
         at desisoft.jsp.tagext.SendMail.doAfterBody(SendMail.java:213)
         at desisoft_jsp_SendMail_jsp1139292195218._jspService(desisoft_jsp_SendMail_jsp1139292195218.java:111)
         at desisoft.server.JspBaseClass.service(JspBaseClass.java:48)
    The JSP code:
    <%@ taglib prefix="blx" uri="/blx.tld" %>
    <HTML>
    <BODY>
    <%
    // Get username.
    String email = request.getParameter( "email" );
    %>
    <% if ( email == null || email.equals( "" )) { %>
    Please enter an email address.
    <% } else { %>
    <blx:email host="mail.xxx.com" from="[email protected]">
    <blx:emailTo><%= email %></blx:emailTo>
    Thank you for registering with us. You registered the
    following name: <%= request.getParameter( "username" ) %>
    Your registration was received at <%= new java.util.Date() %>
    Attached, please find a contents file.
    </blx:email>
    <!-- Also write out some HTML -->
    Thank you. A confirmation email has been sent to <%= email %>
    <% } %>
    </BODY>
    </HTML>

    This is the error message:
    A java exception has occurred during the processing of this request.
    Error occurred in JSP element starting at line number 20
    javax.servlet.jsp.JspTagException: I/O Error: java.net.SocketException: Connection reset
         at desisoft.jsp.tagext.SendMail.doAfterBody(SendMail.java:213)
         at desisoft_jsp_SendMail_jsp1139292195218._jspService(desisoft_jsp_SendMail_jsp1139292195218.java:111)
         at desisoft.server.JspBaseClass.service(JspBaseClass.java:48)
    The JSP code:
    <%@ taglib prefix="blx" uri="/blx.tld" %>
    <HTML>
    <BODY>
    <%
    // Get username.
    String email = request.getParameter( "email" );
    %>
    <% if ( email == null || email.equals( "" )) { %>
    Please enter an email address.
    <% } else { %>
    <blx:email host="mail.xxx.com" from="[email protected]">
    <blx:emailTo><%= email %></blx:emailTo>
    Thank you for registering with us. You registered the
    following name: <%= request.getParameter( "username" ) %>
    Your registration was received at <%= new java.util.Date() %>
    Attached, please find a contents file.
    </blx:email>
    <!-- Also write out some HTML -->
    Thank you. A confirmation email has been sent to <%= email %>
    <% } %>
    </BODY>
    </HTML>

  • How to get OutputStream/Writer for a file in a JSP code?

    In a JSP code as shown below, how could we get an OutputStream to write a file that resides on the server file system?
    I'm stuck after five hours struggle!
    <%
    /* simple experimental JSP program */
    ...  // get request data
    Properties pt = new Properties();
    Class clas = getClass();
    InputStream is = clas.getResourceAsStream("/users.properties");
    pt.load(is);
    String userNameDB = pt.getProperty("user");
    String passwordDB = pt.getProperty("password");
    long lastLogonDB = Long.parseLong(pt.getProperty("lastLogon"));
        // so far so good ...
    if (userName.equals(userNameDB) && password.equals(passwordDB)){
      if (lastLogonForm > lastLogonDB) {
        session.setAttribute("User", userName); //Saves user name string in the session object
        pt.setProperty("lastLogon", lastLogon);
        pt.setProperty("user", userNameDB);
        pt.setProperty("password", passwordDB);
        ...  // how to write back the new data to the users.properties file?
    %>

    I have found a solution:
    String path = application.getRealPath("/users.properties");
    InputStream is = new FileInputStream(path);
    is.close();
    OutputStream os = new FileOutputStream(path);
    os.close();getResourceAsStream() is oddly incompatible with the code using the getRealPath(). So don't use it.

  • JSP codes for running a JAVA program

    hello...
    does anyone know the JSP codes for running a Java program from my web page?? i mean i already have my java program compiled... and i just want this java program to run in the background when I click on a button or a link...
    Any idea about this?
    plz advice..
    avi

    yes... u r somewhat right... but this runs on Jakarta Tomcat...
    i'm using the Apache Http Server together with the ServletExec AS which enable the Apache server to run JSP..
    I've created a package where i've put my classes...
    WEB-INF/classes/tbd(package name)/my classes
    and i've added.. package name.. in my java program..
    and then in jsp... i've written..
    <%@ page import="tdb.*"%>
    <jsp:useBean id="exec" class="tdb.textdb" />
    <%exec.convert_data();%>
    but when i run the page it says the package does not exist...
    can anyone tell where to place the folder WEB-INF so that it can run fine?
    thx
    avi

  • How to download files in jsp code {through save dialog}

    can you help me to download files in jsp code {through save dialog}
    i use the following code but it saves the jsp page instead of the downloaded file but with the name of the wanted file to be downloaded
    response.setHeader("Pragma", "public");
    response.setHeader("Cache-Control", "no-cache");
    *** download file
    if((trans !=null)&&(trans.equals("download")) )
    response.setContentType ("application/x-download");
    response.setHeader ("Content-Disposition","attachment;filename=\""+fileName+"\"");
    %>
    <script>
    window.location.href=<%=gallerypath+fileName%>';
    </script>
    <%
    trans="";
    //System.out.print("download : "+fileName );
    //***************************************

    Can you try below code, It should work...
    <%
    String myFileName = request.getParameter("fileName");
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename=\"" + myFileName + "\"");
    String root = "D:/";
    InputStream in = null;
    ServletOutputStream outs = response.getOutputStream();
    try {
    in = new BufferedInputStream
    (new FileInputStream(root + myFileName));
    int ch;
    while ((ch = in.read()) != -1) {
    outs.print((char) ch);
    finally {
    if (in != null) in.close(); // very important
    outs.flush();
    outs.close();
    in.close();
    %>

Maybe you are looking for

  • Getting Java mapping errors when testing my Interface mapping

    Hi, I'm trying to test my interface mapping from IR, I keep getting these exceptions. All I'm doing in my interface mapping is I have two mapping programs a XSLT mapping with java helper functions with the XSL and a message mapping. In the test it pa

  • Data gets not saved?

    Hi i am new at programming and also i am dutch so my english is not that high quality. sorry for that. reading is a lot better than writing ;) So here is my problem (i use visualstudio 2013 express) my goal is to design a desktop app that keeps track

  • Lsgrp - list all members of a group

    lsgrp is a small and fast utility written in C that does just one thing: it lists the members of a group. It can be used in scripts that need to do something for each user in a group, such as setting up directories or generating per-user configuratio

  • ORA-00932: inconsistent datatypes: expected - got CHAR in 10.1.3 ADF BC.

    "ORA-00932: inconsistent datatypes: expected - got CHAR" i got SQL error during statement preparation. Statement: SELECT Emp.EMPNO, Emp.ENAME, Emp.JOB, Emp.MGR, Emp.HIREDATE, Emp.SAL, Emp.COMM, Emp.DEPTNO, Emp.ROWID FROM EMP Emp WHERE (EMPNO in (SELE

  • Error in Office Deployment tool

    hi, Error in Office Deployment tool Any known issue?  tnx