Displaying Marshalled Object from HTTPServlet::FileHandler


#1

Hi. I have a series of objects I have marshalled to disk as files.

When I browse the marshalled files in the directory browser, I would
like them to be able to be loaded by the marshaller and then display
information about themselves as HTML embedded in the directory listing
HTML page.

How do I go about implementing this?

Thanks.


#2

Aaron Becker wrote:

Hi. I have a series of objects I have marshalled to disk as files.

When I browse the marshalled files in the directory browser, I would
like them to be able to be loaded by the marshaller and then display
information about themselves as HTML embedded in the directory listing
HTML page.

How do I go about implementing this?

Thanks.

Looks like I just need to inherit from HTTPServlet::FileHandle and
override the set_dir_list method.

I’m a newbie with Ruby. What’s the easiest way to do this?

Thanks.