Groups
Groups
Sign in
Groups
Groups
GWT Users
Conversations
About
Send feedback
Help
HOWTO run JSP page in hosted mode
169 views
Skip to first unread message
georgopoul...@gmail.com
unread,
Dec 5, 2007, 12:56:26 AM
12/5/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hi,
to run JSP pages in GWT hosted mode you have to:
1. edit ./tomcat/conf/web.xml and add
<mime-mapping>
<extension>jsp</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
2. rename your *.html host page to *.jsp (e.g.rename EntryPoint.html
to EntryPoint.jsp)
3. setup your module file (e.g. MyApp.gwt.xml) - add a service for
your *.jsp host page
<module>
<servlet path='/EntryPoint.jsp'
class='org.apache.jasper.servlet.JspServlet' />
</module>
4. edit the *-shell script and add the jasper jars and also change the
EntryPoint.html to EntryPoint.jsp
---------------------------------
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME="/path to/gwt-linux-1.4.60"
CLASSPATH="$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar"
CLASSPATH="$CLASSPATH:$TOMCAT_HOME/common/lib/jasper-compiler.jar"
CLASSPATH="$CLASSPATH:$TOMCAT_HOME/common/lib/jasper-runtime.jar"
java -cp "$APPDIR/src:$APPDIR/bin:$CLASSPATH"
com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" ModuleName.MyApp/
EntryPoint.jsp;
---------------------------------
enjoy!
Reply all
Reply to author
Forward
0 new messages