469,306 Members | 1,987 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Include a Servlet into web page body

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
4 16207
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
"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
> 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
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.

Similar topics

1 post views Thread by Dune | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.