Solved

Vignette with servlets

Posted on 2002-07-26
9
425 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wmware 10 342
IBM WAS 8.5 Deploying a war 3 61
Does Glassfish could complete substitute Tomcat ? 1 217
VMWare environment audit 8 126
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

732 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