Run JSP file in Android

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


Sponsored Links
 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
--~--~---------~--~----~------------~-------~--~----~



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)
 http://commonsware.com 
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. OpenGL: Difference on Emulator versus actual G1 phone for method glDrawTexiOES

Hi,

I have a problem drawing a background for my OpenGL app on the
emulator. It all works well on an actual G1, but i'm worried that if
the emulator has a problem, other android phones may have the same
problem.

On an actual G1 the background is drawn on the background. All other
drawing is drawn in front of it.
On the emulator, the background is always drawn on the foreground,
obsuring any other drawing.

Here are two screenshots, where i have my background only occupying
half of the screen:
http://www.streetsofboston.com/photos/505952628_oatDP-O.png

http://www.streetsofboston.com/photos/505952626_Cb9Mc-O.png

Here are some code snippets:
Clearing screen before drawing anything else:
  gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);

Drawing the actual background:
  gl.glBindTexture(GL10.GL_TEXTURE_2D, mBackgroundTextureID);
  ((GL11) gl).glTexParameteriv(GL10.GL_TEXTURE_2D,
      GL11Ext.GL_TEXTURE_CROP_RECT_OES, smBackgroundCrop,0);
  ((GL11Ext)gl).glDrawTexiOES(0, 0, 1, (int)mViewWidth, (int)
mViewHeight);
(the background is drawn where Z=1, the far-plane).

Enable depth-test and setting the func to equal or less than equal:
  gl.glEnable(GL10.GL_DEPTH_TEST);
  gl.glDepthFunc(GL10.GL_LEQUAL);
(using the default depth-func will not draw the background on the
phone)

Surface type:
  mHolder.setType(SurfaceHolder.SURFACE_TYPE_GPU);
(changing the surface type won't fix it for the emulator)


My question is:
Is there a bug in the emulator or may there be a real problem with my
code?

Thanks!



--~--~---------~--~----~------------~-------~--~----~

2. AudioFormat class's other option

I am porting one project which is using audio capability with open GL.
Now my java code is using AudioFormat class which has purpose to do
Encoding Technique and it has property which specify the exact
arrangement of the data like number of channel number of channels,
sample rate, sample size, byte order, frame rate, and frame size etc
now which is the class we should use insted Of AudioFormat class.

--~--~---------~--~----~------------~-------~--~----~

3. Postion of the grouppostion or the childposition in a Expandable List.

4. Open Repository cupcake SDK updates (inc. Windows SDK)

5. Adding items to ListView dynamically

6. data access

7. Detecting Noise