Changes between Version 2 and Version 3 of WebInGnowsis


Ignore:
Timestamp:
07/25/06 14:45:50 (18 years ago)
Author:
sauermann
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebInGnowsis

    v2 v3  
    1515 
    1616To add new servlets, program the servlet code in the application source packages. Then add the servlet-mapping definitions as usual to the web.xml file. 
     17 
     18== Embedding images in webpages == 
     19The local gnowsis server runs at 127.0.0.1:9993, for a web-browser this looks like any webserver. So the webbrowser will allow you to embed images in your web-applications if they have URLs that point to web images, not to file images on your harddisk. 
     20{{{ 
     21<img src="picture.jpg" /> 
     22<img src="/gnowsis-server/picture.jpg" /> 
     23<img src="http://example.com/picture.jpg" /> 
     24 
     25this is not allowed due to security restrictions in the web browser: 
     26<img src="file:/C:/picture.jpg" /> 
     27 
     28}}} 
     29 
     30As a workaround we provided a servlet that loads local images and returns them, it works like this: 
     31{{{ 
     32<img src="/gnowsis-server/showimage?uri=file:/C:/picture.jpg" /> 
     33<!-- long version --> 
     34<img src="http://127.0.0.1:9993/gnowsis-server/showimage?url=file:/C:/1/pic.jpg" /> 
     35}}} 
    1736 
    1837= JSP Java Server Pages in Gnowsis =