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
PLS(1)							   http://synce.sourceforge.net/						    PLS(1)

NAME
pls - list directory contents SYNOPSIS
pls [-a] [-R] [-d LEVEL] [-p DEVNAME] [-h] [DIRECTORY] DESCRIPTION
pls list the contents of a directory on a device connected through SynCE. Forward slashes ('/') on the command line are converted to backward slashes (''). File attributes A Archive C Compressed D Directory H Hidden I In ROM M ROM module (can only be executed, not read!) N Normal R Read-only S System T Temporary OPTIONS
-d LEVEL Set debug log level: 0 - No logging (default) 1 - Errors only 2 - Errors and warnings 3 - Everything -p DEVNAME Use the device with the given name, instead of the default. -a Show all files including those marked as hidden. -R Recursively list subdirectories. -h Display help message. DIRECTORY The full path name to the directory. Wild cards are allowed, but only for the trailing part of the path, and should be protected from the shell. If this parameter is relative, it is assumed to be relative to the "My Documents" folder. Similarly, if this parame- ter is omitted, the contents of the "My Documents" folder is listed. AUTHOR
This manual page was written by David Eriksson <twogood@users.sourceforge.net>. SEE ALSO
synce(1) pcp(1) pls(1) prm(1) pmkdir(1) prmdir(1) The SynCE project November 2002 PLS(1)