Re: Best practice for redirecting on session timeout?

2005-05-12 Thread Shailender Jain
Hello,

It should be done in the RequestProcessor.
If none of your JSP is doing a forward to other JSP directly.

Shailender Jain

Adam Lipscombe wrote:

 Folks,

 I there a standard way of handling session timeouts. If a user has been
 inactive for longer than N minutes I want to redirect them to the login
 page.

 It occurs to me that this could be done in a) the RequestProcessor or b) in
 an JSP include.

 Is there another way?
 What is best practice?

 TIA - Adam

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



Connection Leakage

2005-05-09 Thread Shailender Jain
Hello All,

I have got a application which is running live. (Struts with the usage
of DBCP for connection pooling)

We have found a problem that at many places we have not closed the
connections.
To solve this problem we thought of increasing the number of Maximum
active connection.
We are also  thinking if there is a way by which we can configure the
connection pool so  that it
should close the connection after some time if it is not done by the
code.

Thanks
Shailender Jain



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



Error While uploading file

2004-10-12 Thread Shailender Jain
Dear All,

I used the example given in struts for uploding the file.

org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-
data request failed. Read timed out

How can i change the settings so that the application does not give this
Error.

Thanks
Shailender Jain


getDataSource() in JSP

2004-10-06 Thread Shailender Jain
Hello,

I want to use the method getDataSource() from my JSP page.
I want to use this since  i am using some tag library to do some generic
things.

Can somebody let me know how i can use this function to get  connection
so that i can use them in tag library.
In this tag i will pass some sql query and it will generate some combo
box, table.


Thanks,
Shailender Jain



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



1000 separator

2004-10-03 Thread Shailender Jain
Hello,

Does anybody knows how to create a 1000 separator  for numbers using
struts tag library.
This should be similar to the one which can be done in Microsoft Word.

Thanks
Shailender Jain


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



Apache Tomcat

2004-09-30 Thread Shailender Jain
Hello All,

I have got a form which has got some 200 rows which needs to be
submitted to server for updation.
I am using Tomcat 5..0.16 as the webserver.

This passing of data from browser to server seems to be very slow.
Is there any way by which i  can increase the speed.

I know this is dependent on the network.
But can anything being done as a developer.

Thanks
Shailender Jain


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



File Download

2004-09-22 Thread Shailender Jain
Hi All,

Sorry if this slightly offline from the topic.


I want to give a download link on my browser  to the user so that
he can download a test  file from the server and save it into his local
machine
.
I have given a hyperlink to the user which points directly to the file
(download.txt)
But the problem is instead of downloading the file the contents of the
file get displayed in the browser.

What is the best way i can accomplish this?
Any help in Struts for doing this?

Thanks
Shailende Jain




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



Slow Response Time (Tomcat 5.0.16)

2004-09-18 Thread Shailender Jain
Hello All,

I am using Struts Framework and Tomcat 5.0.16 for the development of my
application.

The application seems to be working very slow as there is a lot of data
transmitted over the net.
I used the HttpCompression technique to reduce the response time from
the server to browser.
But this has solved the problem in one direction i.e server to browser.
The application seems to be still slow since there is a data transmitted
from Browser to server.

Is there any way i can reduce this.
Like using Apache with Tomcat

Any indication will be helpful


Regards
shailender jain


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



Database Mapping

2004-09-08 Thread Shailender Jain
Hai All,

Will it be possible in the Struts to do some mapping between the form
fields and
underlining database by writing queries in the xml file.
I want to develop a prototype with some functionality and do not want to
do
coding for this or minimal

I saw similar functionality with JDBC Connection Servlet Framework (jcs)
http://jresources.com
But the problem is that the support for this seems to have been removed.
If someone has got the JAR file
concerning this framework then please send it to me.


Any indication on this will be very helpful.

Thanks
Shailender Jain








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



Rapid Application Development

2004-09-02 Thread Shailender Jain
Hai,

I want to develop my new application using Struts Framework
This is a relatively big  application with more then 400 Function
Points.

Before we start developing we want to develop a prototype with some
functionality.
Does anyone have got the idea of any Rapid Application Development Tool.

The code generated by the tool should be such that i can re - use it
when i  start the development.

Thanks
Shailender Jain



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



Re: Accessing collections in jsp

2004-08-18 Thread Shailender Jain
In the (name=list)


Here the  list should be same as key used during setAttribute


VAN BROECK Jimmy wrote:

 Hmm, i don't think your Passaction code is complete??

 With this code, you would already get an nllpointerexception on the v variable!

 Aren't you missing something?

 Otherwise: try Vector v=new Vector();

 -Original Message-
 From: vineesh . kumar [mailto:[EMAIL PROTECTED]
 Sent: woensdag 18 augustus 2004 9:13
 To: [EMAIL PROTECTED]
 Subject: Accessing collections in jsp


 To pass a range of values i used
 in PassAction.java
 Vector v=null;
   v.add(somestring);
v.add(someotherstring);

 request.setAttribute(name,v);

 and in the jsp i tried to access it like

  logic:iterate id=mylist name=list
   Element Value: bean:write name=mylist /br /
 /logic:iterate

 but i got an error saying

 javax.servlet.ServletException: Cannot find bean list in scope request

 anyone know wat is this problem
 my struts-config action mapping is


 action
 path=/accountslisting
 type=com.c2rmnet.struts.action.AccountslistAction
 validate=false
 forward name=success path=/form/AccountListing.jsp /
 forward name=invalidsession path=/form/InvalidSession.jsp /
 /action

 Thanks
vinu

 STRICTLY PERSONAL AND CONFIDENTIAL
 This message may contain confidential and proprietary material for the sole use of 
 the intended recipient. Any review or distribution by others is strictly prohibited. 
 If you are not the intended recipient please contact the sender and delete all 
 copies.

 Ce Message est uniquement destiné aux destinataires indiqués et peut contenir des 
 informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas 
 révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message 
 par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de 
 le supprimer.

 Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke 
 informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit 
 bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft 
 ontvangen, gelieve er de afzender of De Post onmiddellijk van op de hoogte te 
 brengen en het bericht vervolgens te verwijderen.


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



HTTP Compression

2004-08-16 Thread Shailender Jain
Hi,

Using the servlet 2.3 specification one can compress the data (gzip)
while sending from server and uncompress
on the client (Browser).

Has anybody tried,  if  the reverse can be achieved i.e. the browser
always sends a compressed data  and webserver decompress it.
This can be important when the user submit a form which has got huge
data or uploads a text file.
Can anything be done in the Action class while using
request.getParameter(parameter_name)


Regards
Shailender Jain


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



Re: jdk 1.4.x support

2004-08-12 Thread Shailender Jain
Yes, I am using jdk 1.4.2 and it  is working

Viral_Thakkar wrote:

 Does struts 1.1 supports jdk 1.4.x?



 Regards,

 Viral






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



HTTP Compression (Struts)

2004-08-11 Thread Shailender Jain
Hi,

Has anybody used Http Compression technique for a web application
developed using Struts Framework.

Please provide the information

Shailender Jain


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



HTTP Compression

2004-08-06 Thread Shailender Jain
Hi,

I know this is not the right place to ask this question.

Has anybody ever used HTTP compression and image compression techniques
so that the web page is downloaded extremely fast.

Any pointers on this will be really helpful.

Shailender Jain


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



Re: HTTP Compression

2004-08-06 Thread Shailender Jain

Any pointers for these Servlet filter
I have no idea how to approach.

Emmanouil Batsis wrote:

 Shailender Jain wrote:

 Hi,
 
 I know this is not the right place to ask this question.
 
 Has anybody ever used HTTP compression and image compression techniques
 so that the web page is downloaded extremely fast.
 
 

 The usual way is to use a Servlet filter to compress the right content
 for the right clients. There is little or no meaning in compressing
 binary files (like images).

 Cheers,

 Manos

 -
 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: How to show a 'please wait' page while performing action

2004-08-05 Thread Shailender Jain
Hi,

Thanks for the response.

Can you send me the code snippet.
It will be really helpful.

Shailender Jain

[EMAIL PROTECTED] wrote:

 Yup buddy,
 We tested it in both the case and it worked pretty fine,

 But yup, the code to invoke div was a bit different in netscape*. If we
 need to keep support for multiple browser compatibility, get the browser
 name and version in start and code the page in DHTML  fashion and on
 change of the field call a wrapper function which will call either of
 the two functions (one for IE and another for Netscape)

 * That was one reason I didn't talk in code language to explain the
 approach.

 For such case, I will recommend to use mozila firebird with plugin to
 change its behavior as simulating any established browser (same mozilla
 browser can simulate itself as many as 8 browsers)

 - regards

 Raj
 (+91-11-31261821)

 -Original Message-
 From: Shailender Jain [mailto:[EMAIL PROTECTED]

 Sent: Thursday, August 05, 2004 2:09 PM
 To: Struts Users Mailing List
 Subject: Re: How to show a 'please wait' page while performing action

 Hi Tiwari,

 Did you tested this approach in Netscape.
 What was the result?

 I implemented the same thing and everything works fine in IE but not in
 Netscape?
 In netscape both the DIV starts coming.

 Shailender Jain

 [EMAIL PROTECTED] wrote:

  Hi Christian,
  Here I am giving you the approach we implemented to handle this
  scenario.
 
  We developed two separate presentations in two div of a html page
 before
  converting this page to JSP. One div (div1) of this just display
 Please
  wait, Work in Progress kind of message and second div (div2) contains
  the actual logic of processing.
 
  At the start of page somewhere, declare a JavaScript variable and by
  default make this variable false.
 
  By default show the visibility of div1 as true. Now at the end of page
  where all the processing has been done change the above declared
  variable as true.
 
  On change of this variable call a JavaScript function which will set
  visibility of div1 as false and div2 visibility as true.
 
  Then onwards, put your java code (scriptlet) into div2.
 
  Using this approach, we could smoothly implement please wait
 operation.
 
  Hope this will help you.
 
  - regards
 
  Raj
  (+91-11-31261821)
 
  -Original Message-
  From: news [mailto:[EMAIL PROTECTED] On Behalf Of Christian Riedel
  Sent: Thursday, August 05, 2004 1:55 PM
  To: [EMAIL PROTECTED]
  Subject: How to show a 'please wait' page while performing action
 
  Hi,
 
  I am trying to implement a page, that is shown during perfoming a file
 
  upload action.
 
  When the upload form is submitted I want a new page to be displayed
 
  showing a 'please wait' message. While this page is shown the actual
 
  file-upload should be performed and then, when the upload is finished,
 
  the actual 'result-page' should be shown.
 
  By now I can only submit the form. the file-upload starts and the page
 
  does not do anything until the upload is completed. So if the upload
 
  takes a long time the user does not really know what's happening.
 
  Can anyone help me with this?
 
  TIA
 
  Christian
  --
 
  To reply to this posting directly use the following address and
  remove the 'NO-SPAM' part: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  Confidentiality Notice
 
  The information contained in this electronic message and any
 attachments to this message are intended
  for the exclusive use of the addressee(s) and may contain confidential
 or privileged information. If
  you are not the intended recipient, please notify the sender at Wipro
 or [EMAIL PROTECTED] immediately
  and destroy all copies of this message and any attachments.
 
  -
  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]

 Confidentiality Notice

 The information contained in this electronic message and any attachments to this 
 message are intended
 for the exclusive use of the addressee(s) and may contain confidential or privileged 
 information. If
 you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
 PROTECTED] immediately
 and destroy all copies of this message and any attachments.

 -
 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: OT: IE loosing session / cookies

2004-08-05 Thread Shailender Jain
There is a problem for I.E 5.5  SP1 on Windows XP
Provide the complete environment details

Rosenberg, Leon wrote:

 Hi,



 A bit off-topic, but maybe you have had this too...



 We have an application running with struts on tomcat 5 in an application
 running with xslt on tomcat 3 in a frame.

 The problem is, that explorer doesn't send the jsession cookie to the
 embedded application (we tcpdumped this).



 The embedded application is running under different domain, it works
 fine with mozilla and firefox.



 Does anybody know anything about this problem?



 Regards

 Leon


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



Hibernate

2004-07-27 Thread Shailender Jain
Hi,

I have just completed my application using Strut.
I have gone through some of the e-mails talking about Hibernate.

In my further enhancement of my application i want to use some object
persistence mechanism to make my application run faster.

Has anybody used Struts with Hibernate?
Did anyone faced memory problem related to Hibernate.
I have got tables which have got more then 10 million records.

Regards,
Shailender Jain


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



Re: executeBatch

2004-07-26 Thread Shailender Jain
Hi,

I experimented this executeBatch with 13500  records.

Here are the results

Number of Records At one Time Time
100  20 Seconds
200  45 Seconds
500  
Application Hang



The only Quesion here is why there is a optimium result for 100 records?

Regards
Shailender Jain



[EMAIL PROTECTED] wrote:

 Did you experiment breaking the batch to 2-3 packs? (500-800 in one go).

 - regards

 Raj
 (+91-11-31261821)

 -Original Message-
 From: Shailender Jain [mailto:[EMAIL PROTECTED]

 Sent: Monday, July 26, 2004 10:07 AM
 To: [EMAIL PROTECTED]
 Subject: executeBatch

 Hi,

 I want to insert some 3000 records in the database.

 I  tried using executeBatch()  to insert all the records at a go.
 But the application gets hang and nothing happens.

 When i try using PreparedStatement then it does work and just takes some
 30 seconds.
 I am using Informix as the database and the DriverClass in ifxjdbc.jar.
 I checked the specification of the driver
 and it promises to be jdbc2.0  compliant.

 Any idea on how to improve the performance?

 Regards
 Shailender Jain

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

 Confidentiality Notice

 The information contained in this electronic message and any attachments to this 
 message are intended
 for the exclusive use of the addressee(s) and may contain confidential or privileged 
 information. If
 you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
 PROTECTED] immediately
 and destroy all copies of this message and any attachments.

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


Re: executeBatch

2004-07-26 Thread Shailender Jain
Where does the log gets generated.
I am using Struts with Tomcat 5.0.16.

Is there any configuration which i need to change so that some log gets generated.
I checked the catalina.out generated by Tomcat but there was nothing i could see there.



[EMAIL PROTECTED] wrote:

 Wot does log say ??

 Can you give us the log output ?

 Regds
 r-a-v-i

 -Original Message-
 From: Shailender Jain [mailto:[EMAIL PROTECTED]

 Sent: Monday, July 26, 2004 12:26 PM
 To: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: Re: executeBatch

 Hi,

 I experimented this executeBatch with 13500  records.

 Here are the results

 Number of Records At one Time Time
 100  20 
 Seconds
 200  45 
 Seconds
 500  
 Application Hang

 The only Quesion here is why there is a optimium result for 100 records?

 Regards
 Shailender Jain

 [EMAIL PROTECTED] wrote:

  Did you experiment breaking the batch to 2-3 packs? (500-800 in one

  go).
 
  - regards
 
  Raj
  (+91-11-31261821)
 
  -Original Message-
  From: Shailender Jain [mailto:[EMAIL PROTECTED]
 
  Sent: Monday, July 26, 2004 10:07 AM
  To: [EMAIL PROTECTED]
  Subject: executeBatch
 
  Hi,
 
  I want to insert some 3000 records in the database.
 
  I  tried using executeBatch()  to insert all the records at a go. But

  the application gets hang and nothing happens.
 
  When i try using PreparedStatement then it does work and just takes

  some 30 seconds. I am using Informix as the database and the

  DriverClass in ifxjdbc.jar. I checked the specification of the driver
  and it promises to be jdbc2.0  compliant.
 
  Any idea on how to improve the performance?
 
  Regards
  Shailender Jain
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  Confidentiality Notice
 
  The information contained in this electronic message and any

  attachments to this message are intended for the exclusive use of the

  addressee(s) and may contain confidential or privileged information.

  If you are not the intended recipient, please notify the sender at

  Wipro or [EMAIL PROTECTED] immediately and destroy all copies of

  this message and any attachments.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 Confidentiality Notice

 The information contained in this electronic message and any attachments to this 
 message are intended
 for the exclusive use of the addressee(s) and may contain confidential or privileged 
 information. If
 you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
 PROTECTED] immediately
 and destroy all copies of this message and any attachments.

 -
 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: executeBatch

2004-07-26 Thread Shailender Jain
for (CONDITION) {insert into }

Amit Kumar Sharma wrote:

 Dear Shailender,

 What type of insert are you trying to do, is it a single insert(eg:
 Insert into (select * from *)) or multiple insert (eg
 for(CONDITION){insert into})

 Regards
 Amit

 -Original Message-
 From: Shailender Jain [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 26, 2004 10:07 AM
 To: [EMAIL PROTECTED]
 Subject: executeBatch

 Hi,

 I want to insert some 3000 records in the database.

 I  tried using executeBatch()  to insert all the records at a go.
 But the application gets hang and nothing happens.

 When i try using PreparedStatement then it does work and just takes some
 30 seconds.
 I am using Informix as the database and the DriverClass in ifxjdbc.jar.
 I checked the specification of the driver
 and it promises to be jdbc2.0  compliant.

 Any idea on how to improve the performance?

 Regards
 Shailender Jain

 -
 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: Intermediate loading page

2004-07-25 Thread Shailender Jain
Hi Puneet,

I am really in needs of such a type of javascript code.
This code should work both on IE and netscape.

I know i need to use the DIV and LAYER tag.
Any indicator for such a  type of code will be really helpfull.


Regards
Shailender Jain

[EMAIL PROTECTED] wrote:


 But if you change your approach of showing work in process label,
 while the report is being generated, to this one, both your problems
 get solved.

 write some javascript that will show a layer which is opaque in the
 browser, and let that layer show some text like 'processing...' in
 blinking mode. invoke this function onSubmit event of your screen. The
 report gets fired at the server side and when it gets generated it
 send response to the browser

 the advantages of this approach are
 1.You avoid one network round trip ( which is a primary focus
 for architects of remotely accessible applications, that have high
 network latency)
 2.There is no flag at the server side therefore half complete
 reports get completed and those are not sent anywhere and does not
 cause any problem.

 do u think it can work for u ?

 Regards,
 Puneet Agarwal
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com


 Jim Barrows
Struts Users Mailing List
  [EMAIL PROTECTED]To [EMAIL PROTECTED]

  07/23/2004 05:03 AMcc
  Please respond to Subject RE: Intermediate loading page
Struts Users Mailing
List
   [EMAIL PROTECTED]






  -Original Message-
  From: Rizwan Merchant [mailto:[EMAIL PROTECTED]
  Sent: Thursday, July 22, 2004 4:23 PM
  To: 'Struts Users Mailing List'
  Subject: RE: Intermediate loading page
 
 
 
  Thanks for the previous input. I moved the report generation
  to a thread and
  set a session variable which is a boolean indicating that a report
 is
  currently being generated. Once the report generation is complete
 that
  session variable is set to false again.
  I have come across another problem though. Say a user starts
  generating a
  report. The boolean session variable is set to true. If the
  user tries to
  generate another report while the fist oneis not complete,
  then the boolean
  variable is checked and the user is not allowed to generate
  another report
  (until the first one is complete and the boolean session
  variable is set to
  false).
 
  In this scenario, if the user abruptly closes the
  intermediate page which is
  supposed to load the report , then the session variable is
  still set to true
  (indicating report is being generated) as the thread on the
  server has not
  finished running. If the user now tries to create another
  report then s/he
  will not be allowed to do so (until the thread on the server is done

  running).
 
  So I guess my question is : Is there any way to set a session
  variable when
  the user closes a browser window abruptly?
  Or is there another way to approach this problem?
 Yes and no.  Since the browser sends no closing informaiton to the
 server, there isn't much you can do... however using
 HttpSessionListener, you can know when the session is destroyed, in
 the case of the user wandering away, this would be a session
 timeout... you can use the event to get some information from the
 session, but not necessarily the exact cause of the session
 destruction.

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


 ForwardSourceID:NT2806


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



Re: Jsp to pass Bean back/on to Action

2004-07-22 Thread Shailender Jain
May be you can put the bean in the session scope and then
retreive the bean in the Action class.
Not sure if this will be the right practice.

Mike Young wrote:

 I have developed pages and seen examples where a bean is passed from an
 action to a jsp but how do I pass the bean on to an action when it is
 called by the jsp either by a submit or a hyperlink.

 Note I want to pass a bean (array of info) rather than a simple
 parameter = value?

 A pointer in the right direction would be very much obliged.

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



Coding Standards

2004-07-22 Thread Shailender Jain
Hai,

Does anybody has got any development standards which
can be used to check if the code written using the Struts Framework is
optimized.

Or any king of checklist


Regards,
Shailender Jain


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



Memory Problem

2004-07-16 Thread Shailender Jain
Hai,

I have developed my application using Struts 1.1 and Tomcat server.

I am facing a frequent problem of OutOfMemory Error.
What i can do to resolve this?
Is there any way by which i can find out which part of the code is
giving this problem.

Regards,
Shailender Jain




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



Testing for con.close()

2004-07-09 Thread Shailender Jain
Hi,

I have implemented the connection pooling provided by Struts for
developing my application.

The application after going live gets hang quite frequently.
The problem may be related to connection not getting closed for some
transactions.

All the transactions takes atleast 1 minute to complete.

I assume that the user might be pressing the STOP button of the
browser before the transaction gets completed.
Due to this although we take the connection from the pool but not able
to return back as the last lines of the code are
not reached. I think  that if i had written con.close() in the finally
block then this problem would have not come.

Is there any way by which i can specify in the struts config .xml to
close the connection which are not active or not doing anything.

Regards
Shailender Jain





Lock Problem with Database

2004-07-08 Thread Shailender Jain
Hi,

If i try to update a table(emp) in my database from a temp
table(temp_emp) and at the
same time some other transaction try to read or update the same
table(emp) then i
get the SQLException.

I am assuming that this problem may be related to some locks created on
the table.
Is there any way by which i can define something in web.xml or
struts-config.xml so that there is no error coming.

If it reduces the performance then it is ok, since i can't change the
code of my application as i have already finished the
development of the application.

Thanks,
Shailender Jain








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



[Fwd: Lock Problem with Database]

2004-07-08 Thread Shailender Jain
The database i am using is Informix 9.2

Shailender Jain wrote:

 Hi,

 If i try to update a table(emp) in my database from a temp
 table(temp_emp) and at the
 same time some other transaction try to read or update the same
 table(emp) then i
 get the SQLException.

 I am assuming that this problem may be related to some locks created on
 the table.
 Is there any way by which i can define something in web.xml or
 struts-config.xml so that there is no error coming.

 If it reduces the performance then it is ok, since i can't change the
 code of my application as i have already finished the
 development of the application.

 Thanks,
 Shailender Jain


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



Re: [Fwd: Lock Problem with Database]

2004-07-08 Thread Shailender Jain
Hi,

Thanks for the response.

Is there any way by which i can fire some queries at the database level
and the problem is solved.

cheers
shailender jain



McCormack, Chris wrote:

 In that case : 
 http://archives.java.sun.com/cgi-bin/wa?A2=ind9811L=jserv-interestF=S=P=18647

 Chris McCormack

 -Original Message-
 From: Shailender Jain [mailto:[EMAIL PROTECTED]
 Sent: 08 July 2004 12:11
 To: [EMAIL PROTECTED]
 Subject: [Fwd: Lock Problem with Database]

 The database i am using is Informix 9.2

 Shailender Jain wrote:

  Hi,
 
  If i try to update a table(emp) in my database from a temp
  table(temp_emp) and at the
  same time some other transaction try to read or update the same
  table(emp) then i
  get the SQLException.
 
  I am assuming that this problem may be related to some locks created on
  the table.
  Is there any way by which i can define something in web.xml or
  struts-config.xml so that there is no error coming.
 
  If it reduces the performance then it is ok, since i can't change the
  code of my application as i have already finished the
  development of the application.
 
  Thanks,
  Shailender Jain

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

 ***
 This e-mail and its attachments are confidential
 and are intended for the above named recipient
 only. If this has come to you in error, please
 notify the sender immediately and delete this
 e-mail from your system.
 You must take no action based on this, nor must
 you copy or disclose it or any part of its contents
 to any person or organisation.
 Statements and opinions contained in this email may
 not necessarily represent those of Littlewoods.
 Please note that e-mail communications may be monitored.
 The registered office of Littlewoods Limited and its
 subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
 Registered number of Littlewoods Limited is 262152.
 

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


Reporting Tool

2004-06-16 Thread Shailender Jain
Hi,

I want to generate some reports in my application.
I am currently using Struts as a framework.

The current architecture for generating reports uses Crystal
Report 9.0
The problem faced with this are

   1. The data in the crystal report can be read only from a data
  source i.e. tables. Therefore there is a need to create some
  table for reports.
   2. The reports needs to be presented in such a manner that the
  rows needs to be converted into columns. (Transpose) The
  transpose logic makes the reports response time very slow.
   3. There is a need to make a call to IIS.

Can somebody suggest a reporting tool which has got the features
like Crystal Report (Export, Print, Group, Page Header, Page Break) but
can also use the data of the java classes for generating reports.

I have heard of Datavision, JFreeReport tools but not sure
whether they can take data from java classes to generate reports and
have the same features..
Taking data from java classes is important as it will be
easy to put the transpose logic in the java code and will in the end
improve the response time of reports.

Thanks,
Shailender Jain


Re: can i have multiple struts-config.xml

2004-06-15 Thread Shailender Jain
Hai,

I went to this link but this document seems to have been removed.
 Is there is any other link?

Regards
Shailender Jain

Lionel wrote:

 Lionel wrote:
  sougata wrote:
  Hi All
  I have one question.Can I have 2 struts-config.xml for one web
  application.
 
  yes.

 I forgot to paste this:
 http://otn.oracle.com/products/jdev/howtos/10g/StrutsMultiConfigs/struts_multiconfig_howto.html

 -
 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: Strange error message

2004-06-14 Thread Shailender Jain
I think you are using some code
after response.sendRedirect() or doForward() which forward the request to other
page.
The best practice will be to use a return statement after doing the forward.
You should ensure to complete all you business logic before these statements are
used.

Rajat Pandit, Gurgaon wrote:

 Hello Scott,
 Yes, this happens when you have already sent the headers to the client and
 then you are trying to re-send the information. This will cause the
 application container to give you this error. Make sure that before you do a
 dispatch no headers have been changed including cookie values etc.
 rajat

 -Original Message-
 From: Scott Smith [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 15, 2004 6:56 AM
 To: [EMAIL PROTECTED]
 Subject: Strange error message

 Has anyone seen the following error message and know what it means?

 Cannot forward after response has been committed.

 I think it's coming out of something called application.dispatcher
 (doForward; line 138).

 -
 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: Want to do some business logic before the action class of struts is invoked. How?

2004-06-11 Thread Shailender Jain
Have you tried processPreprocess() method of RequestProcessor.
This method will be executed for each request and will be before action class
gets executed

[EMAIL PROTECTED] wrote:

 Dear Strusts users,

 I have a typical requirement where i need to do some business
 logic before any action class gets executed. Where should I write the code
 for this ? Pls suggest.

 regds
 r-a-v-i


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



session problem

2004-06-11 Thread Shailender Jain
I am using session object in my application to validate whether the user
is valid or not.

I am doing this in the processPreprocess() method of RequestProcessor.
But in I.E. 6.0 update version: SP1, the session object becomes null.
So once user click at any link in the application he gets logged out.

The system admin has also done the following configuration


  1. I installed the application on a machine having the IP
 (10.1.252.41). The system admin made a virtual IP (10.1.252.42) and
 gave me a DSN dbomis.com which can be used to access the
 application. This DSN points to virtual IP.
  2. Now when i access the application using http://10.1.252.41/ or
 http://10.1.252.42/; in IE 6.0 SP1 then it works ok.
  3. When i use the http://dbomis.com/; then the login page come. User
 is able to login  (processPreprocess() method does not check for
 session while user is logging in). But when the user clicks on any
 link the session becomes null so the user is logged out of the
 application. This problem happens only on I.E. update version SP1.
 On I.E 5.5 this url works ok.

Anyone has got any idea why this must be happening







Re: session problem

2004-06-11 Thread Shailender Jain
Thanks Andrew for the response.

Should i just put html:rewrite/ in all my JSP or some attributed also needs to
be passed.
Where should i put this tag in the JSP.

Andrew Hill wrote:

 The servlet container will try to encode this sessionId in a cookie if it
 can (saving the need to rewrite links) so you may wish to check the browser
 settings to see if cookies are enabled. (Its best to make sure you use the
 html:rewrite tag (or equivelent) for your links though so that your app will
 support users when they have cookies disabled).

 -Original Message-
 From: nikhil walvekar [mailto:[EMAIL PROTECTED]
 Sent: Friday, 11 June 2004 17:34
 To: Struts Users Mailing List
 Subject: Re: session problem

 Hi,
 same thing i have experienced with IE 6.0, it will work with mozilla
 Problem is that with each request session id is not passed.
 You need to explicitly pass it as url parameter.
 http://dbomis.com/anyLink;jsessionid=A0698B81A1F1AA2B1ECDA19B0ACFD6E2

 Nikhil

 Shailender Jain [EMAIL PROTECTED] wrote:
 I am using session object in my application to validate whether the user
 is valid or not.

 I am doing this in the processPreprocess() method of RequestProcessor.
 But in I.E. 6.0 update version: SP1, the session object becomes null.
 So once user click at any link in the application he gets logged out.

 The system admin has also done the following configuration

 1. I installed the application on a machine having the IP
 (10.1.252.41). The system admin made a virtual IP (10.1.252.42) and
 gave me a DSN dbomis.com which can be used to access the
 application. This DSN points to virtual IP.
 2. Now when i access the application using http://10.1.252.41/ or
 http://10.1.252.42/; in IE 6.0 SP1 then it works ok.
 3. When i use the http://dbomis.com/; then the login page come. User
 is able to login (processPreprocess() method does not check for
 session while user is logging in). But when the user clicks on any
 link the session becomes null so the user is logged out of the
 application. This problem happens only on I.E. update version SP1.
 On I.E 5.5 this url works ok.

 Anyone has got any idea why this must be happening

 Yahoo! India Matrimony: Find your partner online.

 -
 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: session problem

2004-06-11 Thread Shailender Jain
I tried to use

  1. html:rewrite/
  2. html:rewrite forward=DBOMISRequestProcessor/

Both are giving errors

For the second option i am getting the error java.net.MalformedURLException:
Cannot retrive ActionForward named DBOMISRequestProcessor



Andrew Hill wrote:

 The servlet container will try to encode this sessionId in a cookie if it
 can (saving the need to rewrite links) so you may wish to check the browser
 settings to see if cookies are enabled. (Its best to make sure you use the
 html:rewrite tag (or equivelent) for your links though so that your app will
 support users when they have cookies disabled).

 -Original Message-
 From: nikhil walvekar [mailto:[EMAIL PROTECTED]
 Sent: Friday, 11 June 2004 17:34
 To: Struts Users Mailing List
 Subject: Re: session problem

 Hi,
 same thing i have experienced with IE 6.0, it will work with mozilla
 Problem is that with each request session id is not passed.
 You need to explicitly pass it as url parameter.
 http://dbomis.com/anyLink;jsessionid=A0698B81A1F1AA2B1ECDA19B0ACFD6E2

 Nikhil

 Shailender Jain [EMAIL PROTECTED] wrote:
 I am using session object in my application to validate whether the user
 is valid or not.

 I am doing this in the processPreprocess() method of RequestProcessor.
 But in I.E. 6.0 update version: SP1, the session object becomes null.
 So once user click at any link in the application he gets logged out.

 The system admin has also done the following configuration

 1. I installed the application on a machine having the IP
 (10.1.252.41). The system admin made a virtual IP (10.1.252.42) and
 gave me a DSN dbomis.com which can be used to access the
 application. This DSN points to virtual IP.
 2. Now when i access the application using http://10.1.252.41/ or
 http://10.1.252.42/; in IE 6.0 SP1 then it works ok.
 3. When i use the http://dbomis.com/; then the login page come. User
 is able to login (processPreprocess() method does not check for
 session while user is logging in). But when the user clicks on any
 link the session becomes null so the user is logged out of the
 application. This problem happens only on I.E. update version SP1.
 On I.E 5.5 this url works ok.

 Anyone has got any idea why this must be happening

 Yahoo! India Matrimony: Find your partner online.

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


Re: Connection PoolingOT?

2004-06-09 Thread Shailender Jain


Thanks for your attention.

Abandand connection management can you give more details on how to do this.



Masashi Nakane wrote:

 And if you have a chance to try  DBCP  , Abandand connection management
 function  will tell you exactly  where the unclosed connections are . You
 will  love this.

 Masashi

 At 23:33 04/06/08 -0700, you wrote:
 And Some other guy says the set the max number of connectons to 1.
 
 Yes this is another good way, thank you for bringing that up. I had a
 fairly big app that was throwing away connections and when I set the
 max connections to 1 it became almost immediately aparent where the
 problem was.
 
 Good suggestion Masashi.
 
 -
 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: html:options ....

2004-06-09 Thread Shailender Jain
Hi All,

 If the someBean.getDefault() has some values which is not there in the
collection SORT then the problem
 is that  the select tag will display some value from the collection not the
value from someBean.getDefault().

 I faced this situation when i had to display a blank combo box and the
collection having the data of the employee names.


 Any idea on how to handle this?



Shailender Jain

nikhil walvekar wrote:

 Hi,

 for html:select tag you can specify value
 there you can write your default value from some bean

 html:select size=1 name=sort
 onchange=document.forms[4].elements[2].focus() value=%= someBean.getDefault()%
 html:options collection=SORT property=value
 labelProperty=label/
 /html:select

 Nikhil.

 Caroline Jen [EMAIL PROTECTED] wrote:
 I try to create a drop down menu as follow:

 html:select size=1 name=sort
 onchange=document.forms[4].elements[2].focus()
 html:options collection=SORT property=value
 labelProperty=label/
 /html:select

 I am able to disply the menu.

 I want one of the options to be selected by default.
 Therefore, I want to type SELECTED somewhere.  How do
 I do it?

 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

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


 Nikhil

 Yahoo! India Matrimony: Find your partner online.


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



Connection Pooling

2004-06-08 Thread Shailender Jain
I have fished developing the application using Struts and Tomcat 5.0.16
as server.

We used the Connection Pooling provided by Struts (DBCP)

After the development we have realized that somewhere in the application
the connection is not
getting closed. Due to this the application is getting hang very
frequently. We have actually assumed that the application gets hang due
to
this reason only.

Is there any way to DEBUG where in the application where the connection
is not getting closed.


Regards
Shailender Jain





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