Solved

Vignette with servlets

Posted on 2002-07-26
9
424 Views
Last Modified: 2010-03-17
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
Comment
Question by:oarnaiz
9 Comments
 

Expert Comment

by:jlorente
ID: 7179738
  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
 

Author Comment

by:oarnaiz
ID: 7179752
El experto no se donde está, de hecho no creo ni que exista. ¿Existen los expertos aquí? Gran duda metafísica.
0
 

Author Comment

by:oarnaiz
ID: 7179755
El experto no se donde está, de hecho no creo ni que exista. ¿Existen los expertos aquí? Gran duda metafísica.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Expert Comment

by:jlorente
ID: 7179767
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
 

Expert Comment

by:jlorente
ID: 7179977
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
 

Expert Comment

by:Captain_Vignette
ID: 7203036
 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
 

Author Comment

by:oarnaiz
ID: 7208335
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
 
LVL 1

Accepted Solution

by:
e1ucas earned 100 total points
ID: 7357012
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
 

Expert Comment

by:xunux
ID: 7446232
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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question