issues regarding <frameset> usage in webrick servlets, pls help


 
Thread Tools Search this Thread
Top Forums Programming issues regarding <frameset> usage in webrick servlets, pls help
# 1  
Old 02-18-2009
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?

Quote:
#!/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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Web Development

Problems starting webserver (WEBRick) on Rails

Good afternoon: I need your help please: Im new at web applications and i started taking a Ruby on Rails course and as a part of the installations i followed the instructions given on page: http://railsapps.github.io/installrubyonrails-ubuntu.html I followed every step and id did not yield... (6 Replies)
Discussion started by: alexcol
6 Replies

2. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

3. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

4. Shell Programming and Scripting

"frameset" in bash?

Hi everyone, I am just wondering, is there any way to do something like put text on line 1 of the terminal window and then set the window's display to start at line 2, so that the text in line 1 is always on the screen? -patrick (1 Reply)
Discussion started by: patrick99e99
1 Replies

5. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

6. Web Development

how to pass data in webrick sevelts? please help

Hi all, I am a newbie to servlet programming using webrick... Was wondering how to accept data from a form and do necessary processing.. To start with i wrote a sample servlet that accepts a name and prints "welcome <name>" But I do not know how to take this value from the form into the... (0 Replies)
Discussion started by: wrapster
0 Replies

7. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

8. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

9. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question
RACKUP(1)																 RACKUP(1)

NAME
rackup rackup(1) -- An utility for run Rack-based applications SYNOPSIS
rackup [ruby options] [rack options] [rackup config] DESCRIPTION
Rackup is a useful tool for running Rack applications, which uses the Rack::Builder DSL to configure middleware and build up applications easily. rackup automatically figures out the environment it is run in, and runs your application as FastCGI, CGI, or standalone with Mongrel or WEBrick -all from the same configuration. OPTIONS
Ruby options: -e, --eval [LINE] evaluate a LINE of code -d, --debug set debugging flags (set $DEBUG to true) -w, --warn turn warnings on for your script -I, --include [PATH] specify $LOAD_PATH (may be used more than once) -r, --require [LIBRARY] require the library, before executing your script Rack options: -s, --server [SERVER] serve using SERVER (webrick/mongrel) -o, --host [HOST] listen on HOST (default: 0.0.0.0) -p, --port [PORT] use PORT (default: 9292) -E, --env [ENVIRONMENT] use ENVIRONMENT for defaults (default: development) -D, --daemonize run daemonized in the background -P, --pid [FILE] file to store PID (default: rack.pid) Common options: -h, --help Show the help message --version Show version EXAMPLES
This is a simple example on how to start an application based on Rack with rackup: $ rackup -Ilib blog/config.ru [2010-12-10 15:01:11] INFO WEBrick 1.3.1 [2010-12-10 15:01:11] INFO ruby 1.9.2 (2010-08-18) [x86_64-linux] [2010-12-10 15:01:11] INFO WEBrick::HTTPServer#start: pid=4496 port=9292 AUTHORS
Copyright (C) 2007, 2008, 2009, 2010 Christian Neukirchen <http://purl.org/net/chneukirchen> For a complete list of authors and contributors to the project, please take a look here https://github.com/rack/rack/contributors This manual page was written by Ermenegildo Fiorito fiorito.g@gmail.com for the Debian Project SEE ALSO
ruby(1) http://rack.rubyforge.org December 2010 RACKUP(1)