Run JSP file in Android

by Billsen » Fri, 26 Sep 2008 07:06:25 GMT

Sponsored Links

I try to run jsp file in Android, just want print some string in
webpage with <%= "test" %>. However, nothing happens after execution.
No error occurs. Can Android run jsp file? If yes, how?

Thanks in advance,


Run JSP file in Android

by Mark Murphy » Fri, 26 Sep 2008 07:15:57 GMT


Only if you supply some sort of JSP interpreter. I believe there are no 
template languages in Android, beyond the limited string-replacement 
system provided in stock Java's String.format() method.

Mark Murphy (a Commons Guy) 
Warescription: All titles, revisions, & ebook formats, just $35/year


Sponsored Links

Run JSP file in Android

by Peterman » Fri, 26 Sep 2008 15:13:52 GMT

 I think that you only can view jsp'files with a web browser of
Android, but no if the jsp file was a application..


Run JSP file in Android

by Mauro » Fri, 26 Sep 2008 17:11:48 GMT

 JSP is a SERVER's technology. If you want to execute a JSP on an
Android powered phone you'll need a servlet/JSP container running ON
THE PHONE. Now, if you just want to SEE a JSP page on the phone, you
should have to setup a server (ie. Apache Tomcat) and browse the
server ip/web address using the phone's BROWSER.


Other Threads

1. Problems using WebView.loadDataWithBaseURL

Hi, i'm trying to display a page in UTF-8 encoding (japanese) using a
WebView via a direct URL and loadUrl has proven not effective given it
seems it doesn't support UTF-8 encoded urls.

My code is atm the following and the problem is the source is
retrieved but nothing at all is displayed.
Did i miss something, the code is working for
but i still have encoding problems on iso-8859-1 aswell (replacing all
the UTF-8 by ISO-8859-1)

Thanks a lot

HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet("€");
httpget.setHeader("Content-Type","text/html; charset=UTF-8");
HttpResponse response;

BufferedReader real_response = null;
try {
        response = httpclient.execute(httpget);
        new InputStreamReader(
                        response.getEntity().getContent(), "UTF-8"));
        } catch (Exceptionn e) {
        if (real_response != null)
                String data = "";
                String tempdata = "";
                try {
                        while ((tempdata = real_response.readLine()) != null)
                        data += tempdata;
                } catch (Exception e) {

2. Free database manager

To anyone interested in a database manager that should work in a
notebook/netbook environment (with /sdcard directory), AndroidDB Beta
has just been released on the Android Market.

This is the first version, but it is unprotected so it can be copied
from the original device.

Supports csv import and arbitrary SQL commands.

Future releases will allow you to use system databases for rooted/dev
phones etc.

Please follow androiddb on twitter for news and updates.  Feedback is
encouraged of course.




3. how to export *.gles 3d model file

4. Out of memory error in frame animation

5. Resolution problem while porting Android application on 2430

6. Cupcake Bluetooth handsfree problem?

7. A pure Java implementation of Dalvik VM