printing pdf using javascript....

2004-03-11 Thread Prashanth.S

Hi all,

I have a requirement for printing of a PDF document on load of the page.

As soon as the browser window opens, the PDF document need to be loaded and

the print dialogue box of the PDF need to open. This works fine with the

following code in IE6.0

But when used with the IE5.0, this does not work





Intranet End user Pages



function callMe(){

frames[0].focus();

frames[0].print();

}













 

If I call the onLoad() function in frameset instead of Frame, the IE5.0 will

open the print dialogue box of the Browser(File->print) and not of the PDF

software. But this is also does not meet my requirement as I need to get the

print dialogue box for the PDF software. They are two different dialogue

boxes.







 

Thanks

Prashanth

 



-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

RE: [OT]--org.xml.sax.SAXNotRecognizedException...

2004-02-19 Thread Prashanth.S
hi
xteamly sorry...its just a snapshot...actually  was closed at the 
end...sorry once again..
thanks
prashanth


Turner Benjamin <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> simpleJ2EE
> 

the xml file is not well-formed.. is missing at the end.

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


-
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

[OT]--org.xml.sax.SAXNotRecognizedException...

2004-02-19 Thread Prashanth.S
Hi all,
iam little bit off the topic...
Iam getting the following exception 
 
Exception org.xml.sax.SAXNotRecognizedException:
Feature: http://apache.org/xml/features/allow-java-encodings 
while opening 
D:\ATG\Dynamo5.6.1\Portal\authentication\authentication\META-INF\application.xml 
org.xml.sax.SAXNotRecognizedException: 
Feature:http://apache.org/xml/features/allow-java-encodings
 
when parsing the below xml file
 

http://java.sun.com/j2ee/dtds/application_1_2.dtd";>

  
simpleJ2EE
  
 
iam using xerces parser...i checked the class file XMLParser.java and it has 
http://apache.org/xml/features/allow-java-encodings as one of values in
 private static final String RECOGNIZED_FEATURES[]  array.
 
Thanks
Prashanth
 
 


-
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

RE: [OT]caching XML object

2004-01-29 Thread Prashanth.S
Hi andrew,
Iam using xml  for displaying,deleting,updating and adding categories in a tree like 
hierarchy...so i need to cache it as it will be pain to read the same xml file again 
and again even though it has not changed[Will be in most cases]so how to go abt 
it???
Thanks
Prashanth


Andrew Hill <[EMAIL PROTECTED]> wrote:
Im not familiar with JDOM, but Ive had to do some DOM caching for standard
DOMs (with Xerces DOM impl) which proved to be a pain, as xerces DOM objects
arent thread-safe - even for reading apparently - which meant I had to clone
it from a synchronized block (thus eliminating most of the benefit of
caching it). Not sure if JDOM suffers such a constraint though.

What is the XML object being used for? There may be better ways around your
problem that dont necessarily involve directly caching and comparing the
XML.

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: Friday, 30 January 2004 10:45
To: [EMAIL PROTECTED]
Subject: [OT]caching XML object


Hi all,
How can i cache XML object in my web application?I dont want to always
read the xml file for constructing XML objecti also need a way to check
weather there has been any changes between the existing object in cache and
xml file???Iam using jdom

Thanks
Prashanth



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!


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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

[OT]caching XML object

2004-01-29 Thread Prashanth.S
Hi all,
How can i cache XML object in my web application?I dont want to always read the 
xml file for constructing XML objecti also need a way to check weather there has 
been any changes between the existing object in cache and xml file???Iam using jdom
 
Thanks
Prashanth
 


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Re: [OT]Variable evaluation in XAPTH expression

2004-01-21 Thread Prashanth.S
Hi kris,
Thanks a lot...This code works for me...
Thanks once again for solving all my problem.
Prashanth
 


Kris Schneider <[EMAIL PROTECTED]> wrote:
The JDOM XPath class has a method called setVariable, and variables in 
XPath expressions start with the $ character. I've never played with the 
JDOM XPath stuff, but I assume it's something like:

XPath xp = XPath.newInstance("/*/*/[EMAIL PROTECTED]");
xp.setVariable("map", "europe");

Prashanth.S wrote:

> Hi all,
> Iam using jdom for xml parsingso to search a particular element in a xml iam 
> using XPATH and iam trying to construct XPATH expression dynamicallyis it 
> possible to use variables inside XPATH expressionlike
> String map="europe";
> XPath servletPath = XPath.newInstance("/*/*/[EMAIL PROTECTED]");
> Iam eagerly waiting for reply...
> Thanks
> Prashanth

-- 
Kris Schneider 
D.O.Tech 



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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

[OT]Variable evaluation in XAPTH expression

2004-01-21 Thread Prashanth.S
Hi all,
Iam using jdom for xml parsingso to search a particular element in a xml iam using 
XPATH and iam trying to construct XPATH expression dynamicallyis it possible to 
use variables inside XPATH expressionlike
String map="europe";
XPath servletPath = XPath.newInstance("/*/*/[EMAIL PROTECTED]");
Iam eagerly waiting for reply...
Thanks
Prashanth



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

RE: XML and JSP

2004-01-20 Thread Prashanth.S
Hi all,
Thanks for the reply...will xtag really help me???i want to do many complex 
querying,adding and deleting elements,attributes in xml file...?
Thanks
Prashanth

"Hunt, Steve" <[EMAIL PROTECTED]> wrote:
Have a look at XTags, a very powerful way to manipulate xml for display in
jsps.

Regards
Steve

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 09:06
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 jsp???

Thanks
prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

XML and JSP

2004-01-20 Thread Prashanth.S
Hi all,
can anyone tell me a convinient way to display,add delete elements in a xml file from 
jsp???
 
Thanks
prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Design problem......

2004-01-14 Thread Prashanth.S
Hi all,
I am facing one critical design problemI have a page wherein user can add,delete 
and modify diffrent categories i.e it is like a hierarchial tree structure which can 
go upto any level i.e nth levelhow to obtain information???do i need to use 
database or is there are any other methods
Thanks
suman


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Re: Detecting PDF plugin on users browser

2004-01-10 Thread Prashanth.S
http://www.skyzyx.com/scripts/acrobat.php
above script will detect for both IE and netscape

Mark Lowe <[EMAIL PROTECTED]> wrote:
Works only on windows, I've done this sort of thing before where you 
use javascript to write vbscript and all that jazz. At the end of the 
day IMO best to assume that the user knows what a pdf is and know how 
they want to read it.

I guess you could use something like this and just return a link for 
folks who don't use windows.


On 10 Jan 2004, at 11:00, Guillermo Meyer wrote:

> Have you seen http://www.dithered.com/javascript/acrobat_detect/ ?
>
> -Original Message-
> From: Prashanth.S [mailto:[EMAIL PROTECTED]
> Sent: Sábado, 10 de Enero de 2004 12:08 a.m.
> To: [EMAIL PROTECTED]
> Subject: Detecting PDF plugin on users browser
>
>
> Hi all,
> I need to detect weather pdf plugin is installed on users browser or
> not??? I have used "Accept" header from request to get all the mime
> types but it is not giving "application/pdf" as one of mime types and
> its giving rest of mime types along with */*
>
> Than i used java script which creates Active x objectit works fine
> when i embed that on a standalone html but when i use the same html in
> resin web server it falis to create active x objectSo are there any
> other alternatives
>
> Thanks
> Prashanth
>
>
> -
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>
>
> -
> 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]


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Detecting PDF plugin on users browser

2004-01-09 Thread Prashanth.S
Hi all,
I need to detect weather pdf plugin is installed on users browser or not???
I have used "Accept" header from request to get all the mime types but it is not 
giving "application/pdf" as one of mime types and its giving rest of mime types along 
with */*
 
Than i used java script which creates Active x objectit works fine when i embed 
that on a standalone html but when i use the same html in resin web server it falis to 
create active x objectSo are there any other alternatives
 
Thanks
Prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Re: [OT] Re: Printing PDF Files in java

2003-12-04 Thread Prashanth.S
hi julie,
it doesnt suite my requirement.i want to print pdf files stored in repositoryi 
dont want to generate reports blh blah as mentioned in that site
thanks
prashanth


[EMAIL PROTECTED] wrote:
try datavision reporting tool

http://datavision.sourceforge.net/




"Prashanth.S" 
12/04/2003 08:12 AM
Please respond to "Struts Users Mailing List"


To: Struts Users Mailing List 
cc: 
Subject: Re: [OT] Re: Printing PDF Files in java


Hi daniel...
Thanks for the reply...but my requirement is just to stream the existing 
pdf files from server and print into the browser printer...??
Thanks
Prashanth


[EMAIL PROTECTED] wrote:
try jasper reports.
the examples show how to create a report then toss it to several differnt
formats including a printer.
- Original Message - 
From: "Jesse Alexander (KADA 11)" 
To: "'Struts Users Mailing List'" 
Sent: Thursday, December 04, 2003 7:40 AM
Subject: RE: [OT] Re: Printing PDF Files in java


> Are you definitely sure you want to tdo this?
> Better is to show the PDF (download it to the user) and let the browser
and os of the client
> do the nasty job of rendering and printing...
>
> hth
> Alexander
>
> -Original Message-
> From: Prashanth.S [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 4. Dezember 2003 13:37
> To: Struts Users Mailing List
> Subject: Re: [OT] Re: Printing PDF Files in java
>
>
> try pjx third party toolbut i still havent got the answer for 
printing
pdf files in java:((
>
>
> Rouven Gehm wrote:
> BTW what is a good tool, to create PDF with Java ?
>
> Thanx
>
> Rouven
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/3/2003


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


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now



= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Re: [OT] Re: Printing PDF Files in java

2003-12-04 Thread Prashanth.S
Hi daniel...
Thanks for the reply...but my requirement is just to stream the existing pdf files 
from server and print into the browser printer...??
Thanks
Prashanth


[EMAIL PROTECTED] wrote:
try jasper reports.
the examples show how to create a report then toss it to several differnt
formats including a printer.
- Original Message - 
From: "Jesse Alexander (KADA 11)" 
To: "'Struts Users Mailing List'" 
Sent: Thursday, December 04, 2003 7:40 AM
Subject: RE: [OT] Re: Printing PDF Files in java


> Are you definitely sure you want to tdo this?
> Better is to show the PDF (download it to the user) and let the browser
and os of the client
> do the nasty job of rendering and printing...
>
> hth
> Alexander
>
> -Original Message-
> From: Prashanth.S [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 4. Dezember 2003 13:37
> To: Struts Users Mailing List
> Subject: Re: [OT] Re: Printing PDF Files in java
>
>
> try pjx third party toolbut i still havent got the answer for printing
pdf files in java:((
>
>
> Rouven Gehm wrote:
> BTW what is a good tool, to create PDF with Java ?
>
> Thanx
>
> Rouven
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/3/2003


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


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Re: [OT] Re: Printing PDF Files in java

2003-12-04 Thread Prashanth.S
try pjx third party toolbut i still havent got the answer for printing pdf files 
in java:((


Rouven Gehm <[EMAIL PROTECTED]> wrote:
BTW what is a good tool, to create PDF with Java ?

Thanx

Rouven


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


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Re: [OT] Re: Printing PDF Files in java

2003-12-04 Thread Prashanth.S
Can u pls tell me how to convert pdf files to postscript format..kindly help me.

[EMAIL PROTECTED] wrote:

I encountered the same requirements. javax.print runs well, but printers
don't recognize PDF files in native. So we generate PostScript files for
printing purpose. Users can download PDF files and can also print files in
PostScript format. It works fine.





Extranet
[EMAIL PROTECTED] - 12/04/2003 04:45 AM


Please respond to [EMAIL PROTECTED]
To: struts-user

cc:


Subject: Re: [OT] Re: Printing PDF Files in java


Hi kirk,
Thanks for the replyActually i planned to use signed applets with RMI
for remote printing but since i couldnt able to accomplish printing the PDF
file even if u get the original file[through applets saving in local
machine] i couldnt go ahead...
Any ideas other than using JavaScript
Thanks
Prashanth

Kirk Wylie wrote:
Prashanth.S wrote:

> Hi all,
> Is there any way in java tp print PDF files by getting stream out of PDF
> files and giving the same to printer
>
> I did lot of R&D on the above topic using javax.print package avilable
> in jdk1.4,third party libraries like PJX,itree and JFreeReport but
> nothing provided me the solution.My requirement is to print user
> selected files in his local printer.

The javax.print stuff is local to the JVM being executed. Assuming that
you're dealing with a server-side application (i.e. your question is
marginally relevant to the struts-user list), you can potentially
accomplish this using JavaScript.

But since essentially you'd have to (on the client using JavaScript):
1) Grab the file
2) Launch Acrobat Reader and instruct IT to print the file

This might be easier said than done.

But someone else might have experience with doing this using JavaScript.
The important thing I wanted to express is that you won't be able to do
it using Java raw because in a server-side application you don't
actually have any Java running on the client's machine: the java is
entirely executing on the server.

Kirk Wylie
M7 Corporation


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


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now









This message and any attachments (the "message") is intended solely for the addressees 
and is confidential. 
If you receive this message in error, please delete it and immediately notify the 
sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole or partial, is prohibited 
except formal approval. 
The internet can not guarantee the integrity of this message. BNP PARIBAS (and its 
subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a 
l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de 
le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce message non conforme a sa 
destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. 
L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute 
responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


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



-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Re: [OT] Re: Printing PDF Files in java

2003-12-03 Thread Prashanth.S
Hi kirk,
Thanks for the replyActually i planned to use signed applets with RMI for remote 
printing but since i couldnt able to accomplish printing the PDF file even if u get 
the original file[through applets saving in local machine] i couldnt go ahead...
Any ideas other than using JavaScript
Thanks
Prashanth

Kirk Wylie <[EMAIL PROTECTED]> wrote:
Prashanth.S wrote:

> Hi all,
> Is there any way in java tp print PDF files by getting stream out of PDF 
> files and giving the same to printer
> 
> I did lot of R&D on the above topic using javax.print package avilable 
> in jdk1.4,third party libraries like PJX,itree and JFreeReport but 
> nothing provided me the solution.My requirement is to print user 
> selected files in his local printer.

The javax.print stuff is local to the JVM being executed. Assuming that 
you're dealing with a server-side application (i.e. your question is 
marginally relevant to the struts-user list), you can potentially 
accomplish this using JavaScript.

But since essentially you'd have to (on the client using JavaScript):
1) Grab the file
2) Launch Acrobat Reader and instruct IT to print the file

This might be easier said than done.

But someone else might have experience with doing this using JavaScript. 
The important thing I wanted to express is that you won't be able to do 
it using Java raw because in a server-side application you don't 
actually have any Java running on the client's machine: the java is 
entirely executing on the server.

Kirk Wylie
M7 Corporation


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


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Printing PDF Files in java

2003-12-03 Thread Prashanth.S
Hi all,
Is there any way in java tp print PDF files by getting stream out of PDF files and 
giving the same to printer
 
I did lot of R&D on the above topic using javax.print package avilable in jdk1.4,third 
party libraries like PJX,itree and JFreeReport but nothing provided me the solution.My 
requirement is to print user selected files in his local printer.
 
Hope someone helps.
Thanks
Prashanth
 


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Re: redirect problem

2003-10-09 Thread Prashanth.S
Hi koen,
I dont know much about how it is handled in struts...but in jsp u can use 
respone.sendRedirect("/foo/bar.jsp")
Thanks
Prashanth


koen boutsen <[EMAIL PROTECTED]> wrote:
Hi
If the session is invalid, I want to send the user to the logon page. This works fine 
when I go through an action. In some cases, I don't go through an action, I want to 
redirect the user. 
I tried it like this : (sessionIsValid is a attribute in the session. If this 
attribute is null, it means that my session does no longer exist).









This is the error I get :
ava.lang.IllegalStateException
[9/10/03 15:44:01:242 CEST] 498b26a6 SystemErr R at 
com.ibm.ws.webcontainer.webapp.WebAppDispatcherResponse.sendRedirect(WebAppDispatcherResponse.java:87)
[9/10/03 15:44:01:242 CEST] 498b26a6 SystemErr R at 
org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:306)
[9/10/03 15:44:01:242 CEST] 498b26a6 SystemErr R 


Any reply will be appreciated, because I'm completely stuck

Thanks

Koen





Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: Struts security

2003-10-09 Thread Prashanth.S
http://www.informit.com/isapi/product_id~%7B1841ABCB-E1B7-445F-A722-1378C58AD8E0%7D/content/index.asp

muzammil shahbaz <[EMAIL PROTECTED]> wrote:This can simple be done by authorizing user 
in each action class. We
have request & session attributes which may be helpful for checking the
current state of user.

Before doing any processing, first of all, process user authentication
and if finds any restriction then forward the action to appropriate
error page.

Regards,
MMS

--
From: Stefan Trcko [SMTP:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 12:29 PM
To: Struts Users Mailing List
Subject: Struts security

Hello

I want to implement security in my struts web portal, so
that I can restrict users which actions they can
perform.

Has anybody already worked on this kind of security in
Struts?

Thanks in advice
Stefan





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



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: urlrewriting Vs Cookies

2003-10-08 Thread Prashanth.S
But this doesnt solve my problem as it says me to use url rewriting..
Thanks
Prashanth


Mark Lowe <[EMAIL PROTECTED]> wrote:
I'd have though cookie use was upto the user rather than your client.

http://jakarta.apache.org/struts/userGuide/struts-html.html#link


On Wednesday, October 8, 2003, at 12:16 PM, Prashanth.S wrote:

> Hi navjot,
> My clients doesnt want me to use cookiesSo that my application 
> should run even for users who have disabled cookies...The problem with 
> url-rewriting is that jsessionid is maintained across applications so 
> that if any one get url of the application they can go through the 
> application from any corner of the world[where as the expected 
> behaviour is session time out error]...Any suggestions for this 
> problem???
> Thanks
> Prashanth
>
>
> Navjot Singh wrote:
> here is the clue.
>
> cookies are again of two types.
>
> + persistent - will remain there even if you close browser and opens 
> next
> day.
> + non-persistent/session - the moment you close browser window they are
> gone. These also work only under child browser windows.
>
> So, i assume you are looking 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 is that
>> jsessionid is maintained across browsers so that users can access
>> the application if they get the url..[even on other system the
>> application work if u get the url]..so is there any other option???
>> Thanks
>> Prashanth
>>
>>
>> Navjot Singh wrote:
>> 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: Prashanth.S [mailto:[EMAIL PROTECTED]
>>> Sent: Wednesday, October 08, 2003 1:30 PM
>>> To: [EMAIL PROTECTED]
>>> Subject: urlrewriting Vs Cookies
>>>
>>>
>>> Hi all,
>>> i want to know that among urlrewriting and cookies,which one is
>>> better???If i dont want to use cookies is there any otherway to do
>>> session invalidation[other than url rewriting]..Iam using resin.
>>> Thanks
>>> Prashanth
>>>
>>>
>>>
>>>
>>> -
>>> Do you Yahoo!?
>>> The New Yahoo! Shopping - with improved product search
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> -
>> Do you Yahoo!?
>> The New Yahoo! Shopping - with improved product search
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: urlrewriting Vs Cookies

2003-10-08 Thread Prashanth.S
Hi navjot,
My clients doesnt want me to use cookiesSo that my application should run even for 
users who have disabled cookies...The problem with url-rewriting is that jsessionid is 
maintained across applications so that if any one get url of the application they can 
go through the application from any corner of the world[where as the expected 
behaviour is session time out error]...Any suggestions for this problem???
Thanks
Prashanth


Navjot Singh <[EMAIL PROTECTED]> wrote:
here is the clue.

cookies are again of two types.

+ persistent - will remain there even if you close browser and opens next
day.
+ non-persistent/session - the moment you close browser window they are
gone. These also work only under child browser windows.

So, i assume you are looking 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 is that
>jsessionid is maintained across browsers so that users can access
>the application if they get the url..[even on other system the
>application work if u get the url]..so is there any other option???
>Thanks
>Prashanth
>
>
>Navjot Singh wrote:
>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: Prashanth.S [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, October 08, 2003 1:30 PM
>>To: [EMAIL PROTECTED]
>>Subject: urlrewriting Vs Cookies
>>
>>
>>Hi all,
>>i want to know that among urlrewriting and cookies,which one is
>>better???If i dont want to use cookies is there any otherway to do
>>session invalidation[other than url rewriting]..Iam using resin.
>>Thanks
>>Prashanth
>>
>>
>>
>>
>>-
>>Do you Yahoo!?
>>The New Yahoo! Shopping - with improved product search
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: urlrewriting Vs Cookies

2003-10-08 Thread Prashanth.S
Hi navjot,
Thanks for the reply...But the problem with url rewriting is that jsessionid is 
maintained across browsers so that users can access the application if they get the 
url..[even on other system the application work if u get the url]..so is there any 
other option???
Thanks
Prashanth


Navjot Singh <[EMAIL PROTECTED]> wrote:
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: Prashanth.S [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, October 08, 2003 1:30 PM
>To: [EMAIL PROTECTED]
>Subject: urlrewriting Vs Cookies
>
>
>Hi all,
>i want to know that among urlrewriting and cookies,which one is
>better???If i dont want to use cookies is there any otherway to do
>session invalidation[other than url rewriting]..Iam using resin.
>Thanks
>Prashanth
>
>
>
>
>-
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

urlrewriting Vs Cookies

2003-10-08 Thread Prashanth.S
Hi all,
i want to know that among urlrewriting and cookies,which one is better???If i dont 
want to use cookies is there any otherway to do session invalidation[other than url 
rewriting]..Iam using resin.
Thanks
Prashanth
 



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: should not work in different machine...

2003-10-07 Thread Prashanth.S
Hi,
Regarding my problem of invalidating application[giving some sort of session timeout 
error when the url of a running application is copy pasted into  different machine] i 
have one small idea.
Iam passing sessionid in url...so what i will do is get some property which is 
specific to each system and set that into session and before executing any jsp i will 
check this property with the property of the system...If thses 2 things match i will 
let application run else i will invaidate the applicationIs it correct???If this 
is good idea what is the good system property which is unique to each system???
waiting for reply
Thanks
Prashanth


"Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
Andrew Hill wrote:

>
>I think that IE will keep all the session infomation in the new window, but
>Netscape starts up a complete new session
>
>
>Thats if your using cookies.
>
For IE, it also depends on the setting of your "browse in a new process" 
(or something like that) setting -- it's not an absolute one way or the 
other.

Craig



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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: should not work in different machine...

2003-10-02 Thread Prashanth.S
Hi andrew,
you are exactly right...iam using url encoding here which keeps the session id
number as part of the url itself..so that session remains...so what should i do to 
solve my problem
Thanks
Prashanth


"Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
Andrew Hill wrote:

>
>I think that IE will keep all the session infomation in the new window, but
>Netscape starts up a complete new session
>
>
>Thats if your using cookies.
>
For IE, it also depends on the setting of your "browse in a new process" 
(or something like that) setting -- it's not an absolute one way or the 
other.

Craig



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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: should not work in different machine...

2003-10-01 Thread Prashanth.S

Hi andrew,
Thank u very much for ur reply...I just wanted to know what is CMA ???...and even 
though iam using https its not encrypting anything???Why is it so...
Thanks
Prashanth

Andrew Hill <[EMAIL PROTECTED]> wrote:
Yep - because its the same sessionId and the session hasnt timed out yet
(cos the first client is still playing with it). The server doesnt know the
difference between a request from client A and client B except for the fact
that they have a different sessionId.

In fact this is what is known as 'session hijacking' and can be a security
problem as the sessionId is just part of the request (in the url or in a
cookie) sent by the browser. If your not using SSL a hacker with a machine
in between the users machine and the server with a packet sniffer can find
out the sessionId allocated to a logged in user and take over their session
without needing to know passwords or anthing like that!

You may be able to make use of certain request headers sent by the browser
to try and detect this situation - but Im not sure which ones would be
appropriate - and different browsers dont necessarily send the same stuff
the same way - and even then it could only be a convience feature rather
than a security feature as headers are easily spoofed.

Ahhh the joys of using a web based UI :-(

ps:
As Shishir just pointed out in another reply, if your requiring your users
to authenticate then you can use CMA to force the browser to include a
userid and password in its requests which might stop the problem of a
foreign machine taking over the session, though again this isnt secure as
the login info sent by the browser isnt encryped afaik (for which you would
need SSL).

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 17:16
To: Struts Users Mailing List; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: should not work in different machine...



Hi,
Thanks for the solution..Actually my problem is if i copy paste my
application url from my machine and use it on other machine it still lets
user to go through the application but instead it should invalidate by
giving session time out error...So what to do???
Waitinf gor reply
Prashanth

Andrew Hill wrote:
eh?
Thats something about XSLT

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 14:54
To: Struts Users Mailing List
Subject: Re: should not work in different machine...


for this you have to trap the CTRL-N key event through HTML tags. GOTO


http://www.javaworld.com/javaworld/jw-12-2001/jw-1221-xslt.html?

link . search you will get the solution.

abhijeet



- Original Message -
From: "Prashanth.S"
To:
Sent: Wednesday, October 01, 2003 10:22 AM
Subject: should not work in different machine...


> Hi all,
> In my application i dont want [copy pasting the same url in
different window] to work...My application is sending sessionid in URLSo
how i need to do this so that i cant browse through the application when i
copy paste the url in different machine.???
> Thanks
> prashanth
>
>
> -
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: should not work in different machine...

2003-10-01 Thread Prashanth.S
Hi,
actually my problem is not ctrl-N..i just wanted to say the same url as u get when u 
press ctrl-N like i explain below...
 
I want to show session expired message if any other user tries to use the same url as 
iam using...its like u r browsing through yahoo mail and u give the entire url to 
other user and if he tries to access that url[which contains my user info]he will get 
session timed out error...
Thanks
Prashanth

[EMAIL PROTECTED] wrote:
Try using the login as form based authentication in web.xml and it will not let the 
user to get by doing a CTRL-N 

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: 01 October 2003 10:16
To: Struts Users Mailing List; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: should not work in different machine...



Hi,
Thanks for the solution..Actually my problem is if i copy paste my application url 
from my machine and use it on other machine it still lets user to go through the 
application but instead it should invalidate by giving session time out error...So 
what to do???
Waitinf gor reply
Prashanth

Andrew Hill wrote:
eh?
Thats something about XSLT

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 14:54
To: Struts Users Mailing List
Subject: Re: should not work in different machine...


for this you have to trap the CTRL-N key event through HTML tags. GOTO


http://www.javaworld.com/javaworld/jw-12-2001/jw-1221-xslt.html?

link . search you will get the solution.

abhijeet



- Original Message -
From: "Prashanth.S" 
To: 
Sent: Wednesday, October 01, 2003 10:22 AM
Subject: should not work in different machine...


> Hi all,
> In my application i dont want [copy pasting the same url in
different window] to work...My application is sending sessionid in URLSo
how i need to do this so that i cant browse through the application when i
copy paste the url in different machine.???
> Thanks
> prashanth
>
>
> -
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: should not work in different machine...

2003-10-01 Thread Prashanth.S

Hi,
Thanks for the solution..Actually my problem is if i copy paste my application url 
from my machine and use it on other machine it still lets user to go through the 
application but instead it should invalidate by giving session time out error...So 
what to do???
Waitinf gor reply
Prashanth

Andrew Hill <[EMAIL PROTECTED]> wrote:
eh?
Thats something about XSLT

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 14:54
To: Struts Users Mailing List
Subject: Re: should not work in different machine...


for this you have to trap the CTRL-N key event through HTML tags. GOTO


http://www.javaworld.com/javaworld/jw-12-2001/jw-1221-xslt.html?

link . search you will get the solution.

abhijeet



- Original Message -
From: "Prashanth.S" 
To: 
Sent: Wednesday, October 01, 2003 10:22 AM
Subject: should not work in different machine...


> Hi all,
> In my application i dont want [copy pasting the same url in
different window] to work...My application is sending sessionid in URLSo
how i need to do this so that i cant browse through the application when i
copy paste the url in different machine.???
> Thanks
> prashanth
>
>
> -
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

should not work in different machine...

2003-09-30 Thread Prashanth.S
Hi all,
In my application i dont want [copy pasting the same url in different window] 
to work...My application is sending sessionid in URLSo how i need to do this so 
that i cant browse through the application when i copy paste the url in different 
machine.???
Thanks
prashanth


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Caching the servelet

2003-09-29 Thread Prashanth.S
Hi all,
I have one problem in routing servelet...If i use browser back and go to the routing 
servelet its still caching...I have turned off browser cache for all 
jsps[Response.CacheControl="no-cache"
   Response.AddHeader "Pragma","no-cache"
   Response.Expires=0
] but i dont know how to do it in case of servelet...Pls suggest any ideas???
Thanks
Prashanth
 


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: understanding

2003-09-26 Thread Prashanth.S
Hi Nick,
Great!!Thanks for ur replyI got ur point
Thanks
Prashanth


Nicholas L Mohler <[EMAIL PROTECTED]> wrote:





If you do not specify a name attribute, then an assumption is made that the
specified property is an attribute in the form that is associated with the
mapping.

If you have a mapping (SampleAction) that uses a form (SampleForm), then
the example you gave below assumes that the SampleForm object has an
attribute called "fields" that is a collection.

Nick




"Prashanth.S" 

o.com> cc: 
Subject: Re: understanding 
09/26/2003 09:41 
AM 
Please respond to 
"Struts Users 
Mailing List" 






Hi julie,
Thanks for the reply but i wanted to know what does this property="fields"
denote as there is no name attribute used in it???

Thanks
Prashanth




[EMAIL PROTECTED] wrote:
use the "propery" ...in your case it is fields




"Prashanth.S"
09/26/03 09:04 AM
Please respond to "Struts Users Mailing List"


To: [EMAIL PROTECTED]
cc:
Subject: understanding


Hi all,
i found this tag while going through one of jsps but i couldnt understand
what this denotes

I dont find any name attributeThan how can a property attribute can be
used..
Thanks
Prashanth



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search



= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
This transmittal and any attachments may contain confidential, privileged
or sensitive information and is solely for the use of the intended
recipient. If you are not intended recipient, you are hereby notified that
you have received this transmittal and any such attachments in error and
any review, dissemination, distribution or copying thereof is strictly
prohibited. If you have received this transmittal and any attachments in
error please notify the sender and immediately destroy the message and all
its attachments. Any opinions herein expressed may be those of the author
and not necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank
accepts no responsibility for the accuracy or completeness of any
information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search




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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: understanding

2003-09-26 Thread Prashanth.S
Hi julie,
Thanks for the reply but i wanted to know what does this property="fields" denote as 
there is no name attribute used in it???

Thanks
Prashanth
 



[EMAIL PROTECTED] wrote:
use the "propery" ...in your case it is fields




"Prashanth.S" 
09/26/03 09:04 AM
Please respond to "Struts Users Mailing List"


To: [EMAIL PROTECTED]
cc: 
Subject: understanding


Hi all,
i found this tag while going through one of jsps but i couldnt understand 
what this denotes

I dont find any name attributeThan how can a property attribute can be 
used..
Thanks
Prashanth



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search



= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

understanding

2003-09-26 Thread Prashanth.S
Hi all,
i found this tag while going through one of jsps but i couldnt understand what this 
denotes

I dont find any name attributeThan how can a property attribute can be used..
Thanks
Prashanth
 


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Migrating to struts

2003-09-02 Thread Prashanth.S
Hi all,
i asked this question previously and i havent got reply...I need to know how best can 
we migrate from present running application which uses jsp[and lot of custom taglibs] 
to struts...
Any url reference would also be usefull
Thanks in advance
Prashanth
 
 


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

struts with other frameworks and JSTL

2003-08-26 Thread Prashanth.S
Hi all,
I have 2 questions
1-->Where can i find comparision between struts and other frameworks[like cacoon etc 
etc]
2-->How can i switch existing application [which uses lot os jstl and customised 
taglibs] into struts framework..just need a brief idea...
Thanks
Prashanth



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

concatenation in java script

2003-08-20 Thread Prashanth.S
Hi all,
I need to concatenate values from 2 dropdowns[user selects option from 2 dropdowns] 
and send it as a single request parameter.Is there any way to do this using java 
scripts???or how else can i do this
awaiting for reply
Thanks
Prashanth


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: file upload problem

2003-08-18 Thread Prashanth.S
hi brian,
try changing the folder permission from read-only??Its just a guess
Thanks
Prashanth


Brian McSweeney <[EMAIL PROTECTED]> wrote:
Hi all,

I'm trying to do a file upload action based on the example
struts-upload.war.

I want to save the uploaded file to a folder on disk. However when I try
to run 
the action I get an error saying I don't have access to the folder. I've
tried 
changing the folder access and also using a different folder. 

I still get a file not found exception which says 

java.io.FileNotFoundException: .. (Access is denied)

I'm using JBoss 3.2.1_tomcat4.1.24. 
Perhaps JBoss restricts folder access?

The code that runs the struts action is:-


AddProductForm frm = (AddProductForm) form;

//retrieve the file representation
FormFile file = frm.getTheFile();

//retrieve the file name
String fileName= file.getFileName();

//retrieve the content type
String contentType = file.getContentType();

//retrieve the file size
String size = (file.getFileSize() + " bytes");

log.info("File details - name: "+fileName);
log.info("File details - contentType: "+contentType);
log.info("File details - size: "+size);


// this is where I get the folder path to save the image into.

String imageStorePath = Init.getImageStorePath();
log.info("the value of imageStorePath is: "+imageStorePath);

try {
//retrieve the file data
ByteArrayOutputStream baos = new ByteArrayOutputStream();
InputStream stream = file.getInputStream();

//write the file to the file specified
OutputStream bos = new FileOutputStream(imageStorePath);
int bytesRead = 0;
byte[] buffer = new byte[8192];
while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
bos.write(buffer, 0, bytesRead);
}
bos.close();
log.info("The file has been written to \"" + imageStorePath
+ "\"");
//close the stream
stream.close();
}

catch (FileNotFoundException fnfe) {
log.error("Couldn't find the file: "+ fnfe.toString());
}
catch (IOException ioe) {
log.error("io exception: "+ ioe.toString()); 
}
finally{
//destroy the temporary file created
file.destroy();
return mapping.findForward( WebConstants.SUCCESS );
}
}


Any help would be greatly appreciated.
Cheers,
Brian



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: How to use ActionError with two keys?

2003-08-14 Thread Prashanth.S
Hi
i think u need to use positional parameter substitution instead of using another key
like {0},{1} etc in actionerror and replace them with actual values in properties 
file..
HTH
prashanth

Zsolt Koppany <[EMAIL PROTECTED]> wrote:
Hi,

how can I use ActionError with two keys. The example below show what I
would like to do:


new ActionError("errors.required", "host.name")



Zsolt


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: not working!

2003-07-31 Thread Prashanth.S
Hi
u need to paste ur actionform as well as action class to gave us some idea of what is 
goin wrong??
Thanks
Prashanth

Samanth Athrey <[EMAIL PROTECTED]> wrote:
Hi,

I have this tag in my jsp file. But when error occurs, this
fails to display the error messages on the jsp file. There is only single
copy of my ApplicationResources.properties file.

I am overriding the validate() method of the ActionForm class. Could anybody
tell me where am going wrong. I even tried DynaValidatorActionForm but no
results.

Thanx in advance.

Samanth




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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Survey Builder

2003-07-31 Thread Prashanth.S
how much do u charge for that kind of an application..


PREETAM Balijepalli <[EMAIL PROTECTED]> wrote:
Do u need it for money or free

-Original Message-
From: Marco Fabbri [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:02 PM
To: Struts Users Mailing List
Subject: Survey Builder


Hi all,
does someone knows how can I find a struts application to dynamically build a survey?

An example is : http://www.surveytime.com/.

But I need less features than this...
Thanks a lot in advance.

Marco Fabbri

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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: Need help for design

2003-07-31 Thread Prashanth.S
hi,
Try looking through the following url...since i havent used tomcat..I use resin and 
done authentication using resin
http://www.jguru.com/faq/subtopic.jsp?topicID=221898
Thanks
Prashanth

Anubhav Kale <[EMAIL PROTECTED]> wrote:
I am using Tomcat server. Can you please tell me how exactly to do that
(what code I have to write etc)

Thanks

Anubhav
- Original Message -
From: "Prashanth.S" 
To: "Struts Users Mailing List" 
Sent: Thursday, July 31, 2003 11:33 AM
Subject: Re: Need help for design


> Hi,
> U can use authenticator classes of whatever server u use...Example is to
use cauchoauthenticator [if u r using resin web server]...etc
> Thnks
> Prashanth
>
> Anubhav Kale wrote:
> Hello
>
> I want to create a simple JSP page with login and password fields. If i/p
is correct (verified against a database) I should give user access to some
JSP pages. If user tries to go to these JSP pages directly without entering
correct username and password then he should be redirected back to login
page.
>
> How do I do all this? (I think i need to create some session id and things
like that)
>
> Thanks
>
> Anubhav
>
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: Need help for design

2003-07-30 Thread Prashanth.S
Hi,
U can use authenticator classes of whatever server u use...Example is to use 
cauchoauthenticator [if u r using resin web server]...etc
Thnks
Prashanth

Anubhav Kale <[EMAIL PROTECTED]> wrote:
Hello

I want to create a simple JSP page with login and password fields. If i/p is correct 
(verified against a database) I should give user access to some JSP pages. If user 
tries to go to these JSP pages directly without entering correct username and password 
then he should be redirected back to login page.

How do I do all this? (I think i need to create some session id and things like that)

Thanks

Anubhav 



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: How to add action errors from action class's execute method--Got the solution

2003-07-30 Thread Prashanth.S
Hi stephan,
Try looking through the following url
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp
Here they have explained how to use actionerrors...I too didnt knew abt this option...
Hope i havent misleaded u...
Thanks
Prashanth
Stephan Wiesner <[EMAIL PROTECTED]> wrote:
Hi Prashanth,
thanks that did indeed help. Though I don't understand, why I should not 
use the actionerrors. There certainly should be a way to display a 
selected one, if I can display all?

Stephan


Prashanth.S wrote:

>Hi stephan,
>For ur problem i recommend that u use action messages not actionerrors..
>http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.messages
>hope the above link helps..
>Thanks
>Prashanth
>
>
>Stephan Wiesner wrote:
>Hi Anurag,
>your proposal works for me, but how can I recall the value? I can get at
>it with but I want to display it by key, not all stored
>values?
>
>Stephan
>
>Anurag Garg wrote:
>
> 
>
>>Hi,
>>
>>U can create the ActionError object and add them in the ActionErrors class
>>in the action class.
>>Now to forward the request to some resource add the actionerrors object
>>method in the sendError().
>>
>>Use saveErrors(request,errors) in the action class.
>>
>>where errors is an object of type ActionClass.
>>
>>Anurag Garg.
>>
>>
>>-Original Message-
>>From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 24, 2003 11:36 PM
>>To: [EMAIL PROTECTED]
>>Subject: How to add action errors from action class's execute method
>>
>>
>>Hello all,
>>
>>How would you add action errors from an action class's execute method?
>>
>>I would like to be able to add errors and forward to another resource
>>without the need to do it in the validate method of the form bean.
>>
>>Thanks,
>>
>>Joshua
>>
>>
>>
>>This communication, including attachments, is for the exclusive use of
>>addressee and may contain proprietary, confidential or privileged
>>information. If you are not the intended recipient, any use, copying,
>>disclosure, dissemination or distribution is strictly prohibited. If
>>you are not the intended recipient, please notify the sender
>>immediately by return email and delete this communication and destroy all
>>copies.
>>
>>
>>-
>>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]
>
>
>
>-
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
> 
>


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: How to add action errors from action class's execute method

2003-07-30 Thread Prashanth.S
Hi stephan,
Even i too dont know abt that option...Another important thing is that in 
 tag u must use {message=true} attribute  in order for message to get 
displayed...That thing is not specified in docs...I dont know  why
HTH
Prashanth

Stephan Wiesner <[EMAIL PROTECTED]> wrote:
Hi Prashanth,
thanks that did indeed help. Though I don't understand, why I should not 
use the actionerrors. There certainly should be a way to display a 
selected one, if I can display all?

Stephan


Prashanth.S wrote:

>Hi stephan,
>For ur problem i recommend that u use action messages not actionerrors..
>http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.messages
>hope the above link helps..
>Thanks
>Prashanth
>
>
>Stephan Wiesner wrote:
>Hi Anurag,
>your proposal works for me, but how can I recall the value? I can get at
>it with but I want to display it by key, not all stored
>values?
>
>Stephan
>
>Anurag Garg wrote:
>
> 
>
>>Hi,
>>
>>U can create the ActionError object and add them in the ActionErrors class
>>in the action class.
>>Now to forward the request to some resource add the actionerrors object
>>method in the sendError().
>>
>>Use saveErrors(request,errors) in the action class.
>>
>>where errors is an object of type ActionClass.
>>
>>Anurag Garg.
>>
>>
>>-Original Message-
>>From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 24, 2003 11:36 PM
>>To: [EMAIL PROTECTED]
>>Subject: How to add action errors from action class's execute method
>>
>>
>>Hello all,
>>
>>How would you add action errors from an action class's execute method?
>>
>>I would like to be able to add errors and forward to another resource
>>without the need to do it in the validate method of the form bean.
>>
>>Thanks,
>>
>>Joshua
>>
>>
>>
>>This communication, including attachments, is for the exclusive use of
>>addressee and may contain proprietary, confidential or privileged
>>information. If you are not the intended recipient, any use, copying,
>>disclosure, dissemination or distribution is strictly prohibited. If
>>you are not the intended recipient, please notify the sender
>>immediately by return email and delete this communication and destroy all
>>copies.
>>
>>
>>-
>>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]
>
>
>
>-
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
> 
>


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: How to add action errors from action class's execute method

2003-07-30 Thread Prashanth.S
Hi stephan,
For ur problem i recommend that u use action messages not actionerrors..
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.messages
hope the above link helps..
Thanks
Prashanth


Stephan Wiesner <[EMAIL PROTECTED]> wrote:
Hi Anurag,
your proposal works for me, but how can I recall the value? I can get at
it with but I want to display it by key, not all stored
values?

Stephan

Anurag Garg wrote:

>Hi,
>
> U can create the ActionError object and add them in the ActionErrors class
>in the action class.
> Now to forward the request to some resource add the actionerrors object
>method in the sendError().
>
> Use saveErrors(request,errors) in the action class.
>
> where errors is an object of type ActionClass.
>
>Anurag Garg.
>
>
>-Original Message-
>From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 24, 2003 11:36 PM
>To: [EMAIL PROTECTED]
>Subject: How to add action errors from action class's execute method
>
>
>Hello all,
>
>How would you add action errors from an action class's execute method?
>
>I would like to be able to add errors and forward to another resource
>without the need to do it in the validate method of the form bean.
>
>Thanks,
>
>Joshua
>
>
>
>This communication, including attachments, is for the exclusive use of
>addressee and may contain proprietary, confidential or privileged
>information. If you are not the intended recipient, any use, copying,
>disclosure, dissemination or distribution is strictly prohibited. If
>you are not the intended recipient, please notify the sender
>immediately by return email and delete this communication and destroy all
>copies.
>
>
>-
>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]



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: Text Box on JSP Page

2003-07-27 Thread Prashanth.S
hi
have u tried to use  tag...
try it along with some java script
HTH
Prashanth

Anubhav Kale <[EMAIL PROTECTED]> wrote:
Hello.

I want to display a string inside text box on JSP Page. If the string contains spaces 
then only the 1st substring upto 1st space is diaplayed in text box on the page. (e.g. 
if string is "anubhav kale" then text box displays only "anubhav" )

I use the following code:

 [input]  value = > 

Can somebody help me how to avoid this ??

( TEXTAREAS solve this problem but I DO NOT want to use TEXTAREAS as textarea inserts 
unnecessary spaces)

Thanks

Anubhav 



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: html:select problem

2003-07-22 Thread Prashanth.S
Hi,
I think that in the reset method in ur action form u need to make the selected array 
null[selected array is the array inside ur actionform that gets filled in request 
scope when u select any items in the list]so that the same array is not submitted 
again and again..
HTH
Prashanth

Ionel Gardais <[EMAIL PROTECTED]> wrote:
Hi,

I have a small problem with html:select tag.

I use the same JSP for creating a editing a form.
Everything works well for the creation step but when I edit the form, 
all fields are perfectly filled but the select list doesn't display the 
previously selected items.

I observerved the same behavior when the validate method detects an 
error and displays the error message : the selected items are gone.

Any ideas where the problem come from ?


thanks,
ionel


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: error..!(Thnks Swaroop George)

2003-07-22 Thread Prashanth.S
Hi
I agree with nagendra..
try out

instead of 
scope=request...
Thanks
Prashanth


virupaksha hosamath <[EMAIL PROTECTED]> wrote:
Dear Nagendra,

Still same error no change...!
Still I am not getting where will be the problem..?

Hey Nagendra..? r u indian..? where ur working..?

I m indian working in Malysia..

thanks 4 mail,

Regds,
virupaksha

Nagendra Kumar O V S wrote:
FLAVOR00-NONE---;hey,
u have saved ur dataObject to the request with the name "list" .
so ur jsp should look something like this











Show 





check it out!!

-- nagi
---Original Message---

From: Struts Users Mailing List
Date: Tuesday, July 22, 2003 11:37:18 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: error..!(Thnks Swaroop George)


Dear Swaroop,

Thanks for ur response..!

I just want to retrive data from the database using bean Dept.java,
I m not using any formbean here.just instantiating Dept bean in 
ListDepartmentAction.java and displaying using tag in jsp called DeptListing.jsp. 
Action mapping has done in struts-config.xml.
but still, i m getting same error. can u help me out..?

Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)

for ur ref. i m sending code again pls. find..

im getting same error

Thank you once again..
please reply me

Regards,
virupaksha

struts-config---










-

-DeptListing.jsp-










Show 




---
-ListDepartmentsAction.java--
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{

public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest 
request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.getSession().setAttribute("list",dept.getDepartments);
return mapping.findForward("listing");
}
}
---
--error--

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
 at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav

struts with jmx???

2003-07-17 Thread Prashanth.S
Hi all,
Can anybody let me know how best we can use struts with jmx i.e, to invoke mbean data 
running on a remote mbean serverdoes struts have any components to do so??any 
example or url would be very much helpfull..
Thanks
Prashanth


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2003-07-16 Thread Prashanth.S
Hi augusto,
I think in ur ApplicationResources.properties file check out for the existance for all 
the keys u r using like app.title,app.name etc etc..
Than if its correct paste ur ,, etc tags where 
u r using keys from properties file...
Thanks
Prashanth

[EMAIL PROTECTED] wrote:
Dirk

Thanks for your response!
I did not have that tag in my struts-config.xml. Actually this is my third 
Struts application and I never used it before.
Well, I pasted it and re-deployed the app, but it did not work either 
(nothing has changed).
:-/



My JSP crashes if I add bean:messages like:


If I remove them all, nothing goes wrong (but I get a blank page :o)

Anyone?


=== 
Augusto Cesar Guagliano
[EMAIL PROTECTED]
Project Manager
+55 19 3253.3440
Infosoftware Consulting
http://www.infosoftware.com.br
===

Esta mensagem pode conter informação confidencial e/ou privilegiada. Se 
você não for o destinatário ou a pessoa autorizada a receber esta 
mensagem, não pode usar, copiar ou divulgar as informações nela contidas 
ou tomar qualquer ação baseada nessas informações. Se você recebeu esta 
mensagem por engano, por favor avise imediatamente o remetente, 
respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação.

This message may contain confidential and/or privileged information. If 
you are not the addressee or authorized to receive this for the addressee, 
you must not use, copy, disclose or take any action based on this message 
or any information herein. If you have received this message in error, 
please advise the sender immediately by reply e-mail and delete this 
message. Thank you for your cooperation.





Dirk Markert 
16/07/2003 11:39
Please respond to "Struts Users Mailing List"


To: "Struts Users Mailing List" 
cc: 
Subject: Re: Cannot find message resources under key 
org.apache.struts.action.MESSAGE


Hello Augusto,

do you have



in your struts-config.xml?

***

AGicb> Hi everyone

AGicb> I have an application that was working fine 'til yesterday.
AGicb> As you probably figured out, yes, I am new with Struts :-)

AGicb> After some modifications (mess?), I started getting:
AGicb> org.apache.jasper.JasperException: Cannot find message resources 
under key 
AGicb> org.apache.struts.action.MESSAGE

AGicb> My ApplicationResources.properties is inside /WEB-INF/classes
AGicb> In my web.xml, I have:

AGicb> 
AGicb> action
AGicb> 
org.apache.struts.action.ActionServlet
AGicb> 
AGicb> 
application

AGicb> 
ApplicationResources

AGicb> 
AGicb> (... etc...)


AGicb> I tried googling (and searching list archive, which is down), but 
all the 
AGicb> solutions point to misplacement of the properties file, and that is 
not my 
AGicb> case.

AGicb> What am I doing wrong?

AGicb> I am using Struts 1.1 and Tomcat 4.1.24.

AGicb> === 
AGicb> Augusto Cesar Guagliano
AGicb> [EMAIL PROTECTED]
AGicb> Project Manager
AGicb> +55 19 3253.3440
AGicb> Infosoftware Consulting
AGicb> http://www.infosoftware.com.br
AGicb> ===

AGicb> Esta mensagem pode conter informação confidencial e/ou 
privilegiada. Se 
AGicb> você não for o destinatário ou a pessoa autorizada a receber esta 
AGicb> mensagem, não pode usar, copiar ou divulgar as informações nela 
contidas 
AGicb> ou tomar qualquer ação baseada nessas informações. Se você recebeu 
esta 
AGicb> mensagem por engano, por favor avise imediatamente o remetente, 
AGicb> respondendo o e-mail e em seguida apague-o. Agradecemos sua 
cooperação.

AGicb> This message may contain confidential and/or privileged 
information. If 
AGicb> you are not the addressee or authorized to receive this for the 
addressee, 
AGicb> you must not use, copy, disclose or take any action based on this 
message 
AGicb> or any information herein. If you have received this message in 
error, 
AGicb> please advise the sender immediately by reply e-mail and delete 
this 
AGicb> message. Thank you for your cooperation.



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG |
| Joseph-von-Fraunhofer-Str. 20 |
| 44227 Dortmund |
+-->>> to success! <<-+ 


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






-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: why no message resources for value

2003-07-16 Thread Prashanth.S
Hi,
I thing below code works for u.
 

where 
app.title
[u define in resource bundle]
 
Thanks
Prashanth

Peter Bosmans <[EMAIL PROTECTED]> wrote:
I was wondering why the value in a html:submit couldn't be set with a 
message resource value (like titleKey and altKey).
This means that i could never use i18n for the submit button ?

greetings

Peter


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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: URL validation with struts???

2003-07-15 Thread Prashanth.S
Hi all,
How abt throwing MalformedURLException in the service method inside action class??
Than no need to do validation in action form??
Is it correct??
Help??
Thanks
Prashanth

Dichotomy <[EMAIL PROTECTED]> wrote:
Steps:

1) Use a regular expression to check that the url fits the pattern you are looking for 
(here's a good tutorial on regexes: 
http://www.zvon.org/other/PerlTutorial/Output/index.html). You can do this directly 
with the validator framework if you're using it, or later from the action.
2) Open a java.io or java.nio connection to that url to check that it is valid. Look 
into File and/or InputStream for more info on how to do this.

You should never put any logic in the form bean itself (it should remain a plain dumb 
form bean). Put this code in a library and make a call to it from your action.

-- 
If education is too expensive, try ignorance.


On Tue, 15 Jul 2003 06:36:14 -0700 (PDT)
"Prashanth.S" wrote:

> Hi all,
> I need to upload a resource present at a particular location by making user enter a 
> valid URL...How can i do URL name validation using struts???Is there anything to do 
> so??Do i need to do this in action form or action class??[what User entered is a 
> valid url i.e,both name as well as resource present at that url)
> Thanks in advance
> Prashanth
> 
> 
> 
> -
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

URL validation with struts???

2003-07-15 Thread Prashanth.S
Hi all,
I need to upload a resource present at a particular location by making user enter a 
valid URL...How can i do URL name validation using struts???Is there anything to do 
so??Do i need to do this in action form or action class??[what User entered is a valid 
url i.e,both name as well as resource present at that url)
Thanks in advance
Prashanth



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread Prashanth.S
Hi kris,
Thanks for the info.Iam a newbie to java and i came to know after reading books that 
their functionality is allmost similar.Now through u i came to know that they r 
different.Thanku very much for guiding me.Is there any resource present on net that 
would guide me in this matter???
Thanks
Prashanth

Kris Schneider <[EMAIL PROTECTED]> wrote:
Prashanth,

Thanks, but my point was that they're really nothing alike. I wasn't 
asking the questions because I didn't know the answers, I was asking 
because the answers would illustrate some of the differences. If the 
information in the link you provided implies that event listeners and 
filters are almost the same thing then it's horribly misleading.

Prashanth.S wrote:
> Hi Kris,
> I have studied eventlisteners in a book[programming jakarta struts].I think below 
> mentioned url will provide u with the required info.. 
> 
> http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=3
> 
> Thanks
> Prashanth
> 
> Kris Schneider wrote:
> I don't really see how event listeners and filters are almost the same thing.
> Can you elaborate? Is it possible to provide a customized request or response
> object through an event listener? Can event listeners be mapped to either a
> specific servlet or URL pattern?
> 
> Quoting "Prashanth.S" :
> 
> 
>>I think u can also use eventlisteners which are allmost same thing as
>>filters..
>>Regards
>>Prashanth
>>
>>Kris Schneider wrote:
>>Seems like the easiest thing to do would be to write a Filter mapped to
>>"/*"
>>that uses HttpServletRequest.getRequestURI to capture the requested URI. In
>>a
>>conformant Servler 2.3 container, the Filter will only operate on the
>>original
>>client request, not forwards or includes.
>>
>>Quoting david chan :
>>
>>
>>>Hi,
>>>I am writing a RequestProcessor that is a subclass of
>>>Struts 1.1 RequestProcessor, the purpose is to track
>>>user activities, i.e. which link the user clicked,
>>>which page the user requested etc.
>>>I override the method processForwardConfig, and put
>>>my tracking function first, here is how it looks:
>>>
>>>//my code to log user request
>>>logPage(request.getRequestURI());
>>>super.processForwardConfig(request, response, forward
>>>);
>>>
>>>
>>>However, there is one problem with this approach, 
>>>If there is action chaining (or server side forward),
>>>that will be also logged, but that is not the user
>>>requested URI, and I don't need to log any of chained
>>>action URI or server side forwarded URI. 
>>>
>>>Any suggestion how to deal with this problem?
>>>
>>>Thanks.
>>>David
>>
>>-- 
>>Kris Schneider 
>>D.O.Tech 

-- 
Kris Schneider 
D.O.Tech 



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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread Prashanth.S
Hi Kris,
I have studied eventlisteners in a book[programming jakarta struts].I think below 
mentioned url will provide u with the required info.. 
 
http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=3
 
Thanks
Prashanth

Kris Schneider <[EMAIL PROTECTED]> wrote:
I don't really see how event listeners and filters are almost the same thing.
Can you elaborate? Is it possible to provide a customized request or response
object through an event listener? Can event listeners be mapped to either a
specific servlet or URL pattern?

Quoting "Prashanth.S" :

> I think u can also use eventlisteners which are allmost same thing as
> filters..
> Regards
> Prashanth
> 
> Kris Schneider wrote:
> Seems like the easiest thing to do would be to write a Filter mapped to
> "/*"
> that uses HttpServletRequest.getRequestURI to capture the requested URI. In
> a
> conformant Servler 2.3 container, the Filter will only operate on the
> original
> client request, not forwards or includes.
> 
> Quoting david chan :
> 
> > Hi,
> > I am writing a RequestProcessor that is a subclass of
> > Struts 1.1 RequestProcessor, the purpose is to track
> > user activities, i.e. which link the user clicked,
> > which page the user requested etc.
> > I override the method processForwardConfig, and put
> > my tracking function first, here is how it looks:
> > 
> > //my code to log user request
> > logPage(request.getRequestURI());
> > super.processForwardConfig(request, response, forward
> > );
> > 
> > 
> > However, there is one problem with this approach, 
> > If there is action chaining (or server side forward),
> > that will be also logged, but that is not the user
> > requested URI, and I don't need to log any of chained
> > action URI or server side forwarded URI. 
> > 
> > Any suggestion how to deal with this problem?
> > 
> > Thanks.
> > David
> 
> -- 
> Kris Schneider 
> D.O.Tech 

-- 
Kris Schneider 
D.O.Tech 

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread Prashanth.S
I think u can also use eventlisteners which are allmost same thing as filters..
Regards
Prashanth

Kris Schneider <[EMAIL PROTECTED]> wrote:
Seems like the easiest thing to do would be to write a Filter mapped to "/*"
that uses HttpServletRequest.getRequestURI to capture the requested URI. In a
conformant Servler 2.3 container, the Filter will only operate on the original
client request, not forwards or includes.

Quoting david chan :

> Hi,
> I am writing a RequestProcessor that is a subclass of
> Struts 1.1 RequestProcessor, the purpose is to track
> user activities, i.e. which link the user clicked,
> which page the user requested etc.
> I override the method processForwardConfig, and put
> my tracking function first, here is how it looks:
> 
> //my code to log user request
> logPage(request.getRequestURI());
> super.processForwardConfig(request, response, forward
> );
> 
> 
> However, there is one problem with this approach, 
> If there is action chaining (or server side forward),
> that will be also logged, but that is not the user
> requested URI, and I don't need to log any of chained
> action URI or server side forwarded URI. 
> 
> Any suggestion how to deal with this problem?
> 
> Thanks.
> David

-- 
Kris Schneider 
D.O.Tech 

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: Check box problem.

2003-07-14 Thread Prashanth.S
Hi,
make the selected array null in reset method in ur form like...
String [] arrSelectedItems={};
Dont destroy the array...
HTH
Prashanth

Andrew Hill <[EMAIL PROTECTED]> wrote:
I wouldst refereth thy attention unto the documentation for the reset()
method of the class known as ActionForm wherein shall be found all that
which thou doust require.

-Original Message-
From: Ravi Garg [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 18:09
To: Struts Users Mailing List
Subject: Check box problem.


Hi all,

I am using JSPs with checkboxes() in
all the screen. As we know that an "on" (or value of checkbox) is sent
as request whenever I check the checkbox. Then what is sent when I
uncheck the checkbox??

What I observed that if I have stored the form in session and checked
2-3 check boxes. Submited the form moved onto 2nd JSP which also uses
the same form I again check 2-3 checkboxes and want to go back and
change my selection in previous screen. So I go back an change my
selection. Now my third screen displays my all selections. But it
displays the unchecked checkboxes which I checked on my second attempt.
Could any of you tell me any solution to this problem. One solution is
to define the scope of form as request and use hidden field but I cannot
use hidden fields cause number of checkboxes is not fixed.

Regards,
Ravi

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: NewBie: Wizard screens

2003-07-07 Thread Prashanth.S
Hi sushil,
The checkbox value will automatically put into request scope by struts.U just have to 
retrieve that using name of checkbox where ever u want.[probably in next action class].
Another important thing is that u must clear checkbox value arraylist in the 
actionform class[Assuming that u r using multibox tag].
HTH
Prashanth
 

Sussu Struts <[EMAIL PROTECTED]> wrote:
Hello ,
I have to design a wizard screens in which the flow goes from one Jsp to other using 
naviagation. In each naviagtion there is some business processing which is required.

I have a table which I have populated in the Jsp2, which has one column as checkboxes. 
I have used multibox for the same. User can select any of the checkboxes and based on 
the selection i need to pick the record for further processing in the subsequent 
screens.
I have populated is using a iterate tag over a Arraylist which was populated in the 
Action and form bean associated with JSP1.

Now what i dont get is where will the check box be set ( as the getter and setter for 
the data in the table is in Formbean1) and how will I get the values of the checkboxes 
in the next screen. The Formbean and Action class for the JSP2(where the table is 
shown) is currently dummy.

Thanks in advance 
Sussu


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Tag to remove jsp from cache???

2003-07-01 Thread Prashanth.S
Hi Nicolas ,
Thank u very much for ur response.
I have done whatever u said in my struts-config but i dont know how come my controller 
element is not at all getting called..
Here is my struts-config snapshot.

..
..
..
 
 
   
  
 
 
  

 
 
Could u please help me in this regard.
Where should i specify controller element??[in which part of struts-config.xml]
Thanking u
Prashanth


Nicolas De Loof <[EMAIL PROTECTED]> wrote:
You can configure Struts to ad HTTP no-cache headers to every response :

in struts-config.xml :


You can add some HTTP directives to your JSP (or tiles layouts) like this :







Nico.



> Before you send any data in the response you can 
> Send the following thru your response object:
> 
> >response.setDateHeader ("Expires", 0);
>response.setHeader ("Pragma", "no-cache");
>if (request.getProtocol().equals ("HTTP/1.1")) {
>   response.setHeader ("Cache-Control", "no-cache");
>}
> %>
> 
> Note, however that users can still go back in history
> And resubmit their data. Browsers maintain history list
> And unfortunately they do remember form data too. So if
> Your user submitted a request and then clicks back button,
> The browser will ask him/her if he/she wants to resubmit 
> the data? I saw a note somewhere in Ted's (I think) book 
> about how you can prevent this kind of submission on the 
> server side but have not explored that further. Now I 
> can't even remember where I saw it. 
> 
> The gist of it is that before you send the form to be 
> submitted by the user you stamp it, and remember what is 
> it you still expecting from the user inside the Session 
> context. If user submits the form with the right stamp 
> the request is processed, otherwise you can tell the user
> to stop resubmitting the same request.
> 
> Alex.
> 
> > -Original Message-
> > From: Prashanth.S [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 01, 2003 8:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: Tag to remove jsp from cache???
> > 
> > Hi all,
> > Is there any tag in struts to remove cache??
> > Whenever i hit Browser 'Back' button it should not take from the
> cache..
> > Any help is appreciated..
> > or is there any option to do that
> > Thanks
> > Prashanth
> > 
> > 
> > -
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> 
> 
> -
> 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]



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Tag to remove jsp from cache???

2003-07-01 Thread Prashanth.S
Hi all,
Is there any tag in struts to remove cache??
Whenever i hit  Browser 'Back' button it should not take from the cache..
Any help is appreciated..
or is there any option to do that
Thanks
Prashanth


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Adding id attributes to tags

2003-06-30 Thread Prashanth.S
Hi ryan,
Use paramId and   paramName attributes of  tag to pass single name-value 
pair.Instead if u need to pass multiple name-value pairs you need to use hashmap..
Hope this helps.
Cheers
Prashanth 


Ryan Shillington <[EMAIL PROTECTED]> wrote:

In order to test my application with HTTPUnit, I need
to be able to identify my links. I can't figure out a
way to put an id inside of the link when using the
tag.

I have a hard time believing that I'm the first to us
HTTPUnit with struts :-). I've checked the archives
and couldn't come up with anything. Anybody?

I'm using Struts 1.1

Thanks,

Ryan


Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: How to do this

2003-06-30 Thread Prashanth.S
Hi shashi,
U must use javascripts to do that and within javascripts u forward it to an action 
that populates all the fields.I have done that and it works fine..
Cheers
Prashanth

Sashi Ravipati <[EMAIL PROTECTED]> wrote:
Hi

I have a lookup table which has approx(1000 rows) with Code and Description. (Say 
1=Office,2=home etc)
The user will input data(Say code=1) in a text field and when he moves to next field 
he wants the description (Office) to be displayed.

Did somebody have similar situation or does struts have something in the framework 
using which the above requirement can be achieved.

Any ideas 

Thanks



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: site root going straight to a .do

2003-06-30 Thread Prashanth.S
Hi kelly
How did u accomplished ur requirements..pls let us know..
Thanks
Prashanth

Simon Kelly <[EMAIL PROTECTED]> wrote:
Yep. Done it!

Should have posted to say it's all working ok.

My bad ;-)

Cheers

Simon


- Original Message -
From: "Affan Qureshi" 
To: 
Sent: Monday, June 30, 2003 3:00 PM
Subject: Re: site root going straight to a .do


> Have you tried configuring the in web.xml. I guess you
> can do all this there.
>
> Affan
>
> "Simon Kelly" wrote in message
> news:[EMAIL PROTECTED]
> > Hi all,
> >
> > Sorry about the subject line, it's the best I can do in one sentance.
> >
> > What I'm trying to do, is set up the wecome file, so that instead of
> having
> > to go via a html or jsp page, I can go straight to an action class! Any
> > ideas?
> >
> > If someone types in htt://our.site.com/ourapp then it should go straight
> to
> > the welcome.do Action and not a html file.
> >
> > I'm using struts1.1 and stxx.
> >
> > Cheers
> >
> > Simon
> >
> >
> > "I have often wondered how it is that every man loves himself more than
> all
> > the rest of men, but yet sets less value on his own opinion of himself
> than
> > on the opinion of others." -- Georg Christoph Lichtenberg
> >
> > Institut fuer
> > Prozessdatenverarbeitung
> > und Elektronik,
> > Forschungszentrum Karlsruhe GmbH,
> > Postfach 3640,
> > D-76021 Karlsruhe,
> > Germany.
> >
> > Tel: (+49)/7247 82-4042
> > 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]



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: site root going straight to a .do

2003-06-30 Thread Prashanth.S
Hi simon kelly,
I dont know why do u want to do that
If u would still need to do that, in the struts-config.xml 
  >
 type="...GetEventChangeAction"
..
..
..
  
 
Than i think it will directly go to the action and displays the result which is 
evaluated in the action class.{i.e,success or failure}..but u keep it in mind that u 
are changing the life cycle of jsp...???
 
Hope this helps
Prashanth


Simon Kelly <[EMAIL PROTECTED]> wrote:
Hi all,

Sorry about the subject line, it's the best I can do in one sentance.

What I'm trying to do, is set up the wecome file, so that instead of having
to go via a html or jsp page, I can go straight to an action class! Any
ideas?

If someone types in htt://our.site.com/ourapp then it should go straight to
the welcome.do Action and not a html file.

I'm using struts1.1 and stxx.

Cheers

Simon


"I have often wondered how it is that every man loves himself more than all
the rest of men, but yet sets less value on his own opinion of himself than
on the opinion of others." -- Georg Christoph Lichtenberg

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Regarding isCancelled(request)

2003-06-30 Thread Prashanth.S
Hi adam,
Thank you very much for ur reply.When i was exploring iscancelled() in action  class i 
came to know that validate method wont be called when user presses cancel...so i came 
to know finally that even though cancel button is inside form ,validate method wont be 
called according to the source code of action class..
Any comments are welcome as iam a newcommer to struts
Thanks
Prashanth
Thanking

Adam Hardy <[EMAIL PROTECTED]> wrote:
Hi Prashanth,
if you use a and , then the correct HTML for 
struts will be produced, which results in the struts controller servlet 
NOT executing the validation when the user clicks cancel.

Adam

Prashanth.S wrote:
> Hi all,
> Iam using submit and cancel buttons inside form action so that on pressing any of 
> the buttons action is getting called...but dont want validate method to get called 
> on pressing cancel buttonso is there any way to do so...do i need to specify 
> submit and cancel as buttons instead of putting them in submit actionIam as of 
> now using 
> isCancelled(request) in my action class..
> Waiting for reply
> Thanking you
> Prashanth
> 
> 
> 
> -
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!


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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Regarding isCancelled(request)

2003-06-30 Thread Prashanth.S
Hi all,
Iam using submit and cancel buttons inside form action  so that on pressing any of the 
buttons action is getting called...but dont want validate method to get called on 
pressing cancel buttonso is there any way to do so...do i need to specify submit 
and cancel as buttons instead of putting them in submit actionIam as of now using 
isCancelled(request) in my action class..
Waiting for reply
Thanking you
Prashanth



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

File Upload size restriction ??--another question--urgent

2003-06-30 Thread Prashanth.S
Hi all,
Is there any limit on the size of the file to be uploaded when i use struts...
Iam using FormFile interface for struts upload...
Is  there  any limit on the size of the file that is being uploaded...Iam getting 
error when i am uploading large files even though iam not using any validations...
Waiting for reply
Thanking you
Prashanth

Nicolas De Loof <[EMAIL PROTECTED]> wrote:
In fact I've got this strange behaviour :

- Form-bean is validated a first time. 
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an
ActionError is returned by validate().

- browser go on uploading for a long time ... (5 minutes for 10Mo upload on localhost)

- validate is called A SECOND TIME.
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an ActionError is 
returned by validate().

- browser show errors.


My code looks like Struts upload example. I certainly not understood something !

Nico.



> I'm using fileupload too and have difficulties to send errors about file size.
>
> Are you able to send an error message with this code ?
>
> In my application validate method returns errors (I can see it in logs) when file is 
> too large, but browser does'nt
> display error JSP (waintg ...). I thing it is waiting for the file to be uploaded or 
> something like this.
>
> I'm using tomcat 4.1.24 an IE 6 on Windows 2000.
>
> Nico.
>
>
> > Uups,
> >
> > found the answer in one of the strus-examples.
> >
> > Here it is for those who are interested.
> >
> > Regards
> >
> > Markus
> >
> >
> >
> >
> > /**
> > * Check to make sure the client hasn't exceeded the maximum
> > allowed upload size inside of this
> > * validate method.
> > */
> > public ActionErrors validate(ActionMapping mapping,
> > HttpServletRequest request)
> > {
> > ActionErrors errors = null;
> > //has the maximum length been exceeded?
> > Boolean maxLengthExceeded = (Boolean)
> >
> > request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
> > if ((maxLengthExceeded != null) &&
> > (maxLengthExceeded.booleanValue()))
> > {
> > errors = new ActionErrors();
> > errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new
> > ActionError("maxLengthExceeded"));
> > }
> > return errors;
> >
> > }
> >
> >
> >
> > -
> > 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]


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Error working with MessageFormat as per Ted's tips...(Ted...?)

2003-06-28 Thread Prashanth.S
hi mick,
Try giving message="true" or messages="true"
and check out.
Cheers
Prashanth

Mick Knutson <[EMAIL PROTECTED]> wrote:
I can't get this to work in my JSP:
(java.util.Date)registrationForm.getCreationDate() %>" key="form.reg.creationDate">

I keep getting this error:

[ServletException in:/WEB-INF/default/body/registration.view.jsp] Unable to 
compile class for JSPNote: sun.tools.javac.Main has been deprecated. An 
error occurred at line: 209 in the jsp file: 
/WEB-INF/default/body/registration.view.jsp Generated servlet error: 
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52611\WEB-INF\default\body\registration$view$jsp.java:1397:
 
Undefined variable or class name: registrationForm 
_jspx_th_bean_message_33.setArg0( (String)registrationForm.getCreationDate() 
); ^ 1 error, 1 warning ' org.apache.jasper.JasperException: Unable to 
compile class for JSPNote: sun.tools.javac.Main has been deprecated. An 
error occurred at line: 209 in the jsp file: 
/WEB-INF/default/body/registration.view.jsp Generated servlet error: 
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52611\WEB-INF\default\body\registration$view$jsp.java:1397:
 
Undefined variable or class name: registrationForm 
_jspx_th_bean_message_33.setArg0( (String)registrationForm.getCreationDate() 
); ^ 1 error, 1 warning at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:289) at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
 
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
 
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at 
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121) at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820) 
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391) 
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) 
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at 
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) 
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at 
org.apache.jsp.default$jsp._jspService(default$jsp.java:381) at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
 
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at 
org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129) at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
 
at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
 
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
 
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) 
at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:40)
 
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
 
at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102)
 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
 
at 
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:48) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
 
at 
org.mortbay.jetty.servlet.WebApplicationHa

Re: error handling

2003-06-27 Thread Prashanth.S
ya
I agree with nicolas.But is there any way of  doing it typically THE STRUTS WAY???
cheers
Prashanth

Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>
> But by doing in this way, for the forward name="failure" I will always end up in 
> StatuicUpload.jsp
> (for the below example) I don't want to goto that jsp. I need to goto the parent 
> page.
> Let me explain the scenario once again. From two different jsps (say a.jsp and 
> b.jsp) I am coming to
> an action (bt clicking the link in each jsp). From this action, upon an error I want 
> to go back to
> "a.jsp" (if the request came from a.jsp) or to b.jsp (if the request came from 
> b.jsp). So here I
> won't be able to hard code the path either as "a.jsp" or as "b.jsp" in the 
> struts-config.xml. In
> you example upon error, it will always forward to StaticUpload.jsp
>
> Thanks,
> Pramod

If you really cannot set multiples action-mappings in struts-config.xml (that is the 
cleaner way to do), you can add a
parameter to your request for the "incoming" JSP :



and build a new forward in your action when errors occurs :

if (!errors.isEmpty()) {
saveErrors(request, errors);
String commingFrom = request.getParameter("from");
return new ActionForward(from);
}


Nico.


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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: error handling

2003-06-27 Thread Prashanth.S
Hi pramod,
you once thoroughly take a look at actionerror and actionerrors docs.
If u want to route ur errors to the parent page,
give the following statement in your action class.
 
actionErrors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.tx.incomplete"));
saveErrors(request, actionErrors);
return (mapping.findForward("failure"));
 
Than in struts-config.xml,Add the following line.
 

   
 
 
Than in your jsp type down the following

 
The above thing works for ActionErrors.GLOBAL_ERROR.If u want to handle individual 
errors u have to do minor modifications which any good struts tutorial can 
explain.Thats very simple.

 
Hope this helps.
Cheers
Prashanth
 
 


[EMAIL PROTECTED] wrote:

Hi, 
Can anyone send me a solution for the following problem: 
>From two jsps, I am coming to the same action class. (in the first jsp, I have a 
>link, clicking on 
this will go to an action say MyAction. From the second jsp also, I can goto the same 
action 
MyAction). In the MyAction class, how do I write code to return to the parent page 
when error 
occurs. (I am catching error using ActionErrors) 
path = "/MyAction" 
type = "mypackage.MyAction" 
name = "myFormBean" 
scope = "session"> 





Here, if the forward is success, i am able to got Result.jsp. But if any error is 
there, how do I 
display the error in the parent page? (I can come to this action from two different 
parent page) 
Please advise. 


Thanks, 


Pramod 











This electronic mail message is intended solely for the named recipients and may 
contain
confidential and proprietary business information of eFunds Corporation and all its 
subsidiaries.
If you are not a named recipient, please notify the sender immediately. You may not 
disclose the
contents to any other person; use this electronic mail message or its contents for any 
other
purpose; or further store or copy its contents in any medium



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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: How to Disable Checkbox in Struts

2003-06-27 Thread Prashanth.S
Hi filip,
Thank u very much.I got that.
Thanking u
Prashanth

Filip Polsakiewicz <[EMAIL PROTECTED]> wrote:
use 

HTH Filip

> -Original Message-
> From: Prashanth.S [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 27, 2003 6:40 AM
> To: [EMAIL PROTECTED]
> Subject: How to Disable Checkbox in Struts
> 
> 
> Iam displaying checkbox option in 1st jsp and leaving user to 
> select the checkbox.
> In the 2nd jsp i need to display the option selected by the user 
> but make it noneditable...
> so kindly help me...
> Thanks
> Prashanth
> 
> 
> 
> -
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: How to Disable Checkbox in Struts

2003-06-26 Thread Prashanth.S
I got it..
It was too simple
Thanks
bye


"Prashanth.S" <[EMAIL PROTECTED]> wrote:
Iam displaying checkbox option in 1st jsp and leaving user to select the checkbox.
In the 2nd jsp i need to display the option selected by the user but make it 
noneditable...
so kindly help me...
Thanks
Prashanth



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: How to create checkboxe within an iterator tag.

2003-06-26 Thread Prashanth.S
 Hi
kindly look at the dumps from my struts application which will definately usefull to u 
in fullfiling ur requirements.
 
<<<>>
 <%
 String[] items = {"xyz","abc"};
 request.setAttribute("items",items);
 %>
 
   



 
 
<>
 private String[] selectedItems = {};
 public String[] getSelectedItems()
 {
   return this.selectedItems;
 }
 public void setSelectedItems(String[] selectedItems)
 {
   this.selectedItems = selectedItems;
 }
 public void reset(ActionMapping mapping, HttpServletRequest request) 
{ 
  String [] arrSelectedItems={};
  this.setSelectedItems(arrSelectedItems);
 }
<<>>

  String[] selectedItems = request.getParameterValues("selectedItems");
   for(int i=0;i<(selectedItems.length);i++)
 {
  System.out.println("Index value-->"+i);
  System.out.println("Logic-->"+ selectedItems[i]);
 }

For further information u can take a look at the following url.
http://article.gmane.org/gmane.comp.jakarta.struts.user/52790/match=html+multibox+
 
Cheers
Prashanth
 
 


Thamarajah Dharma <[EMAIL PROTECTED]> wrote:
Hi all.

I have a situation where i need to create checkboxes within an iterator
tag.
i tried creating it with a multibox inside the iterator tag but it throws
me this error

javax.servlet.jsp.JspException: You must specify the value attribute or
nested tag content
at
org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:245)

how to overcome this problem...

thanx in
r
sasi 

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

How to Disable Checkbox in Struts

2003-06-26 Thread Prashanth.S
Iam displaying checkbox option in 1st jsp and leaving user to select the checkbox.
In the 2nd jsp i need to display the option selected by the user but make it 
noneditable...
so kindly help me...
Thanks
Prashanth



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Problem with html:multibox

2003-06-26 Thread Prashanth.S
Hi Partha,
I think u have completely messed up iterate and multibox...
So instead of myself suggesting u changes to be done u better take a look at the below 
url
http://article.gmane.org/gmane.comp.jakarta.struts.user/52790/match=html+multibox+
 
Cheers
Prashanth

O_Parthasarathy Kesavaraj <[EMAIL PROTECTED]> wrote:
I am having a value object inside an arraylist.The array list i have
declared as a property in my form bean.The value object contains id and
name.The arraylist gets populated from my action class and i'm displaying
like this.







When i select a checkbox to remove and submit my server shows an error like
this,

javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1099)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:798)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:536)


root cause 
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1789)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1684)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:17
13)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:798)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpSe