Solved

How to use iframe to pull .jsp website

Posted on 2010-09-15
6
497 Views
Last Modified: 2012-05-10
So I am not really a web programmer by trade so please forgive misuse of terms.

I am running some pretty simple Code where I want to create a basic iframe to embed a webpage. When I run this it brings the page up but does not give me the ability to logon to the site. Is there a way to accomplish this objective? Thanks
<html> 

<body background='images\gui\logo_bg.gif'> 

<h2>HTML Portlet</h2> 

Displays your personal HTML portlet. 

<iframe src='http://XXXX:8080/logon.jsp' width=100% height = 700></iframe> 

</body> 

</html>

Open in new window

0
Comment
Question by:BBulldis
  • 4
  • 2
6 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 33690168
what if you just include the jsp in iframe?
<iframe width=100% height = 700>
  <jsp:include page="http://XXXX:8080/logon.jsp"/>
</iframe>

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro8.html


When you give the source attribute value to iframe, any file will be simply included as html file only, not the PROCESSED jsp. Since jsp is processed at server only.

0
 

Author Comment

by:BBulldis
ID: 33701853
So that looks like how you inculde a jsp in a jsp. I am trying to inculde a jsp in a HTML iframe so that it allows me to fill out the "form" and logon. It brings up the page but I can't logon  I am thinking this may be a security constraint that is fundamental to the way JSP plays with others.
0
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 500 total points
ID: 33706695
<<It brings up the page but I can't logon>>
What exactly is happening? I meant that you are getting some error or something else?
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:BBulldis
ID: 33717425
Nothing happens that is the issue. There is no error nothing.

So If I go to the url using my browser it give's me a login screen that I can type credentials into.

If I emebed the same url into an iframe it does no bring the logon screen at all. I can't type anything it doesn't actually have the area that you would enter the information just the frame and logos around it.
0
 

Author Comment

by:BBulldis
ID: 33736785
I have gone a different rout all together. Thanks for the help in this again I don't think it is possiable I was just hopeful I was wrong. I will award you the points as the information that you did provide was very helpful. Thanks
0
 

Author Closing Comment

by:BBulldis
ID: 33736805
Though this didn't solve th issue it provided me the information that I needed to figure out what I was trying to do was no possible. Thanks for the help.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Materializecss - Different Behaviors in Browser's 1 35
Bootstrap on PLNKR 3 28
Web forms being filled out by bots 4 31
Increase the size of the modal in Bootstrap 5 23
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

774 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question