I think you can use URL and URLConnection objects to
read the requested data from any web site. Please give
your Servlet url to construct URL object and get a
IOStream from that connection and u can read the data.
Hope this will helps u.
--- Bo Su [EMAIL PROTECTED] wrote:
Dear All,
I am
Dear All,
I am working on a project now and facing a problem with JSP and Servlet.
We already have a set of Servlets which deal with java application server.
Now I need to generate web page using JSP. So my question is how to call
these servlets from JSP in Java, not HTML form. These servlets
"submit" value="Submit" name="B1"input type="reset"
value="Reset" name="B2"/p
/form
/body
/html
Regards
Deepak
- Original Message -
From: Santosh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: mm/06/2001 9:48 AM
Subject
Hi,
This refers to the problem of deciding the target of a servlet at
runtime. I think one of the options would be to follow a two step
process. The first servlet creates the Frameset Html file, the decision
as to where the actual servlet will be called is made here. The Frame
would then just
Hi!
I am sure, that the answer for my question was already been spoken, but
... still don't know how to resolve this:
I need to call a servlet from my JSP page. As I understand, this are the
ways of calling servlets from JSP page:
1. FORM ACTION="calling servlet" ... (servlet returns
Marc Krisjanous wrote:
Hi all,
Could someone please answer my question.
Question: How can a JSP that is "Loading" call a servlet method? Servlet A
calls a JSP and while the JSP is "Loading" it needs to use some of the
methods in Servlet A.
Cheers
Marc
You cannot call methods of JSP or Serlvets from outside.
A calling servlet or jsp is one that forwards itself to
another jsp or serlvet and does not return.
A Servlet or JSP loads once and thereafter is loaded, until changed again.
Once loaded, a calling jsp or serlvet will not cause
cc:
Sent by: A Subject: Re: Calling Servlet methods
from JSP - basic
mailing list
about Java Server
Pages
specification and
reference
Hi all,
Could someone please answer my question.
Question: How can a JSP that is "Loading" call a servlet method? Servlet A
calls a JSP and while the JSP is "Loading" it needs to use some of the
methods in Servlet A.
Cheers
Marc
PROTECTED]]On Behalf Of Marc Krisjanous
Sent: Monday, May 29, 2000 7:01 PM
To: [EMAIL PROTECTED]
Subject: Calling Servlet methods from JSP - basic
Hi all,
Could someone please answer my question.
Question: How can a JSP that is "Loading" call a servlet method? Servlet A
calls a JSP
Hi,
I am trying to call a servlet from JSP 0.91 with the servlet tag.
The page shows both the servlet html and the JSP html. That is the servlet
html is tagged on to the JSP and I see two pages one below the other. Is
this to be expected ?
I submit the JSP and immediately
Hi,
Are there any performance problems involved in calling a servlet
from a JSP serveral times ? I have to call a servlet from a JSP which in
turn calls the JSP again. This happens several times. I find the engine that
I am using JRun freezes after some time.
Do I have to
Of Mohan Radhakrishnan
Sent: Wednesday, May 24, 2000 2:59 PM
To: [EMAIL PROTECTED]
Subject: Calling servlet
Hi,
Are there any performance problems involved in calling a servlet
from a JSP serveral times ? I have to call a servlet from a JSP which in
turn calls the JSP again. This happens
, May 24, 2000 12:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Calling servlet
I'm not sure, but off the top of my head it sounds like there should be a
better way of doing what you're trying to do. What are you trying to do?
Michael
-Original Message-
From: A mailing list about Java Server
Hi All!
What is the best way to call a servlet from a JSP page?
Here are the ways I have found:
jsp:usebean id="start" class="oe.Startup" scope ="request" /
My understanding of this tag is that it creates an "instance" of a Java
bean - it is really designed for bean use.
Using the HTML form
nbaas
Sent: Wednesday, February 02, 2000 4:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Calling servlet from JSP
use the include tag:
jsp:include page="/servlet/Test" flush=true
-Original Message-
From: A mailing list about Java Server Pages specification and refe
Can anyone explain me how to call a servlet from a JSP page.
The princip is:
JSP pageServlet
==
%
jsp code ...
%
Call the servlet --
D]
Subject: Calling servlet from JSP
Can anyone explain me how to call a servlet from a JSP page.
The princip is:
JSP pageServlet
==
%
jsp code ...
%
Call t
These do work, I was incorrect in my earlier message :)
Specifically, the second one requires a blank href value as he shows
Sorry if my earlier post confused you, wasnt thinking correctly this early
on monday :)
J
You can do this by using Javascript.
form name="postform" method="POST"
meter("PARAM").equals("POST_THIS") )
doGet(req,resp) ;
else
blah blah blah
}
Cheers,
Amar..
Sanjay Garg [EMAIL PROTECTED] on 11/19/99 03:33:27 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: Amarnath Nanduri/IT/VANCPOWER)
Subject: C
I found that JSP 0.92 can call servlet by add these code:
%
getServletContext().getRequestDispatcher("testAP/testServlet").include(reque
st,response);
%
Our application server is NAS4.0,
and it does work both "include" and "forward".
But we need more function to pass parameters to servlet in
I used to use shtml to call and pass parameters to servlet to
generate HTML, and now i need change the role of shtml to JSP.
I know JSP1.0 support redirect and include function by using
standard action:
jsp:forward ... /
jsp:include ... /
I try to test the following code in jsp, but
Hi all,
I am a newbie in jsp and this may be a simple
question.
I am trying to call a servlet from a jsp file and display the
result in JavaWebServer1.2.
The DBPhoneLookup.jsp is in JavaWebServer1.2\public_html
directory and looks like this:
HTMLHEADAccessing DBPhoneLookup
Sanjay Garg wrote:
Hi,
I am trying to invoke doPost() method of a servlet from a hyper
text link in my JSP, but it is always calling doGet(). I am doing
different stuff in each method, so can't do a doPost() within
a doGet(). Is there a way I can force a method type for my servlet
when
You can do this by using Javascript.
form name="postform" method="POST" action="someservlet"
input type="hidden" name="name1" value="value1"
input type="hidden" name="name2" value="value2"
/form
a herf="javascript:document.postform.submit();"A link that posts/a
I think that
a href=""
25 matches
Mail list logo