Sorry for disturbing,

i found the mistake in the BarcodeServlet which stops processing of the
image.

Regards
Franz Poppenborg

> -----Ursprüngliche Nachricht-----
> Von:  Poppenborg, Franz [SMTP:[EMAIL PROTECTED]
> Gesendet am:  Montag, 16. Februar 2004 12:56
> An:   '[EMAIL PROTECTED]'
> Betreff:      Problem with calling another servlet to create an image
> 
> Hi,
> 
> i have written an application to create a barcode. Therefore i get some
> information from the user and then create a barcode out of it. For barcode
> creation i am using a servlet from java4less.com. I installed the
> BarcodeServlet in the same webapp as my application and put in the
> resulting
> jsp a <html:img> Tag. But the result is a red cross in the Internet
> Explorer. Also trying to show the image via the Context Menu has no
> success.
> 
> The Tag is written like this:
> <html:img
> page="/BarcodeServlet?FORMAT=JPEG&WIDTH=800&HEIGHT=500&CODE_TYPE=PDF417&BA
> R_
> HEIGHT=0.2&X=0.03&PDF_COLUMNS=20&PDF_ROWS=0&BACK_COLOR=WHITE&BAR_COLOR=BLA
> CK
> &FONT_COLOR=WHITE&PDF_COMPACTION=TEXT&PDF_ECLEVEL=0&DEBUG=ON&BARCODE=ABCDE
> Fg
> hij1234567890"/>
> 
> and is expanded to this:
> <img
> src="/TestBarcode/BarcodeServlet?FORMAT=JPEG&WIDTH=800&HEIGHT=500&CODE_TYP
> E=
> PDF417&BAR_HEIGHT=0.2&X=0.03&PDF_COLUMNS=20&PDF_ROWS=0&BACK_COLOR=WHITE&BA
> R_
> COLOR=BLACK&FONT_COLOR=WHITE&PDF_COMPACTION=TEXT&PDF_ECLEVEL=0&DEBUG=ON&BA
> RC
> ODE=ABCDEFghij1234567890">
> 
> That looks for me ok and if i put the second image Tag in a normal
> HTML-Page
> the Barcode is shown.
> 
> I have found in the log File stderr.log the line: Referer:
> http://127.0.0.1:8080/WackerBarcode/action/createBarcode. This line is
> shown
> every time i am requesting the action which should show me the Barcode.
> 
> Can anybody explain me how to create the barcode with Struts?
> 
> > Thanks in advance
> Franz Poppenborg
> 
> ----------------------------------------------------------------------
>  B U H L M A N N    Rohr-Fittings-Stahlhandel GmbH + Co. KG
> 
>  Arberger Hafendamm 1                 --  28309 Bremen / Germany
>  Tel.: +49 (0)421 4586-231            --  Fax: +49 (0)421 4586-234 
>  email:[EMAIL PROTECTED]      --  Internet: WWW.BUHLMANN.DE
>  
>  "Tube Solutions - We know how"
> ----------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to