Calling a jsp method from a java application

T

tiewknvc9

Hi!

I'm trying to call a jsp method from a java application, only I don't
know how to do it.

The idea is to get 2 variables from my application, and communicate
with a database on my server - sadly my hosting company does not allow
me to directly connect to my online database (they suck). So what I
would like to do is send these 2 variables to a servlet method, and
return some value back to my application.

Only to me, it seems impossible to do it this way.

Please let me know your thoughts...

Thanks
 
T

tiewknvc9

No, that's really my question. I need to run a database query, but I
can only access the database from a servelt, or jsp page.

I'm building an application... so I cannot directly access the
database from the application. I want to run a query through a jsp/
servlet function or something...
 
M

mich

tiewknvc9 said:
I need to run a database query, but I
can only access the database from a servelt, or jsp page.
I'm building an application... so I cannot directly access the
database from the application. I want to run a query through a jsp/
servlet function or something...

So just call a JSP page with some arguments and the page can return the
information.
 
D

d0ngd0ng

I think this is not a problem,you just call the jsp with http
reqeust,and then pasre the response in your application.
The response may be a XML document or a pure text,it's not too
diffcult. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top