Re: how to read uploaded FormFile InputStream multiple times?

2003-10-02 Thread Vikram Goyal
You are better off using FileUpload from the Commons package. Using DiskFileUpload, you can set a threshold on the size of your files. If the threshold is breached, the files will be saved in a temp location on your hard disk from where you can access them as many times as you want. So you could

Re: html base element

2003-09-23 Thread Vikram Goyal
Hi Ashwani, html:base is used to let the the browser know the location of the document currently being seen by the user. This is important in the case of web pages where there is an internal mapping between what a browser submits an action to and what the user ends up seeing. These two may be

URL Rewriting

2003-09-19 Thread Vikram Goyal
Hello all, A curious, but not totally unexpected, thing happens when I try to access my Apache httpd-Tomcat (4.1.24) site for the first time via mod_jk2 connector. Since Tomcat/Struts resorts to a URL rewrite of every link (because it doesn't know that the browser is going to accept a cookie the

Re: [OT] RE: Stackoverflow after DB inactivity

2003-09-17 Thread Vikram Goyal
Thanks Steve for the suggestions. Regards, Vikram - Original Message - From: Steve Raeburn [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:08 PM Subject: [OT] RE: Stackoverflow after DB inactivity Additional info on why MySQL

Stackoverflow after DB inactivity

2003-09-16 Thread Vikram Goyal
Hello all, I am getting a Stackoverflow error in Tomcat 4.1+ after a period of database inactivity, typically (3+ hours). I am using Struts for the front end and while the non DB access pages work fine, as soon as access to a page is requested where data is to be fetched from the database, I get

Re: log4j configuration and usage

2003-08-19 Thread Vikram Goyal
Hi Viral, This is not the log4 list. Try the log4j list or read the several articles on how to use it. http://jakarta.apache.org/log4j/docs/documentation.html PS: Which PU are you in at Infy? Regards, Vikram - Original Message - From: Viral_Thakkar [EMAIL PROTECTED] To: Struts Users

Re: A JSP based JDBC query client?

2003-08-19 Thread Vikram Goyal
You could also use the DB Tag library from Jakarta for trivial applications: http://jakarta.apache.org/taglibs/doc/dbtags-doc/intro.html Regards, Vikram - Original Message - From: David Friedman [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Martin Naskovski [EMAIL

Re: StackOverflow error?

2003-06-05 Thread Vikram Goyal
I get the same error when I try to execute a DB query via a form. I am using Struts1.1rc1, Tomcat 4.1.24 and MySQL. I initially thought that the error was because the connection was lost to the DB server and therefore I had put autoReconnect=true in the DB URL. But that did not stop the problem.

Re: [OT] slackers

2003-05-30 Thread Vikram Goyal
Hey! Who are you calling a slacker mate! :) A Foster here and a Foster there makes the world go around. Happiling chugging on down under.. Vikram - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, May 30, 2003

Justifying Tag Libraries - Slightly long

2003-01-21 Thread Vikram Goyal
this be as expected and well, how do you still justify the usage of tags. Best Regards, Vikram Goyal

Re: redirect attribute (newbie)

2002-12-30 Thread Vikram Goyal
Search the mailing list for chaining actions. This has been covered several times in this list. Regards, Vikrma - Original Message - From: Suresh Addagalla [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 30, 2002 11:01 PM Subject: redirect attribute (newbie) Hi, I have

Re: html:select error reloading the jsp

2002-12-12 Thread Vikram Goyal
Make sure that the bkObject is set in session not in request. Rgs Vikram - Original Message - From: Dinesh Samson J [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 12, 2002 8:14 PM Subject: html:select error reloading the jsp Greetings, I am retrieving a set of

Re: Max file size when upload in struts-1.1b2

2002-11-21 Thread Vikram Goyal
Set the following in the struts-config. controller maxFileSize=500K / For file sizes in MB use 1M, 1.5M etc. HTH Vikram - Original Message - From: Huynh Ngoc Huy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 7:33 PM Subject: Max file size when upload in

Re: Question About Modules

2002-11-21 Thread Vikram Goyal
We used FOP to generate dynamic pdf through the action. The action itself returned null. Vikram - Original Message - From: Madel,Kurt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 5:46 AM Subject: RE: Question About Modules

ClassCastException - Using TreeMap

2002-11-14 Thread Vikram Goyal
Hello All, I am getting a ClassCastException when using a TreeMap in a logic iterate. I am reproducing part of the error below. java.lang.ClassCastException: java.util.TreeMap$Entry at _web_22dinf._jsp._mycraft__jsp._jspService(/WEB-INF/jsp/mycraft.jsp:26) I understand that while using a

Re: ClassCastException - Using TreeMap

2002-11-14 Thread Vikram Goyal
] Sent: Thursday, November 14, 2002 11:03 PM Subject: RE: ClassCastException - Using TreeMap try this... bean:define id=bookmarkID name=bookmark property=key/ -Original Message- From: Vikram Goyal [mailto:tech;craftbits.com] Sent: Thursday, November 14, 2002 7:52 AM To: Struts Users

Dynamic Value for logic equal

2002-11-09 Thread Vikram Goyal
Hello All, I have searched the list for some time now and could not find a conclusive answer for my problem. I am hoping someone else has come across this and can help me. When displaying information about a User, I need to display the Label for a Country Code. This should be simple enough.

Re: Dynamic Value for logic equal

2002-11-09 Thread Vikram Goyal
== Vikram Goyal [EMAIL PROTECTED] writes: Vikram When displaying information about a User, I need to display the Label for a Vikram Country Code. This should be simple enough. However, the User bean contains Vikram only the country code. To get the Country label, I need to iterate over

Re: Reroute to login page

2002-11-01 Thread Vikram Goyal
You could also use the inbuilt ForwardAction. Details are in the javadocs of Struts. Regards, Vikram - Original Message - From: Mohan Radhakrishnan [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, November 01, 2002 9:42 PM Subject: RE: Reroute to login

Resource temporarily unavailable

2002-10-29 Thread Vikram Goyal
All, This is probably off topic and if so I apologize. I shifted my hosts from a non JSP one to a JSP one short time ago. The deal was 500 MB disk space, 15GB transfer, and private JVM and Resin for 235 USD a year. Too good to be true? Probably is?? Anyways, this is the problem: I deployed my