Here is an online shapefile viewer which reads shapefile using OGR and rendered on webpage. http://lsi.iiit.ac.in/lsi/shpviewer/ Here the shapefile is directly rendered without mapserver, geoserver like packages.The only library we used is GDAL
Please test it.
Looking forward your comments, BUGS && suggestions