Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

Calling a jsp method from a java application

Thread view: 
tiewknvc9 - 25 Dec 2007 02:12 GMT
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
d0ngd0ng - 25 Dec 2007 03:03 GMT
It's crazy.

The servlet is also in you application?

> Hi!
>
[quoted text clipped - 12 lines]
>
> Thanks
tiewknvc9 - 25 Dec 2007 04:35 GMT
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...

> It's crazy.
>
[quoted text clipped - 18 lines]
>
> - Show quoted text -
mich - 25 Dec 2007 15:41 GMT
>  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.
d0ngd0ng - 25 Dec 2007 16:25 GMT
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. :)

> >  I need to run a database query, but I
> > can only access the database from a servelt, or jsp page.
[quoted text clipped - 4 lines]
> So just call a JSP page with some arguments and the page can return the
> information.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.