RE: Urgent

2004-03-22 Thread Dhaliwal, Pritpal (HQP)
Hello Vishal, You should provide more information. How did you declare your bean. Copy that line from the struts-config.xml. Where do you set the values and where do you try to access them? How about if you try to access them right after you set them. I am sure that will work. I think it seems

RE: File-Upload: Progress-Bar : Mega Upload

2004-03-19 Thread Dhaliwal, Pritpal (HQP)
So I have never tried this.. But if someone can try it and let me know.. Check this out http://www.raditha.com/megaupload/jsp.php Its progress bar thing that uses struts :) Today when I was driving to work.. I thought if a progress bar can be done using an applet.. :) ideas. ideas.. ideas..

RE: How do I get a cookie under a different path within the same domain with bean:cookie tag?

2004-03-02 Thread Dhaliwal, Pritpal (HQP)
Some cookie spec says: The path attribute is used to specify the subset of URLs in a domain for which the cookie is valid. If a cookie has already passed domain matching, then the pathname component of the URL is compared with the path attribute, and if there is a match, the cookie is considered

RE: [OT] RE: Memory usage

2004-02-27 Thread Dhaliwal, Pritpal (HQP)
On Thursday 26 February 2004 20:12, Dhaliwal, Pritpal (HQP) wrote: Now. Still remember when you wrote your first crappy lines you proudly called a 'program'? *That* exactly is what we all started from, considering me: nearly 23 years ago on a little ZX81 box, doing my first steps in Assembler

[OT] RE: Memory usage

2004-02-26 Thread Dhaliwal, Pritpal (HQP)
Viru Bhai, No, You code is not good or optimized. You have problems follwing instructions. Your question is not related to struts and you didn't put OT in the subject. Even if you put OT in subject, It would still be a bad question because that's not what this list is discussing. Primary reason

RE: Encode/Encrypt url parameters?

2004-02-24 Thread Dhaliwal, Pritpal (HQP)
I think you really mean encrypt.. Not just code and decode.. Look at this: http://javaalmanac.com/egs/javax.crypto/DesFile.html URLDecoder is and URLEncoder is put put those %20 instead of space in the URL I think.. Doesn't really add any security to what is URLEncoded. I guess you can get the

RE: Using Validator To Avoid Database Trip

2004-02-03 Thread Dhaliwal, Pritpal (HQP)
Things like Hibernate (ORM layer) might do some of these tricks for you. I think it only updates what has been changed and if you use caching, you are optimizing many other things.. Pritpal Dhaliwal -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Tuesday,

[FRIDAY] RE: What does do stand for in .do files

2004-01-30 Thread Dhaliwal, Pritpal (HQP)
Hello Nushin, Foo Bar :) (Greetings) Lazy programmers. People were tired of using .html, so they started using .do. Its smaller to write, less code, so your code executes much faster. One of the way java can run much faster than other competing technologies. This is also another way to staying

RE: handling form based authentication w/ remember-me cookie

2004-01-14 Thread Dhaliwal, Pritpal (HQP)
Why not a have cookie field in the database table.. You generate a random string, put that as a cookie on the client. Now when you get that cookie back, check if one of your users have that value stored as a cookie. That's the user. Pretty simple and no exposing users ids or passwords. Pritpal

RE: ActionForm - redirect to custom JSP after validation failed

2004-01-13 Thread Dhaliwal, Pritpal (HQP)
I generally like to stay away from using login.jsp AND a failure.jsp. Mainly because its two different pages to maintain, when they look very similar. So use just login.jsp for both just simple login, and failure. I would suggest that in your DisplayLoginAction or similar, set a request

RE: Is there a way to prevent urls from being entered from the br owser?

2003-12-29 Thread Dhaliwal, Pritpal (HQP)
Pick up something like mozilla as source, Fix it up so it has no location bar.. ( maybe just a link to ur app ) Distribute it... Now they can enter stuff in ur forms and all, but not in the location bar.. Hey its opensource, use it.. Pritpal Dhaliwal -Original Message- From: Mark Lowe

.Net Struts?

2003-12-16 Thread Dhaliwal, Pritpal (HQP)
Is anyone working on struts in .Net? Curious.. Pritpal Dhaliwal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: just learning it

2003-12-15 Thread Dhaliwal, Pritpal (HQP)
This is what you are looking for: http://www.bachansoft.com/tutorials/web/strutsquickstart.jsp Pritpal -Original Message- From: Travis D. Falls [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 12:35 PM To: 'Struts Users Mailing List' Subject: RE: just learning it Yes I went

RE: .do's come back as 404 file not found

2003-12-10 Thread Dhaliwal, Pritpal (HQP)
server also... Just wanted to let everyone know. My app server is resin-2.1.11 I will go to resin mailing list and see what they gotta say... Thanks.. Pritpal Dhaliwal -Original Message- From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 9:48 AM

RE: .do's come back as 404 file not found

2003-12-08 Thread Dhaliwal, Pritpal (HQP)
and then suddenly stopped working for all the .do actions. And then again sometimes it would work fine. However i could never find the problem. so post up if you do find the problem. Ajay From: Dhaliwal, Pritpal (HQP) [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject

RE: [OT] IE problem. stumped

2003-12-08 Thread Dhaliwal, Pritpal (HQP)
How much javascript is there?? Funny things happen when there is lots of javscript involved.. Esp when you are messing around with spans, their visibility being changed with js and all.. I generally stay away from javascript, unless really needed.. Paul Dhaliwal -Original Message-

.do's come back as 404 file not found

2003-12-05 Thread Dhaliwal, Pritpal (HQP)
Hello Everyone, I am using: Struts and Resin 2.1.11 All of sudden my index.do, or any other .do is not being recognized by resin anymore. It was working fine two days ago, all of sudden I am getting 404s In the logs I see that its picking up the correct struts-config.xml and it is that

RE: .do's come back as 404 file not found

2003-12-05 Thread Dhaliwal, Pritpal (HQP)
' Subject: RE: .do's come back as 404 file not found What's the url pattern for your action servlet defined in web.xml? -Original Message- From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 1:48 PM To: Struts Users Mailing List Subject: .do's come back

FormFile vs DiskFile

2003-11-26 Thread Dhaliwal, Pritpal (HQP)
So when you want to upload a file, the FormBean should have a FormFile member How do I get DiskFile from FormFile?? Can I just declare a member DiskFile in the form bean and it will give me a disk file? TIA, Pritpal Dhaliwal

RE: HAPPY DIWALI!

2003-10-23 Thread Dhaliwal, Pritpal (HQP)
Navjot Singh ,...India has always been protector of underprivilige and enormous immigrant from Pakistan, bangladesh, srilanka Some believe they have forgot(or suppressed) their own http://www.sikhs.org/1984.htm I have always wondering whats up with that Pritpal Dhaliwal -Original

RE: HAPPY DIWALI!

2003-10-22 Thread Dhaliwal, Pritpal (HQP)
I thought I would just add my 2 cents also and wish every Happy Diwali Diwali is celebrated all over India, and it has special importance to Sikh Religion. You can read more about it here -http://www.sikhstudy.com/diwali_for_sikhs.html , but the most significat reason was that Sikh Guru Hargobind

RE: Learning Struts

2003-10-21 Thread Dhaliwal, Pritpal (HQP)
There is lot of good tutorials out there. Here is one I wrote, which I think works good for beginners. It is very intuitive. http://www.bachansoft.com/tutorials/web/strutsquickstart.jsp HTH, Pritpal Dhaliwal -Original Message- From: Luiz Gustavo M. Almeida [mailto:[EMAIL PROTECTED]

RE: [OT] Forum solutions

2003-10-13 Thread Dhaliwal, Pritpal (HQP)
www.mvnforum.com Check it out :) Pritpal Dhaliwal -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 7:48 AM To: [EMAIL PROTECTED] Subject: [OT] Forum solutions Greetings, I'm currently trying to hunt down a java based forum solution which

RE: FileUpload and filePath

2003-10-03 Thread Dhaliwal, Pritpal (HQP)
I don't think that's possible, not if everything is built to do the right thing. If I understand correctly, you want to tell they people that they have uploaded C:\mydocs\doc1.txt (client's path to the file) on their computer (client's). Well, browsers are not supposed to send the whole path to

Intuition or reason behind Struts Chaining

2003-10-01 Thread Dhaliwal, Pritpal (HQP)
Hello Folks, So when does someone use Struts Chaining? I just went to www.strutschaning.org. I read its documentation and I am little lost on when I would use it. An actual example with its need would make me very very happy. Pritpal Dhaliwal

RE: already committed response error

2003-10-01 Thread Dhaliwal, Pritpal (HQP)
It just means the you are trying to do a .forward on a response which you have already starting writing something to. Generally You should not be forwarding stuff in a JSP because most likely than not, you have started writing to the response as soon as you are in the JSP. Your forwardings*

Sturts Quick Start Tutorial [Need Feedback]

2003-09-19 Thread Dhaliwal, Pritpal (HQP)
Hello everyone, I have written a struts tutorial that I think will help someone who wants to learn how to use struts fast. I wrote this tutorial because the struts documentation lacked something for the people like me who want to see struts in action fast, and also want to understand how all the

RE: Integration with other web apps

2003-09-12 Thread Dhaliwal, Pritpal (HQP)
1) Not sure if torque you can deal with different datasources, but I know in hibernate you can ask it to work from a connection that you supply. So now you get that connection from any data source you like. Creating databases for each user is bad idea I think. I think there should be one database

RE: Iterating Page by page

2003-09-11 Thread Dhaliwal, Pritpal (HQP)
I think it's a bad idea to have 100 items in the list, when you only plan to show 10. For one, you are not sure when the user is going to click the next button, so you have 100 objects sitting in a list, for a session, and your memory will go bye bye soon. You should do some business logic /

Problems using html tag lib

2003-09-10 Thread Dhaliwal, Pritpal (HQP)
Hello, I do this in my code: html:form action=/Greetings html:text property=flyer2/ /html:form And it says this when I run it : javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:831) at

RE: Valid Regexp for MM/dd/yyyy matching in a string?

2003-09-10 Thread Dhaliwal, Pritpal (HQP)
Very new to the list, so be easy if I mess up.. Why not use the Calendar class? Pritpal -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 2:01 PM To: 'Struts Users Mailing List' Subject: RE: Valid Regexp for MM/dd/ matching in a