LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2009, 04:03 AM   #1
wrapster
Member
 
Registered: May 2008
Posts: 155

Rep: Reputation: 30
issues regarding <frameset> usage in webrick servlets, pls help


Hi all,

Ive been trying to execute <frameset> tags within webrick servlets..
But when the server is started i get erreneous o/p ... The html code if executed individually runs flawlesswelly but inside the servlet it cribs...
Could anyone please help me out?

Code:
Code:
#!/usr/bin/ruby -w

require 'webrick'
include WEBrick

s = HTTPServer.new(:Port => 9000)
class Test < HTTPServlet::AbstractServlet
        def do_GET(req,res)
                res['Content-Type'] = 'text/html'
                res.body = test
        end

def test
  html ="<html"
  html +="<frameset cols='30%, 80%'>"
  html +="<frame src='contents_of_frame1'> "
  html +="<frame src='contents_of_frame2.gif'>"
  html +="</frameset></html>"
end
end

trap("INT") {s.shutdown}
s.mount('/', Test)
s.start
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass data in webrick sevelts? please help wrapster Programming 0 01-28-2009 10:55 PM
pls..uninstalling issues Vergil Linux - Newbie 8 11-06-2008 11:27 PM
HTML frameset confusion hacker supreme Programming 2 11-05-2007 10:04 AM
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 06:16 PM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration