RE: Storing the Output of a Servlet to Database

2003-06-05 Thread Rajesh P
Thanks Craig, for the input. I was able to capture the output using servlet filter and 
the response wrapper classes.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:39 AM
To: Struts Users Mailing List
Subject: RE: Storing the Output of a Servlet to Database




On Tue, 3 Jun 2003, Rajesh P wrote:

> Date: Tue, 3 Jun 2003 19:53:39 +0530
> From: Rajesh P <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Storing the Output of a Servlet to Database
>
> Hi,

> I am aware of how to store the contents to the database. What i am
> really interested is how to capture the output of the servlet. Forget
> PDF, assume that the Servlet is just serving a normal html content.
> After the servlet has given this to the response, how to capture this as
> a byte stream is my real question.

In a Servlet 2.3 environment, you can easily create a Filter that wraps
the response and copies the output into a buffer to write to your
database, as well as sends it back on to the client.  There have been
articles written describing this sort of thing that a Google search ought
to find for you.

> Thanks, Rajesh


Craig

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



RE: Illegal target of jump or branch

2003-06-04 Thread Rajesh P
Try to split the JSP page and use  in the 
main jsp.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 5:25 PM
To: [EMAIL PROTECTED]
Subject: Illegal target of jump or branch


Hi, I'm  using a b3 version of Struts everything works fine my problem occurs 
when I try to use a lot of tags in the same page,about 120 ( many of them are 
img tag...)
The page that generetes the error is included with tiles in another page.
BTW I'm coding all with Pramati Studio.

Thanks a lot.
Marco.

This is how the error looks like:

 java.lang.VerifyError: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
;)V) Illegal target of jump or branch
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet
(PramatiServletFactory.java:220)
at com.pramati.web.servlet.core.PramatiServletFactory.getServlet
(PramatiServletFactory.java:317)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:169)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
Unhandled Error/ exception thrown from service method 
of "org.apache.struts.action.ActionServlet". Error is: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
;)V) Illegal target of jump or branch
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at org.apache.struts.taglib.tiles.InsertTag.doInclude
(InsertTag.java:703)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at com.pramati.jsp.generated.layout_eLeafLayout_pmt_0._jspService
(layout_eLeafLayout_pmt_0.java:662)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:172)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at org.apache.struts.taglib.tiles.InsertTag.doInclude
(InsertTag.java:703)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at 
com.pramati.jsp.generated.webboard_message_page_message_pmt_0._jspService
(webboard_message_page_message_pmt_0.java:76)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward
(PramatiRequestDispatcher.java:105)
at org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1033)
at org.apache.struts.tiles.TilesRequestProcessor.doForward
(TilesRequestProcessor.java:269)
at org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:436)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
(TilesRequestProcessor.java:312)
at org.apache.struts.action.RequestProcessor.processActionForward
(RequestProcessor.java:401)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run
(ServiceInterceptor.java:294)
at com.pramati.security.util.JAASSecurityHelper.doAs
(JAASSecurityHelper.java:145)
at java.lang.reflect.Method.invoke(Native Method)
at com.pramati.services.security.spi.SecurityHelper.doAs
(SecurityHelper.java:130)
at com.pramati.web.interceptors.ServiceInterceptor.preProcess
(ServiceInterceptor.java:141)
at com.pramati.web.interceptors.core.DefaultInterceptor.process
(DefaultInterceptor.java:47)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(InterceptorChainImpl.java:48)
at com.pramati.web.interceptors.FilterInterceptor.process
(FilterInterceptor.java:92)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(Interceptor

RE: Storing the Output of a Servlet to Database

2003-06-04 Thread Rajesh P
Hi,
I am aware of how to store the contents to the database. What i am really interested 
is how to capture the output of the servlet. Forget PDF, assume that the Servlet is 
just serving a normal html content. After the servlet has given this to the response, 
how to capture this as a byte stream is my real question.
Thanks,
Rajesh

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 7:44 PM
To: Struts Users Mailing List
Subject: RE: Storing the Output of a Servlet to Database



Ideally, you should store the document on file system, the better place for
PDF BUT you may some weird requirement
Anyway, if you are adamant on doing this.

--first way--

0. create a field in your database with blob data type. (I have MySQL) but
oracle/ mssql7 all have this data type.
1. generated pdf document needs to converted into binary data. ( it is be
default ;-)
2. write it down to that field as normal query.

you may wish to see java.sql.Blob and java.sql.prepraedStatement.setBlob

--second way--
0. create a field in your database with varbinary type.
1. generated pdf document. read it as byte stream and get arrys of bytes.
2. write it down to that field as normal query.

see java.sql.prepraedStatement.setBytes

HTH
navjot



|-Original Message-
|From: Rajesh P [mailto:[EMAIL PROTECTED]
|Sent: Tuesday, June 03, 2003 5:28 PM
|To: Struts Users Mailing List
|Subject: Storing the Output of a Servlet to Database
|
|
|Hello Everyone,
|I have a requirement wherein a Servlet class is used to generate a
|PDF document. This output should be stored into a database table
|for future retrieval. Can somebody tell me how this output of the
|Servlet can be captured and stored into a database table? Or
|rather, how to capture the response outputstream, convert it to
|bytes so that it can be persisted in the datbase. Please note that
|we are not allowed to write to a File and then upload it.
|Thanks,
|Rajesh
|
|-
|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]


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



RE: Storing the Output of a Servlet to Database

2003-06-03 Thread Rajesh P
Hi,
The option 2 is what i am looking at. The API for generating the PDF writes to the 
servlet outputstream directly. So for the time being forget PDF, say, I need to 
capture the output of any servlet, say a html content, and store that to a db or file, 
how do I do that?
Thanks for the response.
Rajesh

-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 5:40 PM
To: Struts Users Mailing List
Subject: RE: Storing the Output of a Servlet to Database


Hi
There are various ways u can do this.

approach 1:
simple and best approach.. create a PDF file in the weblocaiton and compose 
the path and store it. when ever u want u can make use of it.

appraoch 2
Create a CLob column once the PDF is generated push to a DA method before 
giving it to Servlet.

apprach 3
Create a BFIle useit.

-Original Message-
From: Rajesh P [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 5:28 PM
To: Struts Users Mailing List
Subject: Storing the Output of a Servlet to Database


Hello Everyone,
I have a requirement wherein a Servlet class is used to generate a PDF document. This 
output should be stored into a database table for future retrieval. Can somebody tell 
me how this output of the Servlet can be captured and stored into a database table? Or 
rather, how to capture the response outputstream, convert it to bytes so that it can 
be persisted in the datbase. Please note that we are not allowed to write to a File 
and then upload it.  
Thanks, 
Rajesh 

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



Storing the Output of a Servlet to Database

2003-06-03 Thread Rajesh P
Hello Everyone,
I have a requirement wherein a Servlet class is used to generate a PDF document. This 
output should be stored into a database table for future retrieval. Can somebody tell 
me how this output of the Servlet can be captured and stored into a database table? Or 
rather, how to capture the response outputstream, convert it to bytes so that it can 
be persisted in the datbase. Please note that we are not allowed to write to a File 
and then upload it.  
Thanks, 
Rajesh 

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



RE: Custom tags with Struts

2003-02-19 Thread Rajesh P
Hi Tom,
Thanks for the tip. I used the tag as follows:




Rajesh

-Original Message-
From: Tom Ziemer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 9:58 PM
To: Struts Users Mailing List
Subject: Re: Custom tags with Struts


Hi,

I've had a similar problem - and there really doen not seem to be any 
"good" solution. You might try it with a scriptlet - something like
<%
String price = .getPrice();
%>
then you can call your custom tag with:


That's certainly not nice but it'll work.

Hope that helps,

Tom

Rajesh P wrote:
> Hello Everyone,
> I had created a Custom tag for formatting number to decimal places based on some 
>business rules. The tag looks like this:
> 
> In the value attribute I need to send data from my form bean. I tried as follows:
> 
> I tried with single quotes and double quotes, but the custom tag does not evaluate 
>the struts bean tag but takes the value as ""
> Please, can anyone tell me how i can proceed with this.
> Thanks in advance,
> Rajesh
> 
> -
> 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]


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




RE: Custom tags with Struts

2003-02-18 Thread Rajesh P
but i was able to use the struts tag within a html tag as follows:




-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 9:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Custom tags with Struts


You can't use a tag as input to another tag's attributes.

David



>From: "Rajesh P" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Custom tags with Struts Date: Tue, 18 Feb 2003 20:49:48 +0530
>
>Hello Everyone,
>I had created a Custom tag for formatting number to decimal places based on 
>some business rules. The tag looks like this:
>
>In the value attribute I need to send data from my form bean. I tried as 
>follows:
>
>I tried with single quotes and double quotes, but the custom tag does not 
>evaluate the struts bean tag but takes the value as "name="fbname" value="price"/>"
>Please, can anyone tell me how i can proceed with this.
>Thanks in advance,
>Rajesh
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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




Custom tags with Struts

2003-02-18 Thread Rajesh P
Hello Everyone,
I had created a Custom tag for formatting number to decimal places based on some 
business rules. The tag looks like this:

In the value attribute I need to send data from my form bean. I tried as follows:

I tried with single quotes and double quotes, but the custom tag does not evaluate the 
struts bean tag but takes the value as ""
Please, can anyone tell me how i can proceed with this.
Thanks in advance,
Rajesh

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




RE: [Fwd: invalid e-mail address]

2002-08-15 Thread Rajesh P

I did sent them a mail and got the following reply. 

*
Recently you requested personal assistance from our on-line support
center. Below is a summary of your request and our response.

We will assume your issue has been resolved if we do not hear from you
within 48 hours.
Thank you for allowing us to be of service to you.

You may also update this question by replying to this message. Because
your reply will be automatically processed, you MUST enter your reply
in the space below. Text entered into any other part of this message
will be discarded.
[===> Please enter your reply below this line <===]

[===> Please enter your reply above this line <===]

If your issue remains unresolved, please update this question at
http://invitrogen.custhelp.com/cgi-bin/invitrogen.cfg/php/enduser/acct_l
ogin.php?[EMAIL PROTECTED]&p_next_page=myq_upd.php&p_refno=0
20809-16&p_created=1028898230


Subject
---
Please Stop AutoReply


Discussion Thread
---
Response (ITESIC) - 08/09/2002 10:15 AM
Dear Rajesh,

i appologize for the problems you are experiencing.  I will forward your
e-mail to our web team and they will take care of it.  I hope this is
helpful, please let me know if there is anything else I could do for
you.

Customer (Rajesh P) - 08/09/2002 06:03 AM
Hi,
I get a autoreply from [EMAIL PROTECTED] whenever i send a mail
to Struts and j2eepatters user mailing list. Please take care of it.
Thanx,
Rajesh



Ivan Tesic, Ph.D.
Invitrogen Technical Service

Please give us your feedback by filling out this brief survey.  Just
click on the link below.  

http://invitrogen.custhelp.com/cgi-bin/invitrogen_metrics.cfg/websurveys
/ws?_133=40

Thank you for helping to improve our service!
*



-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 4:31 AM
To: 'Struts Users Mailing List'
Subject: RE: [Fwd: invalid e-mail address]


Well, I sent mail to [EMAIL PROTECTED] That's the standard
format
for an SMTP postmaster address. The message didn't bounce, but I guess I
can't guarantee that it was actually read by a human...

--
Martin Cooper


> -Original Message-
> From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 3:47 PM
> To: Struts Users Mailing List
> Subject: RE: [Fwd: invalid e-mail address]
> 
> 
> What's the invitrogen.com support email?  I'll definitely 
> fire off an email or 20 to them to check their logs if I had 
> the address.  Their crummy site makes you send questions via a form.
> 
> peace,
> Joe
> 
> -Original Message-
> From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 3:40 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Fwd: invalid e-mail address]
> 
> 
> 
> 
> > -Original Message-
> > From: Cliff Rowley [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 15, 2002 7:50 AM
> > To: Struts Users Mailing List
> > Subject: RE: [Fwd: invalid e-mail address]
> > 
> > 
> > On Thu, 2002-08-15 at 15:47, James Mitchell wrote:
> > > I've already sent a message to them (and copied Craig).
> > > 
> > > Apparently, someone is forwarding from a 'good' address to 
> > a 'bad' address.
> > 
> > D'oh!  Someone needs a slap!
> > 
> > > I asked them to check their log files so we can resolve this.
> > > 
> > > No luck so far.
> > 
> > Perhaps everyone on the list should email the invitrogen.com support
> > address requesting they check their logs to find out what the 
> > offending
> > address is.  Perhaps if we kept that up for a week they'd respond ;)
> 
> I did send mail to their postmaster about a week ago, but 
> never heard back.
> 
> --
> Martin Cooper
> 
> 
> > 
> > (NOT suggesting we *actually* do it - all is 'sic'!)
> > -- 
> > 
> > Regards
> > 
> > ---
> >  Cliff Rowley| [EMAIL PROTECTED]
> >  Software Engineer   |   www.doctype.co.uk
> >  +44 (0) 1206 514263 | www.cliffrowley.com
> > ---
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 


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


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




RE: Deploying Struts on WebSphere Application Server 4.0.2

2002-08-09 Thread Rajesh P

Join the club with the dreaded websphere server.
Try placing the latest xerces and xalan jar files in the lib directory.
Rajesh

-Original Message-
From: Marco Pöhler [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 6:15 PM
To: Struts Users Mailing List
Subject: Deploying Struts on WebSphere Application Server 4.0.2


Hi,

i have a problem deploying my struts application on WebSphere
Application
Server 4.0.2. I found similar problems in this list relating to Tomcat,
but
no relating to WebSphere.

I have a trace attached, any ideas welcome!

thanks in advance

Marco

---snipp---
 Der Server wird gestartet 
IBM WebSphere Application Server, Release 4.0.2
Advanced Single Server Edition for Multiplatforms
Copyright IBM Corp., 1997-2001

 Start Display Current Environment 
WebSphere AEs 4.0.2 a0150.05 running with process name localhost/Default
Server and process id 1584
Host Operating System is Windows 2000, version 5.0
Java version = J2RE 1.3.0 IBM build cn130-20010925was (JIT enabled:
jitc),
Java Compiler = jitc, Java VM name = Classic VM
server.root = C:/Programme/IBM/Application
...
[Servlet-Protokoll]: action: Loading application resources from resource
ApplicationResources
[09.08.02 14:29:40:502 GMT+02:00] 551319e2 WebGroup  I SRVE0091I:
[Servlet-Protokoll]: action: Initializing configuration from resource
path
/WEB-INF/struts-config.xml
[09.08.02 14:29:40:542 GMT+02:00] 551319e2 SystemOut U
register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN',
'jar:file:/C:/Programme/IBM/Application
Developer/workspace/CN_BSC3_Web/webApplication/WEB-INF/lib/struts.jar!/o
rg/a
pache/struts/resources/struts-config_1_0.dtd'
[09.08.02 14:29:40:542 GMT+02:00] 551319e2 SystemOut U
register('-//Sun
Microsystems, Inc.//DTD Web Application 2.2//EN',
'jar:file:/C:/Programme/IBM/Application
Developer/workspace/CN_BSC3_Web/webApplication/WEB-INF/lib/struts.jar!/o
rg/a
pache/struts/resources/web-app_2_2.dtd'
[09.08.02 14:29:40:562 GMT+02:00] 551319e2 SystemOut U
register('-//Sun
Microsystems, Inc.//DTD Web Application 2.3//EN',
'jar:file:/C:/Programme/IBM/Application
Developer/workspace/CN_BSC3_Web/webApplication/WEB-INF/lib/struts.jar!/o
rg/a
pache/struts/resources/web-app_2_3.dtd'
[09.08.02 14:29:40:592 GMT+02:00] 551319e2 SystemOut U
Digester.getParser:
[09.08.02 14:29:40:592 GMT+02:00] 551319e2 SystemOut U
java.lang.ClassCastException:
org.apache.xerces.jaxp.SAXParserFactoryImpl

 - that is where it crashs

[09.08.02 14:29:40:752 GMT+02:00] 551319e2 SystemOut U  at
javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
[09.08.02 14:29:40:752 GMT+02:00] 551319e2 SystemOut U  at
org.apache.struts.digester.Digester.getParser(Digester.java:275)
[09.08.02 14:29:40:752 GMT+02:00] 551319e2 SystemOut U  at
org.apache.struts.digester.Digester.parse(Digester.java:755)
[09.08.02 14:29:40:762 GMT+02:00] 551319e2 SystemOut U  at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:13
32)
[09.08.02 14:29:40:762 GMT+02:00] 551319e2 SystemOut U  at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
[09.08.02 14:29:40:762 GMT+02:00] 551319e2 SystemOut U  at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
[09.08.02 14:29:40:762 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
r.ja
va:802)
[09.08.02 14:29:40:762 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecyc
leSe
rvlet.java:141)
[09.08.02 14:29:40:762 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLife
cycl
eServlet.java:254)
[09.08.02 14:29:40:762 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycl
eSer
vlet.java:107)
[09.08.02 14:29:40:762 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:3
88)
[09.08.02 14:29:40:762 GMT+02:00] 551319e2 SystemOut U  at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
[09.08.02 14:29:40:772 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.j
ava:
84)
[09.08.02 14:29:40:772 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppSer
vlet
Manager.java:226)
[09.08.02 14:29:40:772 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(
WebA
ppServletManager.java:357)
[09.08.02 14:29:40:792 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1010
)
[09.08.02 14:29:40:802 GMT+02:00] 551319e2 SystemOut U  at
com.ibm.servlet.engine.webapp.WebApp.init(WebApp

Need a Design pattern suggestion

2002-07-29 Thread Rajesh P

Hi,
Have a small problem on deciding the approach. 
We have a datasource which is a C++ server that returns data in the form
of a byte array ranging from 8000 to 32000 bytes of data. There would be
many chunks of such byte arrays.
FYI, we are using the Struts framework.

Requirement:
1) To be able to parse this byte array according to a predefined format
and display it in the JSP in the form of a table.
2) To be able to sort on the displayed columns of the table.
3) The transaction involves navigation across multiple screens. 
For ex, 
a) in the first screen I would be displaying the Customer Number and
Name along with a list of Orders in the form of a table.
b) Clicking on one of the orders takes to the second screen
c) In the second screen, it is required to display the Customer number,
name, selected order details as header and a list of line items
associated with the order (in the table format).
So now when we navigate to the second screen, the Customer number, name
and selected order details should be got from the byte array fetched and
only the line items should be taken from the C++ datasource. So there
should be a mechanism to retrieve any data from the byte array based on
a key value.

We have thought of the following approaches.
1) Create objects which would hold each record of the byte array. In
such a case, the disadvantage would be the number of objects which are
created that would hit the performance. Advantage would be that a
collection sort on the object would simplify the sorting process.
2) Have the byte array as it is and parse on it each time it is
required. In this case, a sorting of the records would be dicey.

Can you kindly suggest a mechanism which would be best suited to satisfy
the performance as well.

Thanks in advance,
Regards
Rajesh


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Urgent: Loading message resources from Database

2002-07-24 Thread Rajesh P

Hi,
Can anybody give me the steps to fetch the message resources from a
database table rather than from a .properties file.
Please do help.
Thanks in advance,
Regards,
Rajesh

--
To unsubscribe, e-mail:   
For additional commands, e-mail: