Discussion:
Run JSP file in Android
Billsen
2008-09-25 23:06:09 UTC
Permalink
Hi,

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,

Senshan
Mark Murphy
2008-09-25 23:15:40 UTC
Permalink
Post by Billsen
Can Android run jsp file?
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)
http://commonsware.com
Warescription: All titles, revisions, & ebook formats, just $35/year
Peterman
2008-09-26 07:13:44 UTC
Permalink
I think that you only can view jsp'files with a web browser of
Android, but no if the jsp file was a application..
Post by Mark Murphy
Post by Billsen
Can Android run jsp file?
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)http://commonsware.com
Warescription: All titles, revisions, & ebook formats, just $35/year
Mauro
2008-09-26 07:54:12 UTC
Permalink
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.
Post by Billsen
Hi,
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,
Senshan
Continue reading on narkive:
Loading...