facebook

jsp code completion is very slow at Myeclipse 5.1.x?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #268555 Reply

    fj_opensky
    Member

    below code:
    <%
    String mid=request.getParameter(“mid”);
    mid.substring(0,mid.indexOf(“-“));
    %>

    when i entry “mid.” , myeclipse show a method list about String , but this time, the all myeclipse stop for a long time, maybe 2-3 seconds, can not code in jsp…., i have to code this in a jsp tag, why? 🙁

    Anybody give me some advices? thanks.

    #268562

    My advice would be to stop writing scriptlet code in JSPs.

    It would be much cleaner to use JSTL as such:

    
    <c:set var="pos" value="${fn:indexOf(param.mid, '-')}" />
    <c:set var="mid" value="${fn:substring(param.mid, 0, pos)}" />
    
    

    Then use ${mid} wherever you would normally have used <%=mid%>

    Remember to declare the taglibs at the top of your page as so:

    
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    
    

    HTH,
    -Rod

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: jsp code completion is very slow at Myeclipse 5.1.x?

You must be logged in to post in the forum log in