Is there a way of connecting java midlet to a jsp page?

229 Views Asked by At

I want to connect a midlet to a jsp page. Can i do it directly or should i rewrite the code of the jsp nto a servlet?

1

There are 1 best solutions below

1
On

A jsp is essentially a servlet. All JSPs compile into servlets, so "connecting" to a jsp is the same as "connecting" to a servlet.

What exactly do you mean by connecting to a servlet? A servlet usually implement doGet(...) and/or doPost(...). If you request an URL via HTTP GET, the doGet()-method is called.