473,405 Members | 2,187 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,405 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 16371
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.