473,440 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,440 software developers and data experts.

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 16372
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dave | last post by:
Hi There Is there any how can we attach html page into email body by just encoding url ? something like with oMsg .From="blah blah blah" .To="abc@xyz.com" .body=www.mysite.com/default.htm...
1
by: Dune | last post by:
I'm trying to migrate a page as quickly as possible from asp to asp .net and was wondering if there is any way to include an asp page in an aspx page? Basically, I'd like to be able to do...
1
by: Mike John | last post by:
how can i include the current page in the body of the email. I was only to put text. Syntax: <html> <body> <input type ="Button" onclick= "eman()"> <SCRIPT LANGUAGE=JAVASCRIPT>
3
by: uto | last post by:
i'd like to include aspx page to aspx page not ascx page in this case how can i attach aspx page into aspx page? i think there are some way to implement this... LoadTemplate may be work or not?
1
by: jessicahagg | last post by:
Hi, Goal: Change report body background color to white at runtime before exporting to pfd format. I am reproducing a web report useing .Net reportviewer -- The report is to have the same...
3
by: Dilruba | last post by:
Hierarchy of directory are as follows: 1.wwwroot 1a. store 1b. hide 1c. full Suppose a page "fruit.asp" in the 'store' folder. Another page 'vagitable.asp" in the 'wwwroot' folder.
2
by: Shinis | last post by:
How to include an aspx file into an html page?????give me a solution pls... Thanks in advance
1
by: Mallikarjun P | last post by:
Hi i have created html page which includes javascript. So i wanted to include this html page to one of my asp pages i.e "home page". Script includes about the image slideshow. This slideshow should...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.