# Displaying Marshalled Object from HTTPServlet::FileHandler

**URL:** <https://www.ruby-forum.com/t/displaying-marshalled-object-from-httpservlet-filehandler/78859>\
**Category:** Ruby\
**Created:** [March 9, 2006, 2:58am UTC](https://www.ruby-forum.com/t/displaying-marshalled-object-from-httpservlet-filehandler/78859 "2006-03-09T02:58:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hackdaddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e99b99/32.png) [@hackdaddy](https://www.ruby-forum.com/u/hackdaddy)\
**Post date:** [March 9, 2006, 2:58am UTC](https://www.ruby-forum.com/t/displaying-marshalled-object-from-httpservlet-filehandler/78859/1 "2006-03-09T02:58:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![hackdaddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e99b99/32.png) [@hackdaddy](https://www.ruby-forum.com/u/hackdaddy)\
**Post date:** [March 9, 2006, 3:26am UTC](https://www.ruby-forum.com/t/displaying-marshalled-object-from-httpservlet-filehandler/78859/2 "2006-03-09T03:26:41Z")

</div>

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.
