facebook

My Eclipse Preview doesn’t work with EL … ?

💡
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 IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #251179 Reply

    rhmurray
    Member

    Directory and file structure …

    
    \webapps
       \ch01
           \META-INF
              MANIFEST.MF
           \WEB-INF
              web.xml
           index.jsp
    

    index.jsp contents …

    
    <html>
      <head>
        <title>Expression Language Test</title>
      </head>
      <body>
        <h1>Expression Language Test</h1>
        <hr>
        There are ${6 + 1} bears in the cave !!
        </body>
    </html>
    

    web.xml contents …

    
    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
    
        <description>
      Wrox Beginning JavaServer Pages Examples - Chapter 1
        </description>
        <display-name>Chapter 1 Example (Wrox Beginning JavaServer Pages)</display-name>
    
    </web-app>
    

    The above works fine from the Browser accessing the Tomcat 5 container; but from the My Eclipse Preview application, it looks like this …

    Expression Language Test

    ——————————————————————————–
    There are ${6 + 2} bears in the cave !! !!

    Comment ….

    Having to use Tomcat outside the IDE is a kludgy way to preview your work … any suggestions (other than putting the EL in attribute values)? Is this a limitation of Eclipse or the MyEclipse plug-in? If so, will it be corrected in a future release?

    #251182

    Riyad Kalla
    Member

    You are correct the preview panel does not evaluate expressions. I don’t know that supporting that is comming in a release anytime soon as EL expressions can get quite complex and embedding a real-time processor to parse them, while not having a running container is not going to work. For simple examples like this it’s ok, but for examples more complex it could be a real bear.

    #251416

    153446
    Member

    Actually, I can live without the preview capability … however, the lack of code completion is debilitating.

    Anyone have an idea on a strategy (including third-party plug-ins not [currently] bundled with MyEclipse) to enable JSP EL code completion?

    _Marvin

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: My Eclipse Preview doesn’t work with EL … ?

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