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?
Asked
Active
Viewed 213 times
1 Answers
0
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.

DagR
- 2,900
- 3
- 24
- 36
-
When connecting to a servlet the doGet and doPost methods are used. And then you are calling the results from the midlet. When i try to do the same thing with the jsp it outputs some html codes as written in the code. Not outputs or anything. I can't understand if i can directly call a jsp page or if i need a servlet to do it. – Eirini Televantou Jan 16 '12 at 21:01