Solved

Vignette with servlets

Posted on 2002-07-26
9
419 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
Comment Utility
  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
Comment Utility
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
Comment Utility
El experto no se donde está, de hecho no creo ni que exista. ¿Existen los expertos aquí? Gran duda metafísica.
0
 

Expert Comment

by:jlorente
Comment Utility
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
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 

Expert Comment

by:jlorente
Comment Utility
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
Comment Utility
 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now