Bad Java Code compiling using jasper

Discussions

Web tier: servlets, JSP, Web frameworks: Bad Java Code compiling using jasper

  1. Bad Java Code compiling using jasper (5 messages)

    hi,
    I'm compiling JSPs using Ant and Jasper.
    The task was made using the Ant manual. The execution is succesfull but the generated code can´t compile in Java.
    For example, i got this:

    import omega.util.*;
    import ;
    import omega.sgt.*;
    import ;

    So i can´t compile because the import doesn't import anything.
    Any suggestion?

    Thanks
  2. What do your <%@ page import %>s look like?
  3. It looks like this:

    <%@ page contentType="text/html"%>
    <%@page import="omega.pc.UsuarioBanco
                   ,omega.clienteNatural.*
                   ,omega.clienteNatural.valueObject.*
                   ,omega.util.*,
                   ,omega.sgt.*,
                   ,omega.util.ConstantesPrivilegios
                   ,omega.link.LinkManager
                   ,omega.common.*
                   ,java.util.Vector
                   ,java.util.Iterator"%>
  4. You have double commas between #s 4,5 and 6.
  5. Thanks i'll fix it.
    But i use Jdeveloper as IDE and i compile and execute without problems. There's something wrong with JDeveloper.
    Thanks again.
  6. jasper .........
    some times
    if your codes is not canonical
    you will gain wrong compiling ................