By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,883 Members | 2,037 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,883 IT Pros & Developers. It's quick & easy.

Include a Servlet into web page body

P: n/a
Hello,

I just have a problem with following: i have a .jsp file containing a static
html menu and a table cell where i need to include a servlet call result.
Servlet is called with the same parameters as the .jsp file.

<table>
<tr>
<td>
<!-- Here i need to include a call to the servlet with
parameters, eg
"MyServlet?param1=10&param2=3".
-->
</td>
</tr>
</table>

I tried <jsp:include page="MyServlet" > </jsp:include> but it doesn't work.

Any ideas would be appreciated!

Thnk you,
Andrey aka MuZZy
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Have you tried <jsp:include page="/MyServlet" > </jsp:include>?
(notice the "/" before "MyServlet).

Regards,
Luis.

"Muzzy" <le*******@yahoo.com> escribió en el mensaje
news:R9FVb.201720$Rc4.1677841@attbi_s54...
Hello,

I just have a problem with following: i have a .jsp file containing a static html menu and a table cell where i need to include a servlet call result.
Servlet is called with the same parameters as the .jsp file.

<table>
<tr>
<td>
<!-- Here i need to include a call to the servlet with
parameters, eg
"MyServlet?param1=10&param2=3".
-->
</td>
</tr>
</table>

I tried <jsp:include page="MyServlet" > </jsp:include> but it doesn't work.
Any ideas would be appreciated!

Thnk you,
Andrey aka MuZZy

Jul 17 '05 #2

P: n/a
"Muzzy" <le*******@yahoo.com> wrote in message news:<R9FVb.201720$Rc4.1677841@attbi_s54>...
Hello,

I just have a problem with following: i have a .jsp file containing a static
html menu and a table cell where i need to include a servlet call result.
Servlet is called with the same parameters as the .jsp file.

<table>
<tr>
<td>
<!-- Here i need to include a call to the servlet with
parameters, eg
"MyServlet?param1=10&param2=3".
-->
</td>
</tr>
</table>

I tried <jsp:include page="MyServlet" > </jsp:include> but it doesn't work.

Any ideas would be appreciated!

Thnk you,
Andrey aka MuZZy


Have the servlet do them all.
Jul 17 '05 #3

P: n/a
> Have you tried <jsp:include page="/MyServlet" > </jsp:include>?
(notice the "/" before "MyServlet).
THANKS A LOT!!! It works now!!!

"Muzzy" <le*******@yahoo.com> escribió en el mensaje
news:R9FVb.201720$Rc4.1677841@attbi_s54...
Hello,

I just have a problem with following: i have a .jsp file containing a

static
html menu and a table cell where i need to include a servlet call result. Servlet is called with the same parameters as the .jsp file.

<table>
<tr>
<td>
<!-- Here i need to include a call to the servlet with
parameters, eg
"MyServlet?param1=10&param2=3".
-->
</td>
</tr>
</table>

I tried <jsp:include page="MyServlet" > </jsp:include> but it doesn't

work.

Any ideas would be appreciated!

Thnk you,
Andrey aka MuZZy


Jul 17 '05 #4

P: n/a
Muzzy wrote:
Have you tried <jsp:include page="/MyServlet" > </jsp:include>?
(notice the "/" before "MyServlet).

THANKS A LOT!!! It works now!!!
"Muzzy" <le*******@yahoo.com> escribió en el mensaje
news:R9FVb.201720$Rc4.1677841@attbi_s54...
Hello,

I just have a problem with following: i have a .jsp file containing a


static
html menu and a table cell where i need to include a servlet call
result.
Servlet is called with the same parameters as the .jsp file.

<table>
<tr>
<td>
<!-- Here i need to include a call to the servlet with
parameters, eg
"MyServlet?param1=10&param2=3".
-->
</td>
</tr>
</table>

I tried <jsp:include page="MyServlet" > </jsp:include> but it doesn't


work.
Any ideas would be appreciated!

Thnk you,
Andrey aka MuZZy



A more fun way and I havent tried it, use an iframe

<td>
<iframe src="news/SomeServlet?doGet" frameborder="0" width="100%"
height="110" scrolling="auto"
name="text" target="top">
</iframe>
</td>
</tr>

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.