tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TWönlìnè <twonlinevi...@gmail.com>
Subject Compiling JSP with SMAP
Date Wed, 24 Mar 2010 08:58:19 GMT
I'm using apache-tomcat-6.0.20 with JASPER 2....

I need to compile a web project (Eclipse WAR application) which is JSP to
JAVA source files.

I'm successfully generating JAVA files from JSP files (Used JASPER 2), but
now i need to get mapping from JSP lines to JAVA lines.
I tried using SMAP feature which available in JASPER 2, but i can't
configure it correctly.

There are two questions i need to ask,

1) Will generating SMAP files will help me to map JSP lines to generated
JAVA lines?

2) How to do this?

JASPER how to doc says - The servlet which implements Jasper is configured
using init parameters in your global $CATALINA_BASE/conf/web.xml.

I edited that web.xml with following code - (used dumpSmap & suppressSmap)

<servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>suppressSmap</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>dumpSmap</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>

But no luck!!!!

Any help!!!!!

-- 
_A_N_I_M_E_-_O_T_A_K_U_

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message