• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

Vignette with servlets

System description:
Web Server: Internet Information Server
Application Server: WebSphere 4.0
Vignette Version: 6.0.1 (VCMS)

I am doing an application that needs to use servlets (to show images from a BLOB of Oracle), but the reference to the servlet not works. I put the servlet (*.class) in the WEB-INF/classes of the folder where I have the Vignette application.
I have read that VCMS needs a Servlet Engine Plug-in to servlet support but I don´t know if that it is the problem or not.
In the IBM support appear the redirector to redirecting servlets instead the Servlet Engine Plug-in, is the same?
I have asked to IBM and Vignette support but they haven´t answer yet. If someone knows that I needs to run the servlets...
Thanks a lot.  
0
oarnaiz
Asked:
oarnaiz
1 Solution
 
jlorenteCommented:
  Bueno. Segun lo que me dices, se supone que trabajas en una empresa donde habra expertos en Vignette que te puedan ayudar.

   De todos modos, te convendria leerte la API de Vignette, porque siempre te puede ayudar en algo.

   Espero que te haya servido de algo.

   Saludos.
0
 
oarnaizAuthor Commented:
El experto no se donde está, de hecho no creo ni que exista. ¿Existen los expertos aquí? Gran duda metafísica.
0
 
oarnaizAuthor Commented:
El experto no se donde está, de hecho no creo ni que exista. ¿Existen los expertos aquí? Gran duda metafísica.
0
The Firewall Audit Checklist

Preparing for a firewall audit today is almost impossible.
AlgoSec, together with some of the largest global organizations and auditors, has created a checklist to follow when preparing for your firewall audit. Simplify risk mitigation while staying compliant all of the time!

 
jlorenteCommented:
Bueno. En ese caso, y dado que no existen expertos, ya te intento ayudar yo.

   En primer lugar tienes que intentar hacer que el departamento de TI sepa instalar y hacer funcionar Vignette de una manera correcta.

   En segundo lugar, tienes que hacerles ver que tu eres el experto, y que ellos han de intentar aprender de ti.


   Por ultimo, y no menos importante, debes de aplazar tus vacaciones pero ya, eso si que es lo fundamental, y si me apuras, renunciar a ellas y al sueldo que te corresponderia por ellas ofreciendoselo a tu otro compañero en Vignette.

0
 
jlorenteCommented:
Pues na cabroncete. Que como te piras de vacaciones ya no te digo como se hace, porque ademas me rechazas las respuesta.

   Ala majeton. A pasarlo bien. Saludos a los que toquen en los conciertos de mis partes. No bebas mucho y cuidate que tienes que venir en forma para seguir haciendo Vignette.
0
 
Captain_VignetteCommented:
 First of all you have to know if Vignette´s Installation was make correctly. If it is correctly, just search for the Plug-in you said you read, and may be your problem will be solved.
  Otherwise, just let IBM and Vignette support take a few
days and they will answer your question better than anyone else.
0
 
oarnaizAuthor Commented:
If I have the Servlet Engine Plug-in installed (I haven´t yet), then, where do I put the servlets? At WEB-INF/classes´ folder? And how do I reference the servlet in the jsp template?
Thanks.
0
 
e1ucasCommented:
If all else fails on the servlet idea, create a Tcl template and serve the images from there.  It's incredibly simple and takes literally two lines of code.  Some assumptions:

The table name is "image"
The column name storing the image is "image_blob"
The primary key is "image_id"
The template path is /image

Make sure the template is cached.  Make its default table "image".  If you're only going to serve one type of image (.gif or .jpg) then you can hardcode the template's extension in template properties to match the image type.  If you're serving multiple image types, then just leave the default extension alone.

The template code looks like this:
[NEEDS ID=image_id]
[FIELD image_blob]

The way you call it is like this:
<img src="[CURL /image $some_img_id EXT $whatever_ext]">

It couldn't be simpler.

-- Ed
0
 
xunuxCommented:
Assuming that you have developed a servlet, can place it into the WEB-INF/classes folder and reference to it from the jsp page by path /servlet/<servletName> . For example:

&lt;a href="<%=contextPath%>/servlet/<servletName>?param1=value1&param2=value2">Click here&lt;/a&gt;

xunux.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now