Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Vignette with servlets

Posted on 2002-07-26
9
Medium Priority
?
434 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
Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

 

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 300 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
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.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

564 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