RE: [OT] JSP or Velocity

2004-02-28 Thread Navjot Singh
hi, As far as i am concerned. My prefs are Eclipse and UEdit(designers can use in combination with other design ides like dreamweaver etc). See more at http://jakarta.apache.org/velocity/devtools.html Navjot Singh -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent

RE: [OT] JSP or Velocity

2004-02-27 Thread Navjot Singh
Basically, i use velocity only for email templates and sometimes to generate other kind of templates from one template where the use of XSLT is not appropriate. For web templates, that have more complex requirements, i prefer to use taglibs. besides el makes life as easy as we may talk in

RE: Tomcat 4 Compression Filter

2004-02-25 Thread Navjot Singh
put apache in front of tomcat and install mod_gzip with apache. it will do almost everything you can wish for? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 5:43 PM To: Struts User Jakarta Subject: Tomcat 4 Compression Filter There

RE: data transfer from Action class to jsp page

2004-02-25 Thread Navjot Singh
yes, store your BO in request -Original Message- From: Pradeep, PK [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 10:21 PM To: Struts Users Mailing List Subject: RE: data transfer from Action class to jsp page Sending the same question again.. I have this basic

RE: Status 500

2004-02-24 Thread Navjot Singh
there's some mismatch happening while struts try to populate the form associated with your action. please check there. -Original Message- From: Dixit, Shashank (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 1:48 PM To: [EMAIL PROTECTED] Subject: Status 500 Hello

RE: Session management

2004-02-24 Thread Navjot Singh
struts has nothing to do with managing sessions. we should better talk about servlet containers that handles sessions. btw, 100 sessions are nothing to worry about :-) leave the txn mgmt to db layer. use any of the persistence frameworks that can handles this for you. -Original

RE: Status 500

2004-02-24 Thread Navjot Singh
if you could post your Form and request params here. HTH Navjot Singh -Original Message- From: Dixit, Shashank (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 3:30 PM To: Struts Users Mailing List Subject: RE: Status 500 Hi Navjot That is what I couldn't point it out

RE: urgent please -- XML document reading/parsing through SAX for the given snippet.

2004-02-23 Thread Navjot Singh
create a hashmap object and while you run SAX thru your xml document. is yourStartElement(), save the tag name currentElement variable. in characters(), save the characters value to your hash with key as currentElement. in the end, your element will filled. if you multiple such case tags. add

MVC difference

2004-02-23 Thread Navjot Singh
Hi, To the people who care about minute differences in the architecture. My question is Is there any difference between Struts 1.0 and 1.1 in terms of MVC? TIA Navjot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: MVC difference

2004-02-23 Thread Navjot Singh
yes, you are right that MVC is a pattern, rather architectural pattern. Can someone make me clear about the MVC pull and MVC push model and their pros and cons? TIA Navjot Singh -Original Message- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 4

RE: Role based access?

2004-02-18 Thread Navjot Singh
override the default behaviour of processRoles and go your own way. HTH Navjot Singh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 8:49 PM To: Struts Users Mailing List Subject: Role based access? Hi Guys, Struts-config.xml

RE: trubble with session

2004-02-17 Thread Navjot Singh
When the user doesn't accept cookies, session is of no use. After login, you can fill the data in request object and *forward* the request. look into RequestDispatcher.forward() HTH Navjot Singh -Original Message- From: Claudia Woestheinrich [mailto:[EMAIL PROTECTED] Sent: Tuesday

RE: [OT] Case insensitive Map keys [Results]

2004-02-16 Thread Navjot Singh
); } return new Integer(h); } } } -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Sábado, 14 de Febrero de 2004 03:16 a.m. To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [OT] Case insensitive Map keys hi

RE: Hi

2004-02-13 Thread Navjot Singh
PM To: [EMAIL PROTECTED] Subject: Re: Hi Hi i am using the pool implementation using apache commons pool and dbcp how can i test if it works? clement - Original Message - From: Navjot Singh [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 13, 2004

RE: newlines

2004-02-13 Thread Navjot Singh
can you replace the \n to br/ before sending to jsp -Original Message- From: Turner Benjamin [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 2:33 PM To: Struts-User (E-mail) Subject: newlines hello, i looked in the archives about this problem but couldn't find anything

RE: [OT] Case insensitive Map keys

2004-02-13 Thread Navjot Singh
new Integer(h); } } This by now is three times faster than using toUpperCase for storing and retrievinig items from the hash. What do you think? -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Viernes, 13 de Febrero de 2004 02:53 a.m. To: Struts

RE: [OT] Case insensitive Map keys

2004-02-12 Thread Navjot Singh
); } } This was simple implementation. By the time you ask the Q and wait for reply. you could have written on your own. Navjot Singh -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 5:24 PM To: 'Struts Users Mailing List' Subject: [OT] Case insensitive

RE: [OT] Case insensitive Map keys

2004-02-12 Thread Navjot Singh
, then maybe you'd have noticed. Regards, Freddy. -Mensaje original- De: Navjot Singh [mailto:[EMAIL PROTECTED] Enviado el: jueves, 12 de febrero de 2004 13:14 Para: Struts Users Mailing List; [EMAIL PROTECTED] Asunto: RE: [OT] Case insensitive Map keys yes. here it is. public CIMap extends

RE: multiple struts-config files

2004-02-12 Thread Navjot Singh
-config ? yes, see module switching in docs. HTH Navjot Singh Any help is very appreciated Koen Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/de fault.asp?SRC

RE: Hi

2004-02-12 Thread Navjot Singh
any of the 3 will do 1. configure the data source in tomcat 2. configure the data source in struts 3. write your own pool implementation using apache commons pool and dbcp hth Navjot Singh -Original Message- From: Vishal Arora [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11

RE: Config issue

2004-02-11 Thread Navjot Singh
this can happen only when you have gannett (first )as context name AND gannett (second one) as module name. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Sam Sent: Thursday, February 12, 2004 9:34 AM To: [EMAIL PROTECTED] Subject: Config issue Greetings, I'm a

RE: 2 PROBLEMs-Please Help

2004-02-11 Thread Navjot Singh
1. did you check the same property name in your messages.properties file. 2. ActionMapping is not deprecated. Reads the docs again. It saya would have been deprecated. in fact, this class has 2 more subclasses. -Original Message- From: f f [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: [OT] - Request against Session

2004-02-11 Thread Navjot Singh
exercise. Use of session or request varies on requirements basis. 1. Start with first form, collect values, pass as hidden values to second form and so on 2. Start with first form, collect values, save to session and so on HTH Navjot Singh -Original Message- From: Pani R [mailto:[EMAIL

RE: forwarding all request to the one JSP

2004-02-11 Thread Navjot Singh
jsp is servlet but servlet is not jsp. hope this point clears the point here. you should look into using jsp error page directive if you wish to redirect errors from jsp page. -Original Message- From: Bubeník Miroslav [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 10:10 PM

RE: Need help on making Custom Validator work

2004-02-11 Thread Navjot Singh
if it shows you just blank page then something is *null* somewhere -Original Message- From: Pingili, Madhupal [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 12:49 AM To: '[EMAIL PROTECTED]' Subject: Need help on making Custom Validator work Hi All, I have developed a

RE: Orkut

2004-02-08 Thread Navjot Singh
count me in -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich Sent: Monday, February 09, 2004 9:46 AM To: [EMAIL PROTECTED] Subject: Orkut If you want to join Struts in Orkut Social Network send me an e-mail saying so. .V (if you do not know what it

RE: Making the fields non editable dynamically using a form bean element

2004-02-02 Thread Navjot Singh
guess there is some attribute called readonly for html:text. set that to true. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 4:06 PM To: [EMAIL PROTECTED] Subject: Making the fields non editable dynamically using a form bean element

RE: Is it possible to deploy a struts 1.1 application in Tomcat 5.x?

2004-01-22 Thread Navjot Singh
I am successfully running my Application based on Struts + Tiles + Taglibs (el also) seamlessly. No probs so far. -Original Message- From: Smith, Darrin [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 6:55 PM To: 'Struts Users Mailing List' Subject: RE: Is it possible to

RE: XML and JSP

2004-01-20 Thread Navjot Singh
pls look into xml taglibs at apache's website -Original Message- From: Prashanth.S [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 2:36 PM To: [EMAIL PROTECTED] Subject: XML and JSP Hi all, can anyone tell me a convinient way to display,add delete elements in a xml file from

RE: problems w/ logging.. again

2004-01-19 Thread Navjot Singh
Navjot Singh -Original Message- From: Adam L [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 11:09 AM To: Struts Users Mailing List Subject: problems w/ logging.. again I've scoured the archives. Ive tried a million different log4j.properties configurations, some with .xml, some

RE: Querystring builder

2004-01-05 Thread Navjot Singh
not be efficient and does the job you want. and HURRAY!! you will get QueryString like str=navjotb.str=singh hope this helps Navjot Singh ** Wife sleeping in the middle of night suddenly wakes up and shout. Quick! My husband is back. Man get up and jumps out of window. Then realizes

RE: Querystring builder

2004-01-05 Thread Navjot Singh
in response. One of the lines in the iterating function: nvString.append(this.getString(key) + ); What's the this and the getString suppose to be? Should it be the map.get function? Rgds, Patrick. -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent

RE: Querystring builder

2004-01-04 Thread Navjot Singh
that should be easy. BeanUtils gives you the way to populate a MAP object from a Bean. Now al you need to do is iterate over keys, form a querystring with each name-value pair separated by . HTH Navjot SIngh -Original Message- From: Patrick Cheng [mailto:[EMAIL PROTECTED] Sent: Monday

RE: PDF file in browser

2003-12-23 Thread Navjot Singh
whereever it is. 3. convert it into stream. 4. push the stream back to browser. note - must set the appropraite mime/type before you push the stream back. may be application/pdf or application/x-pdf HTH Navjot Singh -Original Message- From: vasudevrao gupta [mailto:[EMAIL PROTECTED] Sent

RE: Form and Session

2003-12-12 Thread Navjot Singh
try to keep Session as light as possible. With that in mind, just save all you need, creator in your case, in Session. Navjot -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Saturday, December 13, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: Form and Session The

RE: When HashMap will replace ActionForm ?

2003-12-10 Thread Navjot Singh
I can't say there will be any move or not. But MAP backed ActionForms are alreadt there, If you are not interested in using the actionforms and be contended with just hashmaps. Mostly, not always, I treat ActionForm as HashMap but with getter setter already classcasted and defined for properties.

RE: session.invalidate() throws exception.

2003-12-10 Thread Navjot Singh
one should either *catch* Exception OR use errorPage attribute of [EMAIL PROTECTED] ... directive to handle error HTH Navjot Singh -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 5:08 PM To: struts Subject: session.invalidate() throws

RE: Struts and commons DBCP

2003-12-09 Thread Navjot Singh
gets trapped by PooledConnection interface and the connection will be returned back to the db pool and it WONT get closed. HTH Navjot Singh

RE: Multiple Config files

2003-12-09 Thread Navjot Singh
OFF-TOPIC : Does anyone know a cvs mailing list ? www.cvshome.org HTH Navjot Singh -Original Message- From: Tiago Henrique Costa Rodrigues Alves [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 6:18 PM To: Struts Users Mailing List (E-mail) Subject: Multiple Config files Hi

RE: Error message display in the case of redirect = true

2003-12-09 Thread Navjot Singh
not sure but the logic says that error messages are being stored in the REQUEST SCOPE and when you set redirect=true, naturally that's a new request so you won't get the errors set in earlier request. anybody else? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

RE: File Download?

2003-12-04 Thread Navjot Singh
All you need to use is ServletOutputStream. Check API. -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 8:35 PM To: '[EMAIL PROTECTED]' Subject: File Download? I have a need to send generated image files from my web server to a file

RE: Changing SessionId at every request

2003-12-03 Thread Navjot Singh
don't know why do you wish to do so? but it an be done. Write a filter. pass every request thru that. 1. Fetch the session, expire it. Server will assign new. 2. Fetch the session, don't expire the session, just append a timestamp to it. set a cookie and use that to maintain session. HTH navjot

RE: MySQL Driver List

2003-12-03 Thread Navjot Singh
http://www.mysql.com/downloads/api-myodbc-3.51.html -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 10:43 AM To: Struts Users Mailing List Subject: MySQL Driver List hi ALl I want to connect my strut application with mySQL database.

RE: Populating the next Form

2003-11-10 Thread Navjot Singh
surely in ActionB. Filling it's own form is action in itself. you can parameterized your action to do 2 things 1. fill the formB 2. accepts the submitted formB. HTH Navjot Singh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 10:54

RE: Can I use RequestProcessor to handle session?

2003-11-06 Thread Navjot Singh
yes and probably the right way to do -Original Message- From: Samanth Athrey [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:35 AM To: [EMAIL PROTECTED] Subject: Can I use RequestProcessor to handle session? Hello Gurus I am trying to handle session timeout by extending

RE: two resource bundles?!

2003-10-30 Thread Navjot Singh
not sure by might be Globals.MESSAGES_KEY + prop2 -Original Message- From: Otto, Frank [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 6:01 PM To: Struts-User (E-Mail) Subject: two resource bundles?! Hi, I have defined two properties files in my struts-config.xml:

RE: Antwort: [OT] Re: far reaching db question

2003-10-28 Thread Navjot Singh
you should escape your sql data values for mischieveous chars like single quotes etc. -Original Message- From: Manuel Lenz [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 4:33 PM To: Struts Users Mailing List Subject: Antwort: [OT] Re: far reaching db question How do

RE: multiple resource files in one struts-config file

2003-10-28 Thread Navjot Singh
first pls specify diff keys for diff resource files. second, pls check if you have specifiied errors.header= line in every property file. HTH Navjot Singh -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 10:07 AM To: [EMAIL PROTECTED

RE: redirecting

2003-10-28 Thread Navjot Singh
sendRedirect() is OK to use. Go ahead. -Original Message- From: ajay brar [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 9:23 AM To: [EMAIL PROTECTED] Subject: redirecting hi! i have to redirect the user from within my action class to an external site. i'm currently doing

RE: HAPPY DIWALI!

2003-10-23 Thread Navjot Singh
Mark, Don't feel bad about it if you feel little out of place. just enjoy life. but anybody from India can get an H1B visa, displacing millions of jobs from indigenous Americans, dragging down market labor rates and causing 7 percent unemployment in our industry. Business look for skills. If

RE: HAPPY DIWALI!

2003-10-23 Thread Navjot Singh
;-) And it has nothing to do with any ethnic holiday; if you think otherwise, you are probably an H-1B. I have never been on H1B for your info and don't even want to be. However, if you are interested to work in india, send me your CV. Navjot Singh

RE: hi..

2003-10-22 Thread Navjot Singh
yes, if you can set the value first to some page/request scope variable? see bean:define/ in struts docs Navjot Singh -Original Message- From: Nisith Dash [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 12:01 PM To: Struts Users Mailing List Subject: hi.. Hi

RE: Help needed on Iterate Tag

2003-10-21 Thread Navjot Singh
quick try - try replacing Names with names in iterate tag -Original Message- From: Thakur, Vikram [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 9:55 AM To: Struts (E-mail) Subject: Help needed on Iterate Tag Hi , I have Collection of Strings and I want to print

RE: Forward/redirect and virtual hosts

2003-10-21 Thread Navjot Singh
. Is your webapp context is configured under your *external* hostname? I can think that one of this is broken and hence the problem is coming. Or if we can get config files, i may help better. HTH Navjot Singh -Original Message- From: Dave Tilley [mailto:[EMAIL PROTECTED] Sent: Wednesday

RE: Help needed on Iterate Tag

2003-10-21 Thread Navjot Singh
can you post the error? -Original Message- From: Thakur, Vikram [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 10:04 AM To: 'Struts Users Mailing List' Subject: RE: Help needed on Iterate Tag No It is not working.. -Original Message- From: Navjot Singh [mailto

RE: Display Mode | Edit Mode

2003-10-21 Thread Navjot Singh
NO -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 10:49 AM To: [EMAIL PROTECTED] Subject: Display Mode | Edit Mode Does STRUTS provide any feature so that the same jsp can be used for showing the page in Display Mode as well as

RE: communication between control layer factory/model

2003-10-12 Thread Navjot Singh
can't you pass a HashMap back? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Saturday, October 11, 2003 6:42 PM To: Struts Users Mailing List Subject: communication between control layer factory/model I've been happy until now passing objects backwards and

RE: ejb's and tomcat

2003-10-09 Thread Navjot Singh
then which one is good in your eyes? -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 4:38 PM To: Struts Users Mailing List Subject: RE: ejb's and tomcat JBoss is crap, anyway. -Original Message- From: Brian McSweeney

RE: urlrewriting Vs Cookies

2003-10-08 Thread Navjot Singh
theoretcially, there are 3 ways. 1. URL Rewriting 2. Client side Cookies 3. Server side Session (again use cookies but just for an ID) if you are adamant about not using cookies at any level. URL rewriting is the only option left. any other? navjot singh -Original Message- From

RE: urlrewriting Vs Cookies

2003-10-08 Thread Navjot Singh
for session cookies. If you love URL rewriting, you can disable the user session after 10 minutes of inactivity. Depends on how much pain would you like to take for it and how secure you wish your application to be. HTH Navjot Singh Hi navjot, Thanks for the reply...But the problem with url rewriting

RE: Performance constraints

2003-10-07 Thread Navjot Singh
from the pool. If it's not there, the new Action instance will be created and assigned to the request. HTH Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml

2003-10-07 Thread Navjot Singh
if the roles are not valid for that action. etc etc.. Struts,using decalrative roles, tried to make things easier in term sof less programming efforts and easiness to manage roles . Rest i can't see much diff. Any opinions? HTH Navjot Singh -Original Message- From: Caroline Jen [mailto:[EMAIL

RE: Urgent: No Getter Method found

2003-09-26 Thread Navjot Singh
change the variable txtusergroupcode to txtUserGroupCode. it will work. |-Original Message- |From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] |Sent: Friday, September 26, 2003 12:13 PM |To: Struts Users Mailing List |Subject: Urgent: No Getter Method found | | |hi All |I am getting

RE: ApplicationResources.properties

2003-09-24 Thread Navjot Singh
it just should be in classpath. |-Original Message- |From: Martin Gainty [mailto:[EMAIL PROTECTED] |Sent: Thursday, September 25, 2003 12:52 AM |To: [EMAIL PROTECTED] |Subject: ApplicationResources.properties | | |What mechanism does struts use to find the

RE: Probelm with global-exceptions routing.

2003-09-05 Thread Navjot Singh
not sure if struts handles exceptions thrown from RequestProcessor. |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] |Sent: Friday, September 05, 2003 2:20 PM |To: [EMAIL PROTECTED] |Subject: Probelm with global-exceptions routing. | | |I have written my own

RE: request.getContextPath();

2003-09-05 Thread Navjot Singh
but this your contextPath. so, request returns that string that you set. Is PostGraduate.war your file name? or in server.xml you have set contextPath=/PostGraduate. navjot |-Original Message- |From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] |Sent: Friday, September 05, 2003 1:44 PM

RE: debug level of struts...

2003-09-05 Thread Navjot Singh
quick dirty way :-) In you jdk installation dir..look out for logging.properties and append the following line in the end org.apache.struts = FINE navjot |-Original Message- |From: Pady Srinivasan [mailto:[EMAIL PROTECTED] |Sent: Friday, September 05, 2003 5:41 PM |To: [EMAIL

RE: SubClass RequestProcessor or Action class

2003-09-01 Thread Navjot Singh
this well. One of the guys has posted some XML that he would use in config.xml. /detailed regards Navjot Singh |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] |Sent: Monday, September 01, 2003 12:17 PM |To: Struts Users Mailing List |Subject: RE: SubClass

RE: Handling Exceptions

2003-09-01 Thread Navjot Singh
For ServletException, configure the error page in web.xml file. it will work. navjot |-Original Message- |From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] |Sent: Sunday, August 31, 2003 5:12 PM |To: [EMAIL PROTECTED] |Subject: Handling Exceptions | | |Hi, | |In struts-config, I have

RE: [OT] Scheduling

2003-09-01 Thread Navjot Singh
whynot? use crontab -e to add a program and the times when it should run use crontab -l to view what all programs are scheduled to run. navjot |-Original Message- |From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] |Sent: Monday, September 01, 2003 3:37 PM |To: [EMAIL PROTECTED] |Cc:

RE: Exception framework Usage

2003-09-01 Thread Navjot Singh
nice SORRY page and/or may LOG this exception somewhere) BTW, there is some nice article on Exception handling on IBM Developer site. Do check. hope this helps and suggestions are welcome. Navjot Singh -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Monday

RE: Exception framework Usage

2003-09-01 Thread Navjot Singh
DuplicateUserException with DuplicateKeyException - what /*what is duplicate, email oruser*/ + getWhat():String + setWhat(Stirng) It's just another way that is desired sometimes. Personally, I never followed this staregy ;-) Thanks Navjot for reply. HTH Navjot Singh -Original Message

RE: What is Java Server faces ?

2003-08-29 Thread Navjot Singh
Hi, I guess most of the people have some misconception about JSF. They are not here to compete with Struts and i think of them as complementary support to Struts framework. Start reading on JSF here http://www.jsfcentral.com regards Navjot Singh |-Original Message- |From: Madhu Nair

RE: J2EE IDE

2003-08-27 Thread Navjot Singh
Well, i like Eclipse a lot but it has it's constraints. If you wish to have O/R mapping support in your IDE, try JDeveloper etc. Although i have never used JBulder or IntelliJ but they are also good ones. navjot |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]

RE: How to access a session object from a form class

2003-08-27 Thread Navjot Singh
I guess you can't and why would you need it? Your Action SHOULD play with Session objects and Form objects. |-Original Message- |From: Bård Arve Evjen [mailto:[EMAIL PROTECTED] |Sent: Wednesday, August 27, 2003 12:25 PM |To: [EMAIL PROTECTED] |Subject: How to access a session object from

RE: struts with other frameworks and JSTL

2003-08-26 Thread Navjot Singh
|Hi all, |I have 2 questions |1--Where can i find comparision between struts and other |frameworks[like cacoon etc etc] See struts archives, around 2 months back someone gave a wonderful comparison of struts with expresso etc |2--How can i switch existing application [which uses lot os jstl |and

RE: Paging through DB ResultSets

2003-08-26 Thread Navjot Singh
Model Layer If you database supports *limit* clause, use that. OR Use Paging Patterns (known as Value List Handler in J2EE but i think it's misnomer ;-) Presentation Layer Use Pager Taglib |-Original Message- |From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED] |Sent: Tuesday, August

RE: Design question

2003-08-26 Thread Navjot Singh
the formbean of the actionmapping |4 can you suggest some alternate method so that i can not have to |do copy past of my code in execute method of action class. If you follow my advice on 1, you need not to bother about that. HTH navjot Singh PS - may i know where are you located

RE: Problem build war using Ant

2003-08-25 Thread Navjot Singh
have you checked the ANT version? |-Original Message- |From: deepaksawdekar [mailto:[EMAIL PROTECTED] |Sent: Monday, August 25, 2003 10:39 AM |To: Navjot Singh; Struts Users Mailing List |Subject: RE: Problem build war using Ant | | |Thanks for the response, |My dir strucute is |webgui

RE: Design question...

2003-08-25 Thread Navjot Singh
pass the DTO back, it will contain maximum 10 records. Reducing network load and you get only those records that you want in presentation layer. HTH navjot singh |-Original Message- |From: Keith Pemberton [mailto:[EMAIL PROTECTED] |Sent: Sunday, August 24, 2003 7:09 PM |To: [EMAIL PROTECTED

RE: Problem build war using Ant

2003-08-23 Thread Navjot Singh
hi deepak, Posting the directory structure would have been great help. BTW, which version of Ant are you using? If any less than 1.5.3, switch RIGHT NOW. Lower version are buggy in terms of getting classes and lib tasks. hth Navjot Singh |-Original Message- |From: deepaksawdekar

RE: Logging to application directory

2003-08-22 Thread Navjot Singh
use log4j or jdk1.4 logging. |-Original Message- |From: Louise Pryor [mailto:[EMAIL PROTECTED] |Sent: Friday, August 22, 2003 8:38 PM |To: Struts Users Mailing List |Subject: Logging to application directory | | |Is there any easy way of sending logs to somewhere in my application

RE: Struts Action or EJB session bean

2003-08-22 Thread Navjot Singh
file uploading is user front job and let the Struts handle it. Sessionbeans are bad choice!! |-Original Message- |From: Erez Efrati [mailto:[EMAIL PROTECTED] |Sent: Friday, August 22, 2003 5:33 PM |To: 'Struts Users Mailing List' |Subject: Struts Action or EJB session bean | | |My

RE: Generating logs w/Log4J in ActionClass

2003-08-22 Thread Navjot Singh
i just vaguely remember private Logger logger = Logger.getLogger(Test.class); logger.debug(Better Check log4j docs); and keep the log4j.properties file in classpath. hth navjot singh |-Original Message- |From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED] |Sent: Thursday, August 21

RE: login request + ActionServlet RequestProcessor Action

2003-08-21 Thread Navjot Singh
Although I am extending Action class as of now but extending Requestprocessor should be a better choice. After all ActionServlet, after all the initializations, delegates control to RequestProcessor. Let's keep ActionServlet only for one time inits. hth Navjot Singh |-Original Message

RE: How to set Struts package as default

2003-08-20 Thread Navjot Singh
war file deployment won't work here. configure one host entry in server.xml file with appBase=/dir/path/to/app. one context entru with docBase=, path=/ and unpackWars=false it should work. hth navjot singh |-Original Message- |From: Jian Dai [mailto:[EMAIL PROTECTED] |Sent

RE: Security and Roles related

2003-08-20 Thread Navjot Singh
, in your JSPs, you can always check isUserInRole() etc. it's just call on your request object. Struts even provide the tag for that logic:present role=admin/ et al.. do write should you need more help. Navjot Singh |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED

RE: get data source in servlet

2003-08-19 Thread Navjot Singh
Source from struts-config.xml to web.xml hth navjot singh |-Original Message- |From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] |Sent: Monday, August 18, 2003 8:38 PM |To: [EMAIL PROTECTED] |Subject: get data source in servlet | | |Hi, |I have defined a data source in my struts-config file

RE: Session expired

2003-08-19 Thread Navjot Singh
yes. If you are using servlet 2.3 container, write a filter that can check the session status, if expired will redirect the control to the standard expired.jsp page otherwise the control is passed to thr requested jsp. hth navjot singh |-Original Message- |From: Kwok Peng Tuck [mailto

RE: Security and Roles related

2003-08-19 Thread Navjot Singh
struts provide support for JAAS and JAAS further supports the security roles and accesses independent of mechanisms. will that do? hth -navjot |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] |Sent: Tuesday, August 19, 2003 4:38 PM |To: [EMAIL PROTECTED] |Subject:

RE: Tiles. using action for attribute value.

2003-08-18 Thread Navjot Singh
Tiles. using action for attribute value.try making straight call to header.jsp, it should work. OR if you must need Struts Controller in call to header.jsp, use include (instead of forward) in your header.do action mapping. hth navjot singh -Original Message- From: deepaksawdekar

RE: Parsing error on startup

2003-08-14 Thread Navjot Singh
javax.servlet.UnavailableException: Parsing error processing |resource path | at |org.apache.struts.action.ActionServlet.initModuleConfig(ActionServl |et.java:952) | |Thanks very much for the help, | |Guy. | |Navjot Singh wrote: | | guess your jdk version is 1.4.1_03. upgrade to the latest one

RE: Parsing error on startup

2003-08-14 Thread Navjot Singh
guess your jdk version is 1.4.1_03. upgrade to the latest one 1.4.1_04. problem solved. hth navjot singh |-Original Message- |From: Guy Caseley [mailto:[EMAIL PROTECTED] |Sent: Wednesday, August 06, 2003 4:57 PM |To: [EMAIL PROTECTED] |Subject: Parsing error on startup | | |Hi, | | I

RE: How to identify the Requested Path Info

2003-08-14 Thread Navjot Singh
servlet container provides that info |-Original Message- |From: Kommineni, Sateesh (IndSys) |[mailto:[EMAIL PROTECTED] |Sent: Wednesday, August 13, 2003 5:20 PM |To: Struts Users Mailing List |Subject: How to identify the Requested Path Info | | |Hi All, | | How can the framework will

RE: ActionForm Design Question

2003-08-02 Thread Navjot Singh
in the BeanUtil package. If your app is simple enough, you can use Map. If you know your app is gonna expand like hell, invest time on BeanUtil. Navjot Singh | | I highly value your opinions and advices. Thanks. | | |Jing |Netspread Carrier |http://www.netspread.com

RE: Database Connection

2003-07-31 Thread Navjot Singh
the jar file for your sybase driver should in the class path of tha app server. If it's tomcat put your jar file in tomcat_home/common/lib it will work. -navjot singh |-Original Message- |From: Chirag Mehta [mailto:[EMAIL PROTECTED] |Sent: Thursday, July 31, 2003 5:01 PM |To: Struts

RE: Database Connection

2003-07-31 Thread Navjot Singh
not, and so on) |I think it's better to put it in the webapps classpath, if you're |not using |jndi. | |yours | |Marc | | |Am Donnerstag, 31. Juli 2003 13:37 schrieb Navjot Singh: | the jar file for your sybase driver should in the class path of tha app | server. | If it's tomcat put your jar file

RE: Problem with redisplay of form values when issuing error messages

2003-07-30 Thread Navjot Singh
it WILL redisplay the form with filled values. say, you submit a filled form, some data was wrong, the same form will be displayed WITH filled-in values. navjot |-Original Message- |From: Rodney Paul [mailto:[EMAIL PROTECTED] |Sent: Wednesday, July 30, 2003 2:09 PM |To: Struts Users

RE: Development time using Struts,

2003-07-29 Thread Navjot Singh
a framework that suits your needs, it WILL save lots of time. regards Navjot Singh |-Original Message- |From: Konstadinis Euaggelos [mailto:[EMAIL PROTECTED] |Sent: Tuesday, July 29, 2003 1:26 PM |To: Struts Users Mailing List |Subject: Development time using Struts, | | |Hi to all, I want

RE: need suggestion on logic

2003-07-28 Thread Navjot Singh
same as 2,3 steps. Checker can be implemented either using + Filter OR + Some method in Base Action + extend request controller. See what suits you. -Navjot Singh PS - If all you are looking for is general login system. See CMA/Realm Security. |-Original Message- |From: Ashish Kulkarni

  1   2   >