[OT} web service question

2004-03-22 Thread Ashish Kulkarni
Hi,
i am trying to develop a webserivce using RPC and/or
SOAP all the samples i have seen dont deal atall with
the database or with servlet context,
I want to get data from a servlet context which i load
when loading the application
can anyone provide some code example or site where i
can have this kind or example

Ashish

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: What is the best way to implement common functionality between all actions?

2004-03-03 Thread Ashish Kulkarni
Hi
I had this problem and i have done the following
I defined a interface called 
CommonFuntionInterface which defines all the common
methods for the funtions, and then a class
CommonFuntion which implements this interface and do
all the common logic in here
then in your Action and DispatchAction Subclasses
create instance of CommonFuntion class and call the
methods in here, 
I guess this is called facade pattern ( i am not very
good in patterns :-)
I will give some code below as example

public interface CommonFuntionInterface
{
  public String doSomething();
}

public class CommonFuntion implements
CommonFuntionInterface
{
public String doSomething()
{
// to do logic
}
}

public MyAction extend Action
{
   private CommonFuntion common;
   public ActionForward execute(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception
{
common = new CommonFunction();
   return performTask(mapping, form, request,
response);
}
  public String doSomething()
  {
return common.doSomething();
  }


}

do this same for DispatchAction

Hope this helps

Ashish
--- Glanville, Jay
[EMAIL PROTECTED] wrote:
 Hello all.
 
 My question might not be viewed as a Struts
 question, but more along the
 lines of an architecture question.  But, on the
 other had, it is struts
 architecture, so I'm ok! ;-)
 
 This is the situation:  some of our designers are
 creating subclasses of
 Action, while others are creating subclasses of
 DispatchAction.  Now,
 there's some common functionality that needs to be
 executed by all
 subclasses of both Action and DispatchAction.  The
 way that we've done
 it for Actions is by implementing execute in a base
 class and in it
 calling an abstract method that subclasses need to
 implement, like this:
 
public class BaseAction extends Action {
 
   protected abstract ActionMapping
  internalExecute( ActionMapping mapping, 
   ActionForm form, 
   HttpServletRequest
 request, 
   HttpServletResponse
 response );
 
   public ActionMapping
  execute( ActionMapping mapping, 
   ActionForm form, 
   HttpServletRequest
 request, 
   HttpServletResponse
 response ) {
  // ... Perform common work here
  return internalExecute( mapping, form,
 request, response );
   }
 
 And, of course, for our base subclass of
 DispatchAction, we do something
 similar:
 
public class BaseDispatchAction extends
 DispatchAction {
 
   public ActionMapping
  execute( ActionMapping mapping, 
   ActionForm form, 
   HttpServletRequest
 request, 
   HttpServletResponse
 response ) {
  // ... Perform common  pre-execution work
 here
  return super.execute( mapping, form,
 request, response );
   }
 
 Plus, there are utility methods common to both
 BaseAction and
 BaseDispatchAction.
 
 Now, any half-decent coder's response to the phrase
 'common
 functionality' is to think, is there a way that I
 can centralize this
 work, to reduce the repeated code?
 
 So, my question is this: what is the best way to add
 common
 functionality to subclasses of both Action and
 DispatchAction?
 
 As DispatchAction is a subclass of Action, the
 initial thought is to add
 it to Action, but that's un-necessarily messy.
 
 Another way that I've thought of is to create a
 'common action
 functions' class, where I place implementations of
 all the functionality
 I might use, and then in my BaseAction and
 BaseDispatchAction,
 proxy/redirect to that CommonActionFunctions class. 
 However, I try my
 best to write the best code possible, and this isn't
 as clean as I'd
 like it to be (I'm still duplicating method
 signatures, etc).
 
 What other ways have people found to deal with this
 situation?
 
 JDG
 
 
 
 
 --
 Jay Glanville
 Web Developer
 [EMAIL PROTECTED]
 (613) 725-2030 x393
 http://www.naturalconvergence.com
 

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


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



Re: [OT] Gays and computing... HAS VIRUS BE CARFULL

2004-02-28 Thread Ashish Kulkarni
HI
this one has vrius, i just got a virus alert when i
went to this site...carefull
--- Domingo A. Rodriguez S.
[EMAIL PROTECTED] wrote:
 
 Definitively funny, but Off-topic :)
 
  --- Rick Reumann [EMAIL PROTECTED] escribió: 
 On Friday 27 February
 2004 4:39 pm, Melvin Kurzchen wrote:
   
   Article:
 http://www.albinoblacksheep.com/flash/you.html
  
  
  Good article but does it have to use all that nude
 pictures to make his
  point?
  
  -- 
  Rick
  
  
 

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

_
 Do You Yahoo!?
 Información de Estados Unidos y América Latina, en
 Yahoo! Noticias.
 Visítanos en http://noticias.espanol.yahoo.com
 

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


=
A$HI$H

__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

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



[OT]jsp and version control

2004-02-25 Thread Ashish Kulkarni
Hi
We are developing a web project which incudes jsp
,struts etc. we are using VSS for source control, 
we are sending jar files to the client and each jar
file we have a manifest file which has the version
number,build number and date, so if there is any error
we just ask the version, build and date to track down
the source and fix it,
But since we cannot bundle all the jsp in jar file,
how do we know what source the client have, do we have
to include build number etc in each and every jsp we
send, or include a jsp with build number,
any ideas, how do people keep track of what jsp code
is running on client machine.
we have different clients running different versions
and build

Ashish

Ashish

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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



[OT] visual XSLT or XSL-FO builder

2004-02-18 Thread Ashish Kulkarni
Hi
Has any one know of a tool which will help building
XSLT or XSL-FO visually, like VB where i can select
where i want to put the input field on page, and what
database field will be used to populate it

Ashish

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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



stop user from clicking the submit button twice

2004-01-29 Thread Ashish Kulkarni
Hi
I have a process which takes about 30 seconds, i want
to show some kind of image or disable the submit
button untill the process is complete and tell user
that the process is running
How can i do it, i m using struts1.1 
any code example or article will greatly help

Ashish
(Some thing like the webspher5.0 web admin console,
where it brings up a image when the user clicks button)

=
A$HI$H

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



reload properties file in struts with out restarting the application and more

2004-01-07 Thread Ashish Kulkarni
Hi
I have a couple of question
1. If some one has written some code to relad the
properties file without reloading the application
after some text is added or modified, The reason being
i have about 10 startup servlets and takes a lot of
time to reload for a simple change.
2. Can i change the log level on the fly, same reason
dont want to restart the application, I was thinking
about calling the servlet with the log level, and
setting  it in doGet or doPost method.
3. Can i have security by pages, for example i can
define some user ids which can access some pages in
application, like admin (without programming but using
some functions provided by websphere or tomcat)

Ashish

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



[OT] reading pdf file from mapped network drive in servlet

2004-01-07 Thread Ashish Kulkarni
Hi
I am running tomcat on my windows 2000 machine 
and i have mapped a network drive to it
I am trying to read a pdf file from the network drive,
and it is giving me access denied error
my servlet code is
File file = new File(F:\\chart\\test.pdf);
System.out.println(file.exists()); (output is false)

How do i read this file, this code works fine in
standalone program, but fails in servlet

Ashish

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



[OT] eclipse and jsp editing

2003-12-30 Thread Ashish Kulkarni
Hi

is there any good plugin for editing jsp and setting
up a web project, i have tried lomboz but find it very
complicated to use
I find setting web prject in jsp much easy
any comments
(or any free jsp editor will also work)
Ashish

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



[OT] reload servlet without restarting the application

2003-12-16 Thread Ashish Kulkarni
Hi

Is it possible to reload the servlet without having to
restart the application,
For example i have defined settings for log level in
xml file, and i set them to show only error messages,
suppose if i have to change it to debug, i have to
restart my application, since the applications reads
this log file only once when starting the application.
I would prefer not to read the xml file after 10 sec
or some thing like that to avoid unncessary operation,
but rather force to read it
Any suggestions 

Ashish

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: just learning it

2003-12-15 Thread Ashish Kulkarni
Hi

this is good place to start
http://jakarta.apache.org/struts/userGuide/index.html

Ashish
--- Travis D. Falls [EMAIL PROTECTED]
wrote:
 I have very little knowledge of struts.  I want to
 learn it.  I have got
 the book by o'reilly programming Jakarta struts.  I
 don't really like
 it.  Does anyone know of a good tutorial that will
 go over an
 application.  Start with nothing end up with a
 pretty good sample?
 
 t 
 
 
 

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


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: How to set action path from Action.

2003-12-09 Thread Ashish Kulkarni
Hi
have you tried using DispatchAction, may be it can
help you, i use to forward action to different jsp
depending on what button on clicked by the user.

Ashish
--- Antony Paul [EMAIL PROTECTED] wrote:
 Hi,
 After user login based on the dept of user user
 has to forwarded to
 pages in different directories. How to do it ?.
 There are 5 departments.
 This directory and page to be used in other parts to
 identify the home page
 and directory of user so at other times user can be
 redirected. Putting a
 ForwardAction in struts-config.xml which accepts and
 checks a single
 parameter(Home) is possible ? Or set the path of a
 global forward at
 runtime. I am new to Struts. Other options are
 1. Write another action class which takes this
 parameter and based on the
 user dept got from session invoke corresponding
 ForwardAction. This action
 is reached through a global forward.
 2. Use modules. I dont know what is it. Is it
 possible to have same named
 ForwardAction in different modules ?.
 
 rgds
 Antony Paul.
 

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


=
A$HI$H

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: How to detect that session has expired ?

2003-12-07 Thread Ashish Kulkarni
HI
if u are using servelt 2.3 , then u can use servelt
filter, in this filter u can have logic to check
session before each request so u dont need to add any
code in jsp or action class

Ashish
--- Ed Dowgiallo [EMAIL PROTECTED] wrote:
 Inheritance is your friend.  If you need processing
 common to all your
 Action classes, extend the Struts Action class.
 
 Ed
 - Original Message -
 From: Baljinder Singh
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Sunday, December 07, 2003 5:41 AM
 Subject: RE: How to detect that session has expired
 ?
 
 
  Thomas,
 
  You mean to say that I should put this logic in
 ActionClass. But then I
  would need to put it in all my Action Classes.
 Can't I do something
 similar
  in JSP because then I would do it in a common JSP
 which is included in all
  other JSPs of mine. Or is there a common solution
 which can take care all
  Action Classes.
 
  Thanks,
  BS
 
  -Original Message-
  From: Thomas Cornet [mailto:[EMAIL PROTECTED]
  Sent: Sunday, December 07, 2003 2:17 PM
  To: Struts Users Mailing List
  Subject: Re: How to detect that session has
 expired ?
 
 
 
 
 When a session restarts, its context is empty,
 so all objects stored in
  the session context have disappeared. To detect if
 a session has
 restarted,
  you need first to store an object in the session
 context, then each time
  you need to know if the session has restarted, you
 test its presence in
 the
  context. If it is not there anymore, then the
 session has restarted.
 
  At 08:09 07/12/2003, you wrote:
  Hi All,
  
  How can I detect that session has expired and so
 throw the user out of
  system after showing him a message that Your
 session has expired. Please
  login again.
  
  Thanks,
  BS
  
  
 

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

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


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



RE: [OT] generate HTML file from XML and XSLT

2003-11-14 Thread Ashish Kulkarni
Hi
thanx for the responses i was able to make it work
with  all the help from these mails

Ashish
--- [EMAIL PROTECTED] wrote:
 Why will u need to create a temp html file if all
 that u want is to show it in browser?
 Just write it to the outputstream of
 response...Unless offcourse u need it for some other
 purpose as well.
 
 -Original Message-
 From: Jimmy Emmanual [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 14, 2003 10:58 AM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] generate HTML file from XML and
 XSLT
 
 
 Try something similar to this:
 
 import javax.xml.transform.*;
 
 StringBuffer outHTML = new StringBuffer();
 StringWriter ouput = new StringWriter();
 
 java.net.URL xslUrl =
 this.getClass().getResource(test.xsl);
 java.net.URL xmlUrl =
 this.getClass().getResource(test.xml);
 
 String xslFile = xslUrl.toString();
 String xmlFile = xmlUrl.toString();
 
 try {
 TransformerFactory tfactory =
 TransformerFactory.newInstance();
 
 //get the XML Input file
 Source xmlSource = new StreamSource(xslFile);
 
 //get the stylesheet
 Source xslSource = new StreamSource(xslFile);
 
 //generate the transformer
 Transformer transformer =
 tFactory.newTransformer(xslSource);
 
 //Perform the transformation
 transformer.transform(xmlSource, new
 StreamResult(output));
 } catch ( TransformerException te) {
 //
 }
 
 outHTML.append( output.toString() );
 

===
 
 now you have a StringBuffer of the xsl
 transformation.
 
 
 -Original Message-
 From: Paul McCulloch
 [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 14, 2003 9:42 AM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] generate HTML file from XML and
 XSLT
 
 
 Hava a look at the sample servlets etc. that come
 with the Apache Xalan-J
 package.
 
 Paul
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: 13 November 2003 19:14
 To: [EMAIL PROTECTED]
 Subject: [OT] generate HTML file from XML and XSLT
 
 
 Hi,
 I have a XML file and a XSLT file, i need to create
 a
 HTML file in a temp directory then read this file to
 get a String so can email this String or print the
 String as HTML
 is it possible to do it?? and how 
 I am using jdk1.4.1 
 Ashish
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Protect your identity with Yahoo! Mail AddressGuard
 http://antispam.yahoo.com/whatsnewfree
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 **
 Axios Email Confidentiality Footer
 Privileged/Confidential Information may be contained
 in this message. If you
 are not the addressee indicated in this message (or
 responsible for delivery
 of the message to such person), you may not copy or
 deliver this message to
 anyone. In such case, you should destroy this
 message, and notify us
 immediately. If you or your employer does not
 consent to Internet email
 messages of this kind, please advise us immediately.
 Opinions, conclusions
 and other information expressed in this message are
 not given or endorsed by
 my Company or employer unless otherwise indicated by
 an authorised
 representative independent of this message.
 WARNING:
 While Axios Systems Ltd takes steps to prevent
 computer viruses from being
 transmitted via electronic mail attachments we
 cannot guarantee that
 attachments do not contain computer virus code.  You
 are therefore strongly
 advised to undertake anti virus checks prior to
 accessing the attachment to
 this electronic mail.  Axios Systems Ltd grants no
 warranties regarding
 performance use or quality of any attachment and
 undertakes no liability for
 loss or damage howsoever caused.
 
 

-
 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!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



[OT] generate HTML file from XML and XSLT

2003-11-13 Thread Ashish Kulkarni
Hi,
I have a XML file and a XSLT file, i need to create a
HTML file in a temp directory then read this file to
get a String so can email this String or print the
String as HTML
is it possible to do it?? and how 
I am using jdk1.4.1 
Ashish


=
A$HI$H

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Re: Paging

2003-11-03 Thread Ashish Kulkarni
Hi

Visit this URL, it works great with struts or any jsp
framework
http://kulkarni_ash.tripod.com/howto/jsptaglib-howto.html

Ashish
--- Mauricio T. Ferraz
[EMAIL PROTECTED] wrote:
 Hi People!!!
 
 Anybody knows, how can I do paging with Struts???
 (Previous 1 - 2 - 3 ... Next) And changing the
 color of the rows on the table each iteration?
 Is there any Tag Lib who do this???
 
 Tanks!!!
 
 []´s
 Mauricio
 
 
 
 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



[OT] create XML based on DTD from resultset on fly

2003-11-03 Thread Ashish Kulkarni
Hi,
i have designed a DTD for my XML file, now i want to
genereate a XML file based on this DTD on the fly,
I will run a SQL querry, which will return me a result
set, i want to create XML file from this resultset, 
and i dont want to write it to a file, i want to just
create a XML file so can be used for further
processing,
I have to create a PDF file from this XML and i have
already desinged a XSLT for converting this XML to
PDF.
So my flow would be

DTDXSLT
 |   |
 |   | 
 v   v  
resultset --create XML on fly --- xslt process
--pdf

Any suggestions or code
Ashish

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



2 message resource files andmessages in Action class problem

2003-10-31 Thread Ashish Kulkarni
Hi,
I have 2 message resource file defines in my
struts-config file, it works perfect in jsp where i
can use bundle keyword on bean:message .. tag, but
it does not work in my action class where i want to
set messages from message resource
So 
bean:message key=approval.001  bundle=approvals/
works fine in jsp while


errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(approval.001));
saveErrors(request, errors);
does not work in Action class and i get error bean not
found in scope on jsp when i try to display the
message
Ashish

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



Re: 2 message resource files andmessages in Action class problem

2003-10-31 Thread Ashish Kulkarni
Hi
yes if i do that it works fine, but my problem is the
following
some error messages come from maps.properties file,
which is default and some come from
approval.properties file, so is there a way to make a
single tag work for both

Ashish
--- atta-ur rehman [EMAIL PROTECTED] wrote:
 hi,
 
 what do you mean by when i try to dispay it? are
 you using html:errors
 tag or some other mechanism?
 
 in your JSP page have you tried:
 
 html:errors bundle=approval /
 
 ATTA
 - Original Message - 
 From: Ashish Kulkarni [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 31, 2003 10:32 AM
 Subject: 2 message resource files andmessages in
 Action class problem
 
 
  Hi,
  I have 2 message resource file defines in my
  struts-config file, it works perfect in jsp where
 i
  can use bundle keyword on bean:message .. tag,
 but
  it does not work in my action class where i want
 to
  set messages from message resource
  So
  bean:message key=approval.001 
 bundle=approvals/
  works fine in jsp while
 
 
  errors.add(ActionErrors.GLOBAL_ERROR,
 new
 ActionError(approval.001));
  saveErrors(request, errors);
  does not work in Action class and i get error bean
 not
  found in scope on jsp when i try to display the
  message
  Ashish
 
  __
  Do you Yahoo!?
  Exclusive Video Premiere - Britney Spears
  http://launch.yahoo.com/promos/britneyspears/
 
 

-
  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!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



how to use 2 resource files in one struts-config.xml?

2003-10-29 Thread Ashish Kulkarni
Hi
I have 2 message resource files,
com.myapp.one.properties and com.myapp.two.properties
I haev some messages in one and some messages in two,
and want to display these in jsp and in action class
etc
how do i define them in my struts-config.xml and use
them with bean:message... tag.
This is what i am trying but is not working
message-resources
key=org.apache.struts.action.MESSAGE
parameter=com.myapp.one /
message-resources  key=message1
parameter=com.myapp.two /

and in my jsp i have
bean:message key=errors.header/ , where
errors.header is defines in one.properties
and 
bean:message key=approval.001/
which is defines in two.properties file
i also tried
bean:message key=message1.approval.001/
but does not work
Ashish

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



Re: how to use 2 resource files in one struts-config.xml?

2003-10-29 Thread Ashish Kulkarni
Hi,
some how bean:message key=approval.001
bundle=message1/
does not work i still get the missing resource error,
how do i define the default bundle??
i am not using struts module
Ashish
--- Manish Singla [EMAIL PROTECTED] wrote:
 You may try following (from your example)
 bean:message key=approval.001 bundle=message1/
 where bundle attribute maps to key attribute in
 message-resources ...
 tag
 
 You may have one default bundle.
 Thus for default bundle ...no need to give key in
 message-resouces
 ...tag..
 for that bundle corresponding bean:message  will
 be without bundle
 attributes follows
 bean:message key=approval.001
 
 I assume you are not using struts modules...and is
 not trying to access
 message resources bundle of different bundle..
 
 
 Ashish Kulkarni wrote:
 
  Hi
  I have 2 message resource files,
  com.myapp.one.properties and
 com.myapp.two.properties
  I haev some messages in one and some messages in
 two,
  and want to display these in jsp and in action
 class
  etc
  how do i define them in my struts-config.xml and
 use
  them with bean:message... tag.
  This is what i am trying but is not working
  message-resources
  key=org.apache.struts.action.MESSAGE
  parameter=com.myapp.one /
  message-resources  key=message1
  parameter=com.myapp.two /
 
  and in my jsp i have
  bean:message key=errors.header/ , where
  errors.header is defines in one.properties
  and
  bean:message key=approval.001/
  which is defines in two.properties file
  i also tried
  bean:message key=message1.approval.001/
  but does not work
  Ashish
 
  __
  Do you Yahoo!?
  Exclusive Video Premiere - Britney Spears
  http://launch.yahoo.com/promos/britneyspears/
 
 

-
  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!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



Re: how to use 2 resource files in one struts-config.xml? solved it thanx

2003-10-29 Thread Ashish Kulkarni
Hi
Thanx for all the replies
I was able to solve the problem by defining 
message-resources key=approvals
parameter=com.myapp.one /
message-resources
key=org.apache.struts.action.MESSAGE
parameter=com.myapp.two /
instead of 

message-resources
key=org.apache.struts.action.MESSAGE
parameter=com.myapp.two /
message-resources key=approvals
parameter=com.myapp.one /

just by defining the two with key approvals before
one, solved the problem
my message tag in jsp still is same
bean:message key=approval.002  bundle=approvals/

for messages from two.property file

So it was just the sequence in which to define it in
struts-config.xml file
Ashish

--- Ben Anderson [EMAIL PROTECTED]
wrote:
 in your struts-config.xml:
 !-- this is now your default resource bundle
 --
 message-resources parameter=com.myapp.one/
 message-resources parameter=com.myapp.two
 key=MESSAGE_TWO/
 in your jsps:
 bean:message key=errors.header/
 bean:message key=approval.001
 bundle=MESSAGE_TWO/
 
 
 
 From: Ashish Kulkarni [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Subject: Re: how to use 2 resource files in one
 struts-config.xml?
 Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST)
 
 Hi,
 some how bean:message key=approval.001
 bundle=message1/
 does not work i still get the missing resource
 error,
 how do i define the default bundle??
 i am not using struts module
 Ashish
 --- Manish Singla [EMAIL PROTECTED] wrote:
   You may try following (from your example)
   bean:message key=approval.001
 bundle=message1/
   where bundle attribute maps to key attribute in
   message-resources ...
   tag
  
   You may have one default bundle.
   Thus for default bundle ...no need to give key
 in
   message-resouces
   ...tag..
   for that bundle corresponding bean:message 
 will
   be without bundle
   attributes follows
   bean:message key=approval.001
  
   I assume you are not using struts modules...and
 is
   not trying to access
   message resources bundle of different bundle..
  
  
   Ashish Kulkarni wrote:
  
Hi
I have 2 message resource files,
com.myapp.one.properties and
   com.myapp.two.properties
I haev some messages in one and some messages
 in
   two,
and want to display these in jsp and in action
   class
etc
how do i define them in my struts-config.xml
 and
   use
them with bean:message... tag.
This is what i am trying but is not working
message-resources
key=org.apache.struts.action.MESSAGE
parameter=com.myapp.one /
message-resources  key=message1
parameter=com.myapp.two /
   
and in my jsp i have
bean:message key=errors.header/ , where
errors.header is defines in one.properties
and
bean:message key=approval.001/
which is defines in two.properties file
i also tried
bean:message key=message1.approval.001/
but does not work
Ashish
   
__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
   
   
  

-
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!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 

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

_
 Fretting that your Hotmail account may expire
 because you forgot to sign in 
 enough? Get Hotmail Extra Storage today!   
 http://join.msn.com/?PAGE=features/es
 
 

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


=
A$HI$H

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



Re: how to use 2 resource files in one struts-config.xml? solved it thanx

2003-10-29 Thread Ashish Kulkarni
Hi
i have no clue why it was not working before,
but now it is working and i ma happy :-)

Ashish
--- Manish Singla [EMAIL PROTECTED] wrote:
 hmm...
 
 You may not have to define message-resources with
 key=org.apache.struts.action.MESSAGE.
 
 Default bundle (with no key attribute in
 message-resources) is stored by 
 struts using key=org.apache.struts.action.MESSAGE.
 
 I am not sure how come switching location of
 message-resources solve 
 your problem ?? !!!
 
 
 
 
 
 Ashish Kulkarni wrote:
  Hi
  Thanx for all the replies
  I was able to solve the problem by defining 
  message-resources key=approvals
  parameter=com.myapp.one /
  message-resources
  key=org.apache.struts.action.MESSAGE
  parameter=com.myapp.two /
  instead of 
  
  message-resources
  key=org.apache.struts.action.MESSAGE
  parameter=com.myapp.two /
  message-resources key=approvals
  parameter=com.myapp.one /
  
  just by defining the two with key approvals before
  one, solved the problem
  my message tag in jsp still is same
  bean:message key=approval.002 
 bundle=approvals/
  
  for messages from two.property file
  
  So it was just the sequence in which to define it
 in
  struts-config.xml file
  Ashish
  
  --- Ben Anderson [EMAIL PROTECTED]
  wrote:
  
 in your struts-config.xml:
 !-- this is now your default resource bundle
 --
 message-resources parameter=com.myapp.one/
 message-resources parameter=com.myapp.two
 key=MESSAGE_TWO/
 in your jsps:
 bean:message key=errors.header/
 bean:message key=approval.001
 bundle=MESSAGE_TWO/
 
 
 
 From: Ashish Kulkarni
 [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 
 [EMAIL PROTECTED]
 
 To: Struts Users Mailing List
 
 [EMAIL PROTECTED]
 
 Subject: Re: how to use 2 resource files in one
 
 struts-config.xml?
 
 Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST)
 
 Hi,
 some how bean:message key=approval.001
 bundle=message1/
 does not work i still get the missing resource
 
 error,
 
 how do i define the default bundle??
 i am not using struts module
 Ashish
 --- Manish Singla [EMAIL PROTECTED] wrote:
 
 You may try following (from your example)
 bean:message key=approval.001
 
 bundle=message1/
 
 where bundle attribute maps to key attribute in
 message-resources ...
 tag
 
 You may have one default bundle.
 Thus for default bundle ...no need to give key
 
 in
 
 message-resouces
 ...tag..
 for that bundle corresponding bean:message 
 
 will
 
 be without bundle
 attributes follows
 bean:message key=approval.001
 
 I assume you are not using struts modules...and
 
 is
 
 not trying to access
 message resources bundle of different bundle..
 
 
 Ashish Kulkarni wrote:
 
 
 Hi
 I have 2 message resource files,
 com.myapp.one.properties and
 
 com.myapp.two.properties
 
 I haev some messages in one and some messages
 
 in
 
 two,
 
 and want to display these in jsp and in action
 
 class
 
 etc
 how do i define them in my struts-config.xml
 
 and
 
 use
 
 them with bean:message... tag.
 This is what i am trying but is not working
 message-resources
 key=org.apache.struts.action.MESSAGE
 parameter=com.myapp.one /
 message-resources  key=message1
 parameter=com.myapp.two /
 
 and in my jsp i have
 bean:message key=errors.header/ , where
 errors.header is defines in one.properties
 and
 bean:message key=approval.001/
 which is defines in two.properties file
 i also tried
 bean:message key=message1.approval.001/
 but does not work
 Ashish
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 
 
 

-
 
 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!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 
 

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

_
  
 Fretting that your Hotmail account may expire
 because you forgot to sign in 
 enough? Get Hotmail Extra Storage today!   
 http://join.msn.com/?PAGE=features/es
 
 
 
  
 

-
  
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
  
  
  
  =
  A$HI$H
  
  __
  Do you Yahoo!?
  Exclusive Video Premiere - Britney Spears
  http://launch.yahoo.com/promos/britneyspears/
  
 

-
  To unsubscribe, e-mail:
 [EMAIL

multiple resource files in one struts-config file

2003-10-28 Thread Ashish Kulkarni
Hi,
I have a problem with mulitple resource files in one
struts-config file.
My definiation in the xml file is as below
message-resources
key=org.apache.struts.action.MESSAGE
parameter=com.mypackage.maps /
message-resources
key=org.apache.struts.action.MESSAGE
parameter=com.mypackage.approval /

I have some messages in maps.properties file , but in
my jsp i get error message saying
Missing message for key errors.header

what wrong am i doing?
Ashish

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



example of jsp in WEB-INF

2003-10-28 Thread Ashish Kulkarni
Hi,
is there any example on net of keeping jsp in WEB-INF
folder, like struts-blank 
how do we access the images and gif files, and how do
we forward the request to these jsp

Ashish

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



RE: multiple resource files in one struts-config file

2003-10-28 Thread Ashish Kulkarni
Hi
what do u mean by keys
should be some thing like this
message-resources key=MESSAGE
parameter=com.mypackage.maps /
message-resources key=MESSAGE1
parameter=com.mypackage.approval /

and should both the property files have
error.header=error 
key and value pair
Ashish
--- Navjot Singh [EMAIL PROTECTED] wrote:
 first pls specify diff keys for diff resource files.
 second, pls check if you have specifiied 
 errors.header=
 line in every property file.
 
 HTH
 Navjot Singh
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 29, 2003 10:07 AM
 To: [EMAIL PROTECTED]
 Subject: multiple resource files in one
 struts-config file
 
 
 Hi,
 I have a problem with mulitple resource files in
 one
 struts-config file.
 My definiation in the xml file is as below
 message-resources
 key=org.apache.struts.action.MESSAGE
 parameter=com.mypackage.maps /
 message-resources
 key=org.apache.struts.action.MESSAGE
 parameter=com.mypackage.approval /
 
 I have some messages in maps.properties file , but
 in
 my jsp i get error message saying
 Missing message for key errors.header
 
 what wrong am i doing?
 Ashish
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 

-
 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!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



get data source in servlet

2003-08-18 Thread Ashish Kulkarni
Hi,
I have defined a data source in my struts-config file,
which is working fine as i get the connection in my
Action class, but i need to get the data source in a
Servlet, can any one provide with the code to get the
data source in servlet

Ashish

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



get data source in servlet

2003-08-15 Thread Ashish Kulkarni
Hi,

I am using struts 1.1 and have defined a data source
for connection pooling, in my Action class i get the
data source by using simple
 DataSource dataSourceA = getDataSource(request, A);
 Connection myConnection =
dataSourceA.getConnection();

But now i need to get the data source in a servlet
which does not extend Action class, but HttpServlet
can any one provide code for it

Ashish


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource

2003-08-15 Thread Ashish Kulkarni
Hi
i am using struts 1.1 and i just copied all the jar
files from struts-blank application,
but i keep getting this error
i have defined a datasource in struts-config file
what am i missing

Ashish

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: [OT] Rendering Large ResultSet - Value List Handler Design Pattern

2003-08-14 Thread Ashish Kulkarni
Hi,

u can think of using cachedrowset, it is similar to
resultset but it caches the data 
what i have done is the following, i run a SQl querry
get the resultset and then using this resultset
populat a cachedrowset and pass it to jsp (
presentation layer) and then i can use cursor to
scroll in cachedrowset
i guess u can get more info about cachedrowset n
google and if u want how to do scrolling in jsp using
cachedrowset
http://kulkarni_ash.tripod.com/howto/jsptaglib-howto.html
Ashish
--- Pat Quinn [EMAIL PROTECTED] wrote:
 
 I have a requirement to cater for a large number of
 results returned to the 
 presentation tier. I've taken a quick look into the
 Value List Handler 
 Design pattern 

(http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html).
 
 I do agree it offers some advantages but in my
 opinion it doesn't satisfy 
 its goal. From the sample code it appears that the
 SQL Resultset is 
 completely loaded and represented as a list of
 Transfer Objects. When 
 dealing with a large result this will have a
 negative impact on performance 
 as it must create a TO for each record.
 
 I could make some changes to increase performance
 i.e.
 
 Store the ResulSet as a member of the
 ValueListHandler Object and only load 
 the data from the resultset as and when i need it.
 If i store the 
 ValueListHandler in HttpSession i got to ensure i
 close all connections 
 before disposing of it, other wise i could max out
 on cursors.
 
 
 Anyone got any ideas/suggestion as to how best to
 implement such 
 functionality?
 

_
 The new MSN 8: smart spam protection and 2 months
 FREE*  
 http://join.msn.com/?page=features/junkmail
 
 

-
 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
http://sitebuilder.yahoo.com

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



RE: Urgent: Editor for JSP in Eclipse

2003-08-01 Thread Ashish Kulkarni
Hi, 
i was looking at
http://black-sun.sourceforge.net/
which is the editor for jsp???

Ashish

--- [EMAIL PROTECTED] wrote:
 Thanx a lot!!! works great for me
 
 --mohan
 
 
  I am using the blacksun plugin.  It does have a
 find start/end tag
  feature.
 
  http://black-sun.sourceforge.net/
 
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
  Sent: Thursday, July 31, 2003 4:31 PM
  To: [EMAIL PROTECTED]
  Subject: Urgent: Editor for JSP in Eclipse
 
 
  Hi All
  I am using Eclipse and i need a JSP editor/ HTML
 editor to stuff like
  matching HTML tags in my JSPs and warn if there
 are no matching tags for
  an HTML tag, i have downloaded the solar eclipse
 plug-in but it ownly
  colors various JSP/HTML elements but i am not sure
 how to find mactching
  HTML tags or JSP tags wid it
 
 
 
  Thanx
 
  --MOhan
 
 
 
 

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

***
   This electronic mail transmission contains
 confidential and/or
  privileged  information intended only for the
 person(s) named.  Any use,
  distribution,  copying or disclosure by another
 person is strictly
  prohibited.
 

***
 
 
 
 
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



[OT]http to https shift

2003-07-30 Thread Ashish Kulkarni
Hi,

i have a website running on tomcat and also on
websphere, i want to change some submit to go using
https, like the login page and some sensitive
information,
can anyone point to some resource, where i can get
info about submiting a secured response, on tomcat and
websphere

Ashish

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: [OT]http to https shift

2003-07-30 Thread Ashish Kulkarni
Hi,
i have website which works on tomcat or  websphere, it
is dependent on the client to select anyone, so if the
client is using tomcat the form will be on tomcat and
will be submited on tomcat, and same will be for
websphere

Ashish
--- Amit Kirdatt [EMAIL PROTECTED] wrote:
 So your form resides on Websphere and you want to
 post it to the tomcat
 server? Or is it vice-versa? 
 Can you please explain what exactly you are trying
 to do?  
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 9:10 AM
 To: [EMAIL PROTECTED]
 Subject: [OT]http to https shift
 
 
 Hi,
 
 i have a website running on tomcat and also on
 websphere, i want to change some submit to go using
 https, like the login page and some sensitive
 information,
 can anyone point to some resource, where i can get
 info about submiting a secured response, on tomcat
 and
 websphere
 
 Ashish
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
 http://sitebuilder.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 This e-mail, including attachments, may include
 confidential and/or
 proprietary information, and may be used only by the
 person or entity to
 which it is addressed. If the reader of this e-mail
 is not the intended
 recipient or his or her authorized agent, the reader
 is hereby notified that
 any dissemination, distribution or copying of this
 e-mail is prohibited. If
 you have received this e-mail in error, please
 notify the sender by replying
 to this message and delete this e-mail immediately.
 

-
 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
http://sitebuilder.yahoo.com

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



RE: [OT]http to https shift

2003-07-30 Thread Ashish Kulkarni
Hi,
this is what i need to do
suppose i have a jsp login.jsp and there is a form
defined in in like this
html:form action=pages/login focus=userId
/html:form
how can i make this request go using https instead of
http

Ashish
--- Amit Kirdatt [EMAIL PROTECTED] wrote:
 Well in that case if you have your site running on
 https then the form will
 automatically be submitted via https. 
 Make sure that your login page is being submitted
 via https
 (https://www.yourserver.com/login.jsp
 
 --Amit
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 9:49 AM
 To: Struts Users Mailing List
 Subject: RE: [OT]http to https shift
 
 
 Hi,
 i have website which works on tomcat or  websphere,
 it
 is dependent on the client to select anyone, so if
 the
 client is using tomcat the form will be on tomcat
 and
 will be submited on tomcat, and same will be for
 websphere
 
 Ashish
 --- Amit Kirdatt [EMAIL PROTECTED] wrote:
  So your form resides on Websphere and you want to
  post it to the tomcat
  server? Or is it vice-versa? 
  Can you please explain what exactly you are trying
  to do?  
  
  -Original Message-
  From: Ashish Kulkarni
  [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 9:10 AM
  To: [EMAIL PROTECTED]
  Subject: [OT]http to https shift
  
  
  Hi,
  
  i have a website running on tomcat and also on
  websphere, i want to change some submit to go
 using
  https, like the login page and some sensitive
  information,
  can anyone point to some resource, where i can get
  info about submiting a secured response, on tomcat
  and
  websphere
  
  Ashish
  
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site
  design software
  http://sitebuilder.yahoo.com
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  This e-mail, including attachments, may include
  confidential and/or
  proprietary information, and may be used only by
 the
  person or entity to
  which it is addressed. If the reader of this
 e-mail
  is not the intended
  recipient or his or her authorized agent, the
 reader
  is hereby notified that
  any dissemination, distribution or copying of this
  e-mail is prohibited. If
  you have received this e-mail in error, please
  notify the sender by replying
  to this message and delete this e-mail
 immediately.
  
 

-
  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
 http://sitebuilder.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 This e-mail, including attachments, may include
 confidential and/or
 proprietary information, and may be used only by the
 person or entity to
 which it is addressed. If the reader of this e-mail
 is not the intended
 recipient or his or her authorized agent, the reader
 is hereby notified that
 any dissemination, distribution or copying of this
 e-mail is prohibited. If
 you have received this e-mail in error, please
 notify the sender by replying
 to this message and delete this e-mail immediately.
 

-
 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
http://sitebuilder.yahoo.com

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



RE: [OT]http to https shift

2003-07-30 Thread Ashish Kulkarni
Hi
 I have login.jsp called from http, so need to switch
to https while submiting the request
Ashish
--- Amit Kirdatt [EMAIL PROTECTED] wrote:
 It works automatically! 
 You don't have to mess with anything if you make
 sure that the user is
 accessing the login.jsp page via https
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 10:24 AM
 To: Struts Users Mailing List
 Subject: RE: [OT]http to https shift
 
 
 Hi,
 this is what i need to do
 suppose i have a jsp login.jsp and there is a form
 defined in in like this
 html:form action=pages/login focus=userId
 /html:form
 how can i make this request go using https instead
 of
 http
 
 Ashish
 --- Amit Kirdatt [EMAIL PROTECTED] wrote:
  Well in that case if you have your site running on
  https then the form will
  automatically be submitted via https. 
  Make sure that your login page is being submitted
  via https
  (https://www.yourserver.com/login.jsp
  
  --Amit
  
  -Original Message-
  From: Ashish Kulkarni
  [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 9:49 AM
  To: Struts Users Mailing List
  Subject: RE: [OT]http to https shift
  
  
  Hi,
  i have website which works on tomcat or 
 websphere,
  it
  is dependent on the client to select anyone, so if
  the
  client is using tomcat the form will be on tomcat
  and
  will be submited on tomcat, and same will be for
  websphere
  
  Ashish
  --- Amit Kirdatt [EMAIL PROTECTED] wrote:
   So your form resides on Websphere and you want
 to
   post it to the tomcat
   server? Or is it vice-versa? 
   Can you please explain what exactly you are
 trying
   to do?  
   
   -Original Message-
   From: Ashish Kulkarni
   [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, July 30, 2003 9:10 AM
   To: [EMAIL PROTECTED]
   Subject: [OT]http to https shift
   
   
   Hi,
   
   i have a website running on tomcat and also on
   websphere, i want to change some submit to go
  using
   https, like the login page and some sensitive
   information,
   can anyone point to some resource, where i can
 get
   info about submiting a secured response, on
 tomcat
   and
   websphere
   
   Ashish
   
   __
   Do you Yahoo!?
   Yahoo! SiteBuilder - Free, easy-to-use web site
   design software
   http://sitebuilder.yahoo.com
   
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
   This e-mail, including attachments, may include
   confidential and/or
   proprietary information, and may be used only by
  the
   person or entity to
   which it is addressed. If the reader of this
  e-mail
   is not the intended
   recipient or his or her authorized agent, the
  reader
   is hereby notified that
   any dissemination, distribution or copying of
 this
   e-mail is prohibited. If
   you have received this e-mail in error, please
   notify the sender by replying
   to this message and delete this e-mail
  immediately.
   
  
 

-
   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
  http://sitebuilder.yahoo.com
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  This e-mail, including attachments, may include
  confidential and/or
  proprietary information, and may be used only by
 the
  person or entity to
  which it is addressed. If the reader of this
 e-mail
  is not the intended
  recipient or his or her authorized agent, the
 reader
  is hereby notified that
  any dissemination, distribution or copying of this
  e-mail is prohibited. If
  you have received this e-mail in error, please
  notify the sender by replying
  to this message and delete this e-mail
 immediately.
  
 

-
  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
 http://sitebuilder.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 This e-mail, including attachments, may include
 confidential and/or
 proprietary information, and may be used only by the
 person or entity to
 which it is addressed. If the reader of this e-mail
 is not the intended
 recipient or his or her authorized agent, the reader
 is hereby notified that
 any dissemination, distribution

RE: [OT]http to https shift

2003-07-30 Thread Ashish Kulkarni
Hi Thanx
Ashish
--- Mounagurusamy, Jayakumar (HAL)
[EMAIL PROTECTED] wrote:
 
 You can get full details of how to switch back and
 forth between https and
 http at following link, as well at the other
 following link you can down
 load the distribution. Hope this helps
 
 http://jakarta.apache.org/struts/faqs/ssl.html
 

http://sourceforge.net/project/showfiles.php?group_id=59967
 
 Jay
 
 
 -Original Message-
 From: Amit Kirdatt [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 8:32 AM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT]http to https shift
 
 
 It works automatically! 
 You don't have to mess with anything if you make
 sure that the user is
 accessing the login.jsp page via https
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 10:24 AM
 To: Struts Users Mailing List
 Subject: RE: [OT]http to https shift
 
 
 Hi,
 this is what i need to do
 suppose i have a jsp login.jsp and there is a form
 defined in in like this
 html:form action=pages/login focus=userId
 /html:form
 how can i make this request go using https instead
 of
 http
 
 Ashish
 --- Amit Kirdatt [EMAIL PROTECTED] wrote:
  Well in that case if you have your site running on
  https then the form will
  automatically be submitted via https. 
  Make sure that your login page is being submitted
  via https
  (https://www.yourserver.com/login.jsp
  
  --Amit
  
  -Original Message-
  From: Ashish Kulkarni
  [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 9:49 AM
  To: Struts Users Mailing List
  Subject: RE: [OT]http to https shift
  
  
  Hi,
  i have website which works on tomcat or 
 websphere,
  it
  is dependent on the client to select anyone, so if
  the
  client is using tomcat the form will be on tomcat
  and
  will be submited on tomcat, and same will be for
  websphere
  
  Ashish
  --- Amit Kirdatt [EMAIL PROTECTED] wrote:
   So your form resides on Websphere and you want
 to
   post it to the tomcat
   server? Or is it vice-versa? 
   Can you please explain what exactly you are
 trying
   to do?  
   
   -Original Message-
   From: Ashish Kulkarni
   [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, July 30, 2003 9:10 AM
   To: [EMAIL PROTECTED]
   Subject: [OT]http to https shift
   
   
   Hi,
   
   i have a website running on tomcat and also on
   websphere, i want to change some submit to go
  using
   https, like the login page and some sensitive
   information,
   can anyone point to some resource, where i can
 get
   info about submiting a secured response, on
 tomcat
   and
   websphere
   
   Ashish
   
   __
   Do you Yahoo!?
   Yahoo! SiteBuilder - Free, easy-to-use web site
   design software
   http://sitebuilder.yahoo.com
   
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
   This e-mail, including attachments, may include
   confidential and/or
   proprietary information, and may be used only by
  the
   person or entity to
   which it is addressed. If the reader of this
  e-mail
   is not the intended
   recipient or his or her authorized agent, the
  reader
   is hereby notified that
   any dissemination, distribution or copying of
 this
   e-mail is prohibited. If
   you have received this e-mail in error, please
   notify the sender by replying
   to this message and delete this e-mail
  immediately.
   
  
 

-
   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
  http://sitebuilder.yahoo.com
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  This e-mail, including attachments, may include
  confidential and/or
  proprietary information, and may be used only by
 the
  person or entity to
  which it is addressed. If the reader of this
 e-mail
  is not the intended
  recipient or his or her authorized agent, the
 reader
  is hereby notified that
  any dissemination, distribution or copying of this
  e-mail is prohibited. If
  you have received this e-mail in error, please
  notify the sender by replying
  to this message and delete this e-mail
 immediately.
  
 

-
  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
 http://sitebuilder.yahoo.com

Re: html:select and data refresh

2003-07-30 Thread Ashish Kulkarni
Hi,
i guess u can try onchange event on select, to find
out when the user selectes some thing and clear the
result table displayed below
for clearing the table u can use java script or will
have to reload the page

Ashish
--- Rick Col [EMAIL PROTECTED] wrote:
 Hi, guys:
 
 I have a list for user to select, when user select
 one
 item from the list, and hit search button, a results
 table will be displayed at the bottom half of the
 page. Now, if user selects another item from the
 list,
 I want to refresh the table (or page?) and make the
 results table disappear before user hit search
 button
 again. I have no idea to do this. Can anyone give
 some
 thoughts on this?
 
 regards,
 
 rick
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

-
 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
http://sitebuilder.yahoo.com

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



Re: html:select and data refresh

2003-07-30 Thread Ashish Kulkarni
Here is the thing u can try,
onchange event check if the result table is displayed,
if yes clear it first, and then load the new table

Ashish
--- Rick Col [EMAIL PROTECTED] wrote:
 Thanks,
 
 Sorry for being naive on this. I am new to both
 javascript and struts. I am already using onchange
 to
 load data. Can I use another attribute, such as
 onblur, or onclick to do the job? And how do I
 reload
 the page to the previous page (that is: with no
 table
 display)?
 
 regards
 
 
 --- Ashish Kulkarni [EMAIL PROTECTED]
 wrote:
  Hi,
  i guess u can try onchange event on select, to
 find
  out when the user selectes some thing and clear
 the
  result table displayed below
  for clearing the table u can use java script or
 will
  have to reload the page
  
  Ashish
  --- Rick Col [EMAIL PROTECTED] wrote:
   Hi, guys:
   
   I have a list for user to select, when user
 select
   one
   item from the list, and hit search button, a
  results
   table will be displayed at the bottom half of
 the
   page. Now, if user selects another item from the
   list,
   I want to refresh the table (or page?) and make
  the
   results table disappear before user hit search
   button
   again. I have no idea to do this. Can anyone
 give
   some
   thoughts on this?
   
   regards,
   
   rick
   
   __
   Do you Yahoo!?
   SBC Yahoo! DSL - Now only $29.95 per month!
   http://sbc.yahoo.com
   
  
 

-
   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
  http://sitebuilder.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!
 http://sbc.yahoo.com
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



need suggestion on logic

2003-07-28 Thread Ashish Kulkarni
 Hi,
 I am building a web application using struts1.1, and
 this is my requirement,
 There is a jsp where in user will enter data in text
 field, and then press enter, this will submit to a
 Action class, this action class must decide wether a
 relogin page has to be displayed or not, and if yes
 then display a relogin page, the user will enter the
 password, if the password is correct, perform the
 task  of entering data in database, if the password
is
 wrong  or user presses cancel, then take him back to 
   the jsp from where the user came, and populate all
the data which was entered in jsp,
 If there is no need for relogin screen, enter the
 data to  database.
 the puzzle here is how do i write that common Action
 class which will handle to display the login page,
 and
 other Action class which will validate the password,
 and forward the request to other class 
 So i need to remmember where the request came from
 and
 where it has to go??
 need help on this
 
 Ashish
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



logic to rememeber where the request came and where to submit

2003-07-25 Thread Ashish Kulkarni
Hi,
I am building a web application using struts1.1, and
this is my requirement,
There is a jsp where in user will enter data in text
field, and then press enter, this will submit to a
Action class, this action class must decide wether a
relogin page has to be displayed or not, and if yes
then display a relogin page, the user will enter the
password, if the password is correct, perform the task
of entering data in database, if the password is wrong
or user presses cancel, then take him back to the jsp
from where the user came, and populate all the data
which was entered in jsp,
If there is no need for relogin screen, enter the data
to  database.
the puzzle here is how do i write that common Action
class which will handle to display the login page, and
other Action class which will validate the password,
and forward the request to other class 
So i need to remmember where the request came from and
where it has to go??
need help on this

Ashish

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



dynamic forward to different pages from ActionClass

2003-07-23 Thread Ashish Kulkarni
Hi,
I am working on an application and have a following
requirement,
I have a servlet filter which checks if the user is
logged in or not for each request, if the user is not
logged on, then this servlet stores the request in
session, (i.e the page which send the request and the
request parameters ) and then forwards the request to
signon page, 
When the user signon using user id password, i call
LoginAction.do, now in this action class , i want to
forward the request to the page from where it came,( i
have this info in session)
how can i do it, this must be dynamic

Ashish

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: dynamic forward to different pages from ActionClass

2003-07-23 Thread Ashish Kulkarni
Hi ,

Do u have a example code of doing this, it will be a
great start for me

Regards
Ashish
--- Wendy Smoak [EMAIL PROTECTED] wrote:
  i want to forward the request to the page from
 where it came,( i have this
  info in session) how can i do it, this must be
 dynamic
 
 I recently discovered that you can construct your
 own ActionForward object,
 you don't have to rely on mapping.findForward() to
 return one.  If you've
 got the path you need in the session, use it with
 one of the ActionForm
 constructors and return that from your Action's
 execute method.
 
 I'm not sure this is the best way to do it, but it
 does work...
 
 -- 
 Wendy Smoak
 Applications Systems Analyst, Sr.
 Arizona State University, PA, IRM 
 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



[OT] auto convert resource property files to different language

2003-07-15 Thread Ashish Kulkarni
Hi,

I have a properties file which is in english, now  i
have to create properties files for different
langauage like russian, spanish, french etc. now i
dont know any of these languages is there any
automatic conversion tool which will translate the
properties file to different languages.
If it is a open source will be nice :-)


Ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: [OT] auto convert resource property files to different langua ge

2003-07-15 Thread Ashish Kulkarni
i totally know the difficulty of language translation
so was just curious to find out what the other
developers do about language translation, i cannot
learn the other language or dont want to spent time
translating property files to other language, if some
one really needs it i will give him the english file
and ask him to translate to his language, 

--- Kamholz, Keith   (corp-staff) USX
[EMAIL PROTECTED] wrote:
 I can't believe people actually ask for this kind of
 thing.  Completely
 ridiculous.
 It's hard to believe that someone fluent enough in
 computers to use struts
 wouldn't have a grasp of the difficulty of language
 translation.
 
 
 -Original Message-
 From: Kearney, Michael
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 12:52 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] auto convert resource property
 files to different
 langua ge
 
 
 You've just asked for the Holy Grail of language
 translation.
 I don't think that tool exists yet.  There are
 companies that
 provide that service.
 
   -Michael
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 10:21 AM
 To: [EMAIL PROTECTED]
 Subject: [OT] auto convert resource property files
 to different language
 
 
 Hi,
 
 I have a properties file which is in english, now  i
 have to create properties files for different
 langauage like russian, spanish, french etc. now i
 dont know any of these languages is there any
 automatic conversion tool which will translate the
 properties file to different languages.
 If it is a open source will be nice :-)
 
 
 Ashish
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

-
 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!
http://sbc.yahoo.com

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



login framework

2003-07-15 Thread Ashish Kulkarni
Hi,
I have a following requirement, 
there are 2 links on a webpage, when the user clicks
on 1st link show the user login screen if he is not
logged in( ihave login info in session), if the login
is valid forward the request to 1st html page, 
if the user clicks on 2nd link, again show the login
screen (if not logged in), and if the login is valid
forward the request to 2nd html page.
So how do i define in struts-config file to handle
this, 
I want some mechanism to remember from which page the
request came and which page is must be redirected, and
what where the parameters in the request.
It is some thing like on ebay, where the user has to
login each time he tries to checkout

Any suggestions about it

Ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



single signon and struts

2003-07-11 Thread Ashish Kulkarni
Hi,
does anyonehave some info about single signon, i have
developed project using struts 1.1, i have about 4
as400 which can be accessed, i was planning to put in
place single signon, can anyone provide some links or
info about it

Ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



JAAS and struts1.1

2003-07-10 Thread Ashish Kulkarni
Hi
has anyone worked with JAAS and a struts project, i
have a project where in i have used struts1.1 and is
working great, now i have a requirement where i want
to validate a user against a AS400 system, i.e. get
user id and password and validate it for some
functions
IS there any other way to do it

ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



remmeber the URL design question

2003-07-09 Thread Ashish Kulkarni
Hi,
I have to work on web application where i need for the
user to logon with userid and password for some
functions. So it will be some thing like the user
clicks submit after entering the data on a screen, but
then i want to show a page for the user to login, and
if the login is successfull then call the original URL
with the data entered from the user and update the
database,
but how do i keep track of the URL and data which was
originially submitted.

Ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



validate user id password for some task

2003-07-09 Thread Ashish Kulkarni
Hi,
I am using struts 1.1 and i have the following
requirement, and need help in desinging it
I have some applications which will need the user to
login using userid and password, the user is already
logged to the website, but needs this for electronic
signature.
my problem is how do i take the user signin again on
some task, and take him back to the page where he was

ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



[OT] Create folder and copy files on client machine

2003-07-03 Thread Ashish Kulkarni
Hi 
I am working on a intranet application where in i need
to create folder on client machine, cache some files
on it, and when the file on the server is updated copy
the new file to the client machine,
Any suggestions or website or code on how to go about
it
I using struts1.1 to develop my website, 


Ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: [OT] Create folder and copy files on client machine

2003-07-03 Thread Ashish Kulkarni
Hi,
using an applet is one of the options, but i was
wondering if there is anything else , like any servlet
based solution

ashish
--- Jamie M. Guillemette
[EMAIL PROTECTED] wrote:
 Is your product signed? 
 
 If so you could use an applet.. 
 
 JMG
 
 
 
 - Original Message - 
 From: Ashish Kulkarni [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 03, 2003 12:20 PM
 Subject: [OT] Create folder and copy files on client
 machine
 
 
  Hi 
  I am working on a intranet application where in i
 need
  to create folder on client machine, cache some
 files
  on it, and when the file on the server is updated
 copy
  the new file to the client machine,
  Any suggestions or website or code on how to go
 about
  it
  I using struts1.1 to develop my website, 
  
  
  Ashish
  
  __
  Do you Yahoo!?
  SBC Yahoo! DSL - Now only $29.95 per month!
  http://sbc.yahoo.com
  
 

-
  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!
http://sbc.yahoo.com

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



Re: Reference to local DTD files

2003-06-30 Thread Ashish Kulkarni
Hi,
sorry for attaching my question to this, but i have a
same problem,
i have xml file and dtd file in same folder under
web-inf. but i get error dtd not found ,
my groups.xml definiation is some thing like below
?xml version=1.0?
!DOCTYPE groups SYSTEM groupsdtd.dtd

where groups.dtd is in the same folder as groups.xml
and i read the xml file in bean as
URL grouppath =
application.getResource(/WEB-INF/classes/configfiles/menu/groups.xml);
grouppath.openStream();

Ashish
--- Bailey, Shane C. [EMAIL PROTECTED]
wrote:
  
 
 I know this has been asked but I'm not sure of the
 final resolution...
 
  
 
 I need to be able to refer to dtd files under my
 web-inf instead of through
 a remote server.
 
 I keep getting an error about needing a base URI.
 
  
 
 tia
 
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



[OT] opening URI in mozilla

2003-06-25 Thread Ashish Kulkarni
Hi,
I have a link on one of the jsp which opens a local
file from the client PC, i am working on intranet
application so this is fine by me, 
so my path in HTML tag looks like this
file:///C:/cognos/scheduling/Scenario.imr

This works perfect in IE , but i get error in mozilla
and netscape, saying

Security Error: Content at
http://localhost:8080/testapp/menu/mapsmenu.jsp may
not load or link to
file:///C:/cognos/scheduling/Scenario.imr.

Error: uncaught exception: [Exception... Access to
restricted URI denied  code: 1012 nsresult:
0x805303f4 (NS_ERROR_DOM_BAD_URI)  location:
http://localhost:8080/testapp/menu/coolmenus4.js
Line: 419]

any workaround or any forum where i can post this
question
Ashish

=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



problem with struts bean tag when created on the fly

2003-06-25 Thread Ashish Kulkarni
Hi,
I am trying to the following, I have a java class
which builds a String for displaying in webpage,
I have some code in this class which builds String as
if it is struts bean tag, like my string when build
looks like this
'bean:message key=report1/'
and the java code to build this is
String title = new String(\' + bean:message   

key=\report\/+\');
and then i print this String at run time
but the problem is the bean tag does notand get
blanks, the value for report is not retrieved from
properties file.
why is this happening like this

Ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: test

2003-06-18 Thread Ashish Kulkarni
passed :-)
--- Lydia P [EMAIL PROTECTED] wrote:
 test
 
 

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


=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



struts menu 1.2 question

2003-06-16 Thread Ashish Kulkarni
Hi,
has anyone used struts menu to build drop down menu to
any level, 
I was trying to use coolmenu3 and it fails when i go
to levels down, 
any  suggestions, about it

Ashish

=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: struts menu 1.2 question

2003-06-16 Thread Ashish Kulkarni
Hi,
i want to go multiple leyels down, and may be any
level down, also i want the menu to be displayed on
left side if it reaches end of screen
do u have some code sample for writing these
displayers and java script
--- El Harouchi, Jaafar [IT]
[EMAIL PROTECTED] wrote:
 We have up to three levels down, but use our own
 displayers/javascript.
 How many levels down are you going?
 -jaafar
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: struts menu 1.2 question
 
 
 Hi,
 has anyone used struts menu to build drop down menu
 to
 any level, 
 I was trying to use coolmenu3 and it fails when i go
 to levels down, 
 any  suggestions, about it
 
 Ashish
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

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


=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: struts menu 1.2 question

2003-06-16 Thread Ashish Kulkarni
Thanx for all the info 
 i will look into it

Ashish
--- El Harouchi, Jaafar [IT]
[EMAIL PROTECTED] wrote:
 Ashish,
 Most of the displayers bundled in with struts-menu
 go as many levels
 down as defined.
 The source code is available through:
   http://sourceforge.net/projects/struts-menu/
 They are demoed at :
   http://www.raibledesigns.com/struts-menu/index.jsp
 
 The idea of having the menu go on the other side
 once the bottom of the
 page is interesting but might take some serious
 effort to implement.
 The javascript bundled with struts-menu is from:
   http://www.dhtmlcentral.com/projects/coolmenus/ 
 
 This should be enough to get you started.
 
 If you have more questions you can subscribing to
 the struts-menu-user
 list via the sourceforge link above.
 
 HTH,
 Jaafar
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 1:31 PM
 To: Struts Users Mailing List
 Subject: RE: struts menu 1.2 question
 
 
 Hi,
 i want to go multiple leyels down, and may be any
 level down, also i want the menu to be displayed on
 left side if it reaches end of screen
 do u have some code sample for writing these
 displayers and java script
 --- El Harouchi, Jaafar [IT]
 [EMAIL PROTECTED] wrote:
  We have up to three levels down, but use our own
  displayers/javascript.
  How many levels down are you going?
  -jaafar
  
  -Original Message-
  From: Ashish Kulkarni
  [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 16, 2003 11:47 AM
  To: [EMAIL PROTECTED]
  Subject: struts menu 1.2 question
  
  
  Hi,
  has anyone used struts menu to build drop down
 menu
  to
  any level, 
  I was trying to use coolmenu3 and it fails when i
 go
  to levels down, 
  any  suggestions, about it
  
  Ashish
  
  =
  A$HI$H
  
  __
  Do you Yahoo!?
  SBC Yahoo! DSL - Now only $29.95 per month!
  http://sbc.yahoo.com
  
 

-
  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]
  
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

-
 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!
http://sbc.yahoo.com

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



struts menu tutorial??

2003-06-13 Thread Ashish Kulkarni
Hi,
does any one have a struts menu tutorial or any web
site or book where i can get it, please let me the
location or book or if anyone has  written one

Ashish

=
A$HI$H

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: Page Iteration

2003-04-03 Thread Ashish Kulkarni
Hi Brian
I am using this taglib in my project and have no
problem what so ever till todate...

Ashish
--- Brian McSweeney [EMAIL PROTECTED]
wrote:
 Thanks Ashish,
 looks good and simple. Have you found the taglib
 reliable?
 cheers,
 Brian
 
 - Original Message - 
 From: Ashish Kulkarni [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Wednesday, April 02, 2003 6:38 PM
 Subject: Re: Page Iteration
 
 
  Hi ,
  I am using a pager taglib which can be used on any
  scrollable object like collection etc
  I have also written a small HOWTO u can visit 
 

http://kulkarni_ash.tripod.com/howto/jsptaglib-howto.html
  
  and try to use it
  
  Anyone else using this taglib can u please verify
 and
  let me know if i am missing some thing 
  
  Ashish
  
  --- Brian McSweeney [EMAIL PROTECTED]
  wrote:
   Hi all,
   
   I want to iterate over a collection and display
 a
   certain amount of items per page and list all
 the 
   further pages available (just like on google).
   
   I presume this is a feature that  has been added
 a
   million times. 
   
   Did a quick search on the list and I see that
 use of
   the iterator with parameter offset can be used. 
   Is this the general approach people would
 recommend?
   
   Any good resources on showing how to do it?
   cheers,
   Brian
   
  
  
  __
  Do you Yahoo!?
  Yahoo! Tax Center - File online, calculators,
 forms, and more
  http://tax.yahoo.com
  
 

-
  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! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



Re: Page Iteration

2003-04-03 Thread Ashish Kulkarni
Hi,

I think u can use it, i have not used it.. any think
which u can scroll can be used

Ashish
--- Brian McSweeney [EMAIL PROTECTED]
wrote:
 cool,
 thanks Ashish, I'll give it a try so.
 
 One thing, on your explanation website where you
 iterate 
 over the cached row set, is it possible to use the
 struts:iterate 
 tag for this? 
 
 cheers,
 Brian
 
 - Original Message - 
 From: Ashish Kulkarni [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Thursday, April 03, 2003 4:23 PM
 Subject: Re: Page Iteration
 
 
  Hi Brian
  I am using this taglib in my project and have no
  problem what so ever till todate...
  
  Ashish
  --- Brian McSweeney [EMAIL PROTECTED]
  wrote:
   Thanks Ashish,
   looks good and simple. Have you found the taglib
   reliable?
   cheers,
   Brian
   
   - Original Message - 
   From: Ashish Kulkarni
 [EMAIL PROTECTED]
   To: Struts Users Mailing List
   [EMAIL PROTECTED]
   Sent: Wednesday, April 02, 2003 6:38 PM
   Subject: Re: Page Iteration
   
   
Hi ,
I am using a pager taglib which can be used on
 any
scrollable object like collection etc
I have also written a small HOWTO u can visit 
   
  
 

http://kulkarni_ash.tripod.com/howto/jsptaglib-howto.html

and try to use it

Anyone else using this taglib can u please
 verify
   and
let me know if i am missing some thing 

Ashish

--- Brian McSweeney
 [EMAIL PROTECTED]
wrote:
 Hi all,
 
 I want to iterate over a collection and
 display
   a
 certain amount of items per page and list
 all
   the 
 further pages available (just like on
 google).
 
 I presume this is a feature that  has been
 added
   a
 million times. 
 
 Did a quick search on the list and I see
 that
   use of
 the iterator with parameter offset can be
 used. 
 Is this the general approach people would
   recommend?
 
 Any good resources on showing how to do it?
 cheers,
 Brian
 


   
 __
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators,
   forms, and more
http://tax.yahoo.com

   
  
 

-
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! Tax Center - File online, calculators,
 forms, and more
  http://tax.yahoo.com
  
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



Re: Page Iteration

2003-04-02 Thread Ashish Kulkarni
Hi ,
I am using a pager taglib which can be used on any
scrollable object like collection etc
I have also written a small HOWTO u can visit 
http://kulkarni_ash.tripod.com/howto/jsptaglib-howto.html

and try to use it

Anyone else using this taglib can u please verify and
let me know if i am missing some thing 

Ashish

--- Brian McSweeney [EMAIL PROTECTED]
wrote:
 Hi all,
 
 I want to iterate over a collection and display a
 certain amount of items per page and list all the 
 further pages available (just like on google).
 
 I presume this is a feature that  has been added a
 million times. 
 
 Did a quick search on the list and I see that use of
 the iterator with parameter offset can be used. 
 Is this the general approach people would recommend?
 
 Any good resources on showing how to do it?
 cheers,
 Brian
 


__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



RE: Struts Pager Tag Library

2003-03-28 Thread Ashish Kulkarni
Hi 

pager tag lib is very cool and easy to use 
i have used it in my project, u can download it from
here and also has some examples 
http://jsptags.com/tags/navigation/pager/index.jsp
http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html


Ashish
--- Robert Taylor [EMAIL PROTECTED] wrote:
 Hmmm... Searching for Pager Tag Library in the
 mailing list archives
 produced 36 hits.
 
 Here's the first one ...
 
 Look at the Pager tag at Struts Layout:
 http://struts.applications-servers.com or the same
 in Ed Hill's Dispaly tag
 library (http://edhill.its.uiowa.edu/display-0.8/).
 Both places have running
 examples I think.
 Affan
 
 
 Please do some footwork before blind posting.
 
 robert
 
 -Original Message-
 From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 28, 2003 2:04 PM
 To: Struts Users Mailing List
 Subject: RE: Struts  Pager Tag Library
 
 
 I think jsptags.com has a pager tag library. Haven't
 used it myself though.
 
 -Original Message-
 From: Susmita Pati [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 28, 2003 1:48 PM
 To: 'Struts Users Mailing List'
 Subject: Struts  Pager Tag Library
 
 
  Hi All
 I was planning to implement Pager Tag Library with
 my Struts application.
 Can any1 pass me on some example / sample code /
 links to the sample code.
 
 Thanks in advance
 
 Susmita
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: jsp editor

2003-03-26 Thread Ashish Kulkarni
Hi,
 u may also wana look at macromedia dreamweaver MX, u
can add any number of taglibs and it works fine, also
have capability to do visual editing
Ashish
--- [EMAIL PROTECTED] wrote:
 
 Netbeans 3.4.1 does a decent job of that, I have
 also tried Eclipse, but I
 have since started looking at Intellij.
 I am afraid to say that does the best job of any
 that I have seen with
 struts and standard JSP and Java.
 
 
 
 
 
 
 
 Tim Stadinski [EMAIL PROTECTED] on
 03/26/2003 12:31:06 PM
 
 Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
 
 To:[EMAIL PROTECTED]
 cc:
 
 Subject:jsp editor
 
 
 Does anyone recommend a jsp editor that will do tag
 inspection for the
 strut taglibs?
 
 thanks.
 
 
 

-
 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! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: Problem with locale

2003-03-25 Thread Ashish Kulkarni
Hi,
try putting locale in the session of the user,
Locale l=new Locale(es,ES);
session.setAttribute(Globals.LOCALE_KEY , l);

Ashish
--- Miguel Angel Medina Lopez
[EMAIL PROTECTED] wrote:
 Hi all:
 
 I have a problem when I want to change the locale of
 my struts application. By defauly, when I get the
 Locale, with the next code:
 
 log.debug(The locale is +locale.toString());
 
 the result is  The locale is en_US. Now I want to
 change the locale to spanish with the code:
 
 Locale l=new Locale(es,ES);
 setLocale(request,l);
 
 and the out from the logger is The locale is
 es_ES, however, in the JSPs, the output take the
 messages from the english (_en) resource bundle. The
 default resource is in spanish. 
 
 Any suggestion? Thank you in advance.
 

-
 Miguel Ángel Medina López
 Logic Factory: www.logic-factory.com
 Granada - España
 
 
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



is there a struts club in NJ???

2003-03-25 Thread Ashish Kulkarni
Hi,
can some one forward the website or infortmation if
there is a struts club in NJ, i would like to join it,

Ashish

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



null pointer error in HTML tag when session is false in jsp

2003-03-25 Thread Ashish Kulkarni
Hi,
here is a code snippet of my jsp, i get null pointer
error, do i have to have a session, ??

%@ page language=java session=false buffer=16kb
contentType=text/html%

bean:message key=logout.login/


this is the error i get
java.lang.NullPointerException
at
org.apache.struts.taglib.html.HtmlTag.getCurrentLocale(HtmlTag.java:248)
at
org.apache.struts.taglib.html.HtmlTag.doStartTag(HtmlTag.java:138)
at
org.apache.jsp.logout_jsp._jspx_meth_html_html_0(logout_jsp.java:90)

Ashish

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: Problem with locale

2003-03-25 Thread Ashish Kulkarni
Hi,
do u have a proper definiation of properties file for
es_ES , as if there is no properties file for it, then
struts get message from default file

Ashish
--- Miguel Angel Medina Lopez
[EMAIL PROTECTED] wrote:
 First of all thank you.
 
 I have tried that with the same result, the output
 messages continue in
 english.
 

-
 Miguel Ángel Medina López
 Logic Factory: www.logic-factory.com
 Granada - España
 
 - Original Message -
 From: Ashish Kulkarni [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Tuesday, March 25, 2003 9:01 PM
 Subject: Re: Problem with locale
 
 
  Hi,
  try putting locale in the session of the user,
  Locale l=new Locale(es,ES);
  session.setAttribute(Globals.LOCALE_KEY , l);
 
  Ashish
  --- Miguel Angel Medina Lopez
  [EMAIL PROTECTED] wrote:
   Hi all:
  
   I have a problem when I want to change the
 locale of
   my struts application. By defauly, when I get
 the
   Locale, with the next code:
  
   log.debug(The locale is +locale.toString());
  
   the result is  The locale is en_US. Now I want
 to
   change the locale to spanish with the code:
  
   Locale l=new Locale(es,ES);
   setLocale(request,l);
  
   and the out from the logger is The locale is
   es_ES, however, in the JSPs, the output take
 the
   messages from the english (_en) resource bundle.
 The
   default resource is in spanish.
  
   Any suggestion? Thank you in advance.
  
  
 

-
   Miguel Ángel Medina López
   Logic Factory: www.logic-factory.com
   Granada - España
  
  
  
 
 
  __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!
  http://platinum.yahoo.com
 
 

-
  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! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: null pointer error in HTML tag when session is false in jsp

2003-03-25 Thread Ashish Kulkarni
Hi,

I tried putting 
html:html locale=false 
in my jsp but still get the same error, 

Ashish
--- David Graham [EMAIL PROTECTED] wrote:
 If you set the html:html tag's locale attribute to
 true it will create a 
 session, otherwise you don't need one.
 
 David
 
 
 
 From: Ashish Kulkarni [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: null pointer error in HTML tag when
 session is false in jsp
 Date: Tue, 25 Mar 2003 12:32:51 -0800 (PST)
 
 Hi,
 here is a code snippet of my jsp, i get null
 pointer
 error, do i have to have a session, ??
 
 %@ page language=java session=false
 buffer=16kb
 contentType=text/html%
 
 bean:message key=logout.login/
 
 
 this is the error i get
 java.lang.NullPointerException
  at

org.apache.struts.taglib.html.HtmlTag.getCurrentLocale(HtmlTag.java:248)
  at

org.apache.struts.taglib.html.HtmlTag.doStartTag(HtmlTag.java:138)
  at

org.apache.jsp.logout_jsp._jspx_meth_html_html_0(logout_jsp.java:90)
 
 Ashish
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!
 http://platinum.yahoo.com
 

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

_
 MSN 8 with e-mail virus protection service: 2 months
 FREE*  
 http://join.msn.com/?page=features/virus
 
 

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


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



struts Internationalization and fonts for jsp

2003-03-24 Thread Ashish Kulkarni
Hi,

I have to build a website which can  be viewed in
multiple languages, I am using properties to file to
get the text in different languages , but how do
people select different font for different languages, 
What i was thinking was to have a property called font
in properties file and have fonts coded for different
languages, 
like my.properties (default english) will have 
font=Verdana, Arial, Helvetica, sans-serif

any suggestion on achieveing this

Ashish


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



RE: struts Internationalization and fonts for jsp

2003-03-24 Thread Ashish Kulkarni
Hi,

I came up with this issue of fonts when i was visiting
some websites in other languages like Hindi, I went to
a website which displays all the text in Hindi, i was
looking in the source of this HTML file and saw the
font used as Webdunia, and the text was in english but
some thing like 'fiUrhgh' which does not make sense,
if u are using some common font like Verdana. For this
text to make sense and appear properly have to use
font webdunia, and then it strike me that it will be
same for all the other languages which have font base
other then latin.
So i think if we have to develop a website for
different langauges font is one of the very crucial
things, for example the properties file in other
language will have letter in english but will be
rendered differently if used different font
Hope this makes sense
Ashish
--- David Graham [EMAIL PROTECTED] wrote:
 I think he just wants to use a different font for
 each language.  You 
 shouldn't need to worry about it.
 
 David
 
 
 
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: struts Internationalization and fonts
 for jsp
 Date: Mon, 24 Mar 2003 17:16:01 +0100
 
 I am writing a multi-lingual APP and I did not
 think I had to worry about 
 fonts.
 Can someone please explain to me what about fonts I
 actually have to worry 
 about?
 
 
_
 
 Thank You
 
 Mick Knutson
 
 Sr. Designer - Project Trust
 aUBS AG, Financial - Zürich
 Office: +41 (0)1/234.42.75
 Internal: 48194
 Mobile: 079.726.14.26
_
 
 
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 5:03 PM
 To: [EMAIL PROTECTED]
 Subject: Re: struts Internationalization and fonts
 for jsp
 
 
 That looks like a good approach.  You can write a
 css block at the top of
 the page with the font from your properties file.
 
 David
 
 
 
  From: Ashish Kulkarni
 [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: struts Internationalization and fonts
 for jsp
  Date: Mon, 24 Mar 2003 07:57:00 -0800 (PST)
  
  Hi,
  
  I have to build a website which can  be viewed in
  multiple languages, I am using properties to file
 to
  get the text in different languages , but how do
  people select different font for different
 languages,
  What i was thinking was to have a property called
 font
  in properties file and have fonts coded for
 different
  languages,
  like my.properties (default english) will have
  font=Verdana, Arial, Helvetica, sans-serif
  
  any suggestion on achieveing this
  
  Ashish
  
  
 
 __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!
  http://platinum.yahoo.com
  
 

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

_
 Add photos to your messages with MSN 8. Get 2
 months FREE*.
 http://join.msn.com/?page=features/featuredemail
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 Visit our website at http://www.ubswarburg.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]
 
 
 

_
 MSN 8 helps eliminate e-mail viruses. Get 2 months
 FREE*.  
 http://join.msn.com/?page=features/virus
 
 

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


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http

struts and request.getRequestDispatcher problem

2003-03-14 Thread Ashish Kulkarni
Hi,
i have a following code in my jsp , but is not working
for me on tomcat4.1.12
request.getRequestDispatcher(/pages/sessioninvalid.do).forward(request,
response);

My struts-config definiation is as follows
!-- action mapping for session invalid checking --
action
type=com.pfizer.maps.action.SessionInvalidAction
scope=request path=/pages/sessioninvalid
  forward name=success path=/pages/index.jsp
redirect=false /
/action

This used to work when using struts1.1b2 , but not
working since upgrading to struts1.1b3 or RC1, 
what may be the problem


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



Re: validate business data

2003-03-14 Thread Ashish Kulkarni
Hi,

What we have done in our application is created a
busniess logic bean,
so we create the instance of this bean in Action class
and then get an ArrayList of all the messages ( error
or display) and then put these messages in
ActionErrors in Action class and forward it to jsp
So we keep the business logic and struts totally
independent

Ashish
--- Dan Allen [EMAIL PROTECTED] wrote:
 Naturally all screening of data should be done by
 the
 ActionForm/Validator interface, but when it comes
 time to looking
 for duplicate usernames/emails or other such
 business conflicts,
 this must be done in the business logic layer.
 
 How do most of you handle this?  Do you create a
 validateData()
 method in your Action class or is this something
 that the Model
 objects should be able to handle?
 
 Dan
 
 -- 
 - - - - - - - - - - - - - - - - - - - - - - - - - -
 - - - - - 
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - -
 - - - - - 
 Windows: where do you want your data to disappear to
 today?
 - - - - - - - - - - - - - - - - - - - - - - - - - -
 - - - - - 
 

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


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



[OT]servlet filter problem

2003-03-14 Thread Ashish Kulkarni
Hi,
Tomcat 4.1.12
I have the following definition in my web.xml, but
some how it is not working...
I want to filter all the request which go to 
/pages/planning/*.do
How do i do it??
filter
  filter-nameMapsValidFilter/filter-name

 
filter-classcom.pfizer.maps.common.MapsValidFilter/filter-class
   /filter

   filter-mapping
  filter-nameMapsValidFilter/filter-name

  url-pattern/pages/planning/*.do/url-pattern
   /filter-mapping


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



problem with Action?? very weird

2003-03-13 Thread Ashish Kulkarni
Hi,
I was using struts1.1b2 then migrated to strtus1.1b3 ,
my application was working fine, and today i am
getting very weird problem, 
when i type
http://localhost:8080/mapsweb6102/pages/selectenv.do
i dont get into the SelectEnvAction.class but directly
forwarded to the jsp, and so it fails
I have my subclass MapsAction with extends Action and
have some logic to check session is valid or not etc
before i do any logic, 
But i 
here is what i have in my code

public class SelectEnvAction extends MapsAction
{
 public ActionForward performTask(ActionMapping
mapping, ActionForm form,

HttpServletRequest request,

HttpServletResponse response) throws Exception
{
// my logic goes here
}
}
public abstract class MapsAction extends Action
{
 public ActionForward execute(ActionMapping mapping,
ActionForm form,
   HttpServletRequest
request,
   HttpServletResponse
response)
  throws Exception
{
System.out.println(IN MapsAction);
// logic to test valid etc
return performTask(mapping, form, request,
response);

}
}

this is what i get in my stdout.log file
2003-03-13 21:26:39,786 DEBUG [Thread-4]
util.RequestUtils (RequestUtils.java:1642) - Get
module name for path /pages/selectenv.do
2003-03-13 21:26:39,786 DEBUG [Thread-4]
util.RequestUtils (RequestUtils.java:1664) - Module
name found: default
2003-03-13 21:26:39,786 INFO  [Thread-4]
action.RequestProcessor (RequestProcessor.java:225) -
Processing a 'GET' for path '/pages/selectenv'
2003-03-13 21:26:39,786 DEBUG [Thread-4]
util.RequestUtils (RequestUtils.java:675) -  Looking
for ActionForm bean instance in scope 'request' under
attribute key 'selectEnvForm'
2003-03-13 21:26:39,786 DEBUG [Thread-4]
util.RequestUtils (RequestUtils.java:736) -  Creating
new DynaActionForm instance of type
'org.apache.struts.validator.DynaValidatorForm'
2003-03-13 21:26:39,786 DEBUG [Thread-4]
util.RequestUtils (RequestUtils.java:741) -  --
DynaActionForm[dynaClass=selectEnvForm,envDrop=]
2003-03-13 21:26:39,786 DEBUG [Thread-4]
action.RequestProcessor (RequestProcessor.java:367) - 
Storing ActionForm bean instance in scope 'request'
under attribute key 'selectEnvForm'
2003-03-13 21:26:39,786 DEBUG [Thread-4]
action.RequestProcessor (RequestProcessor.java:790) - 
Populating bean properties from this request
2003-03-13 21:26:39,796 DEBUG [Thread-4]
beanutils.BeanUtils (BeanUtils.java:713) -
BeanUtils.populate(DynaActionForm[dynaClass=selectEnvForm,envDrop=],
{})
2003-03-13 21:26:39,796 DEBUG [Thread-4]
action.RequestProcessor (RequestProcessor.java:910) - 
Validating input form properties
2003-03-13 21:26:39,796 DEBUG [Thread-4]
servlet.MapsSessionListener
(MapsSessionListener.java:30) - Session is created
78E19BBB7DF2B119BFB104556FFC6CF3
2003-03-13 21:26:39,796 DEBUG [Thread-4]
action.RequestProcessor (RequestProcessor.java:942) - 
Validation failed, returning to '/pages/selectenv.jsp'
2003-03-13 21:26:39,796 DEBUG [Thread-4]
action.RequestProcessor (RequestProcessor.java:978) - 
Delegating via forward to '/pages/selectenv.jsp'

Ashish






__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



RE: Caching Drop Down List Box Strategies?

2003-03-13 Thread Ashish Kulkarni
Hi,
One question about caching data in servletcontext, 
u said some thing about timestamp, what this timestamp
do exactly, how will i come to know when to reload the
data using this timestamp,

Also suppos the data i ahve to cache does not modify
so often , but it modifies once in 15 - 20 days, but
by some different application , so how will i refresh
data in cache??

Ashish

--- Wendy Smoak [EMAIL PROTECTED] wrote:
 Joshua wrote:
  I thought I would be slick an attempt to cache the
 Collections used to
  populate my forms drop down list boxes instead of
 hitting the database
 every
  time (The values may change daily).
 
 Assuming you don't reload (or stop/start) your
 webapp daily, in which case a
 ServletContextListener could be employed to place
 the Collections into
 application scope where they would live until the
 next reload...
 
 I assume that Struts uses the iterator() method of
 the Collection/List in
 order to write out the option tags.  Maybe it's
 the toArray() method.  In
 any case...
 
 What if you implemented Collection (or List) and
 held a timestamp, so that
 when the iterator() method was called, you would
 check to see if the data
 was expired and if so, go read it from the
 database before returning the
 Iterator.  That's going to cause a delay for the one
 person who's unlucky
 enough to request the page after the expiration, but
 if you stagger the
 expiration times, it'll only delay one person per
 day per drop-down.
 
 I use the ServletContextListener approach, but the
 contents of my dropdowns
 don't change that often.
 
 -- 
 Wendy Smoak
 Applications Systems Analyst, Sr.
 Arizona State University PA Information Resources
 Management
 


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



RE: [OT] basic java question

2003-03-12 Thread Ashish Kulkarni
Hi,

The static methods in my class will be accessed from
servlet, and since servlet will have multiple instance
accessing these classes it is a case of multi
threading 
does anyone have a example code for writing this kind
of code
Ashish
--- Mark Galbreath [EMAIL PROTECTED] wrote:
 Rewrite the classes using the factory design pattern
 and get their
 respective instances in other classes using static 
 initializers.  Whether
 or not you need to synchronize the methods is
 answered by the question: If
 two threads gain concurrency of the object will the
 resultant change in
 state corrupt the integrity of the output?
 
 cf., Joshua Block, Effective Java
 (Sun/Addison-Wesley 2001): 5-9 (has a
 great forward by Guy Steele, too).
 
 Mark
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 11, 2003 4:36 PM
 
 Hi Jeff,
 This tutorial talks about threads and when to make
 them synchronize, but my problem is about a kind of
 utility class or worker class which has 2 methods
 which i want to keep static so i dont have to create
 instance of that class to use these methods..
 and i my question is i would not make them
 synchronized, if they are independent and do not use
 any other class resources, and make them
 synchronized
 if i have some class variable which is accessed bye
 them, so no 2 instance of classes can use the method
 at a time( this is off course going to affect
 performace) 
 but i my doubt is, if one static method is calling
 other static method in same class, should i make
 them synchronized???
 
 Ashish
 --- Jeff Kyser [EMAIL PROTECTED] wrote:
  Ashish,
  
  Check out the following trail on threads at
  java.sun.com,
  
  
 

http://java.sun.com/docs/books/tutorial/essential/threads/index.html
  
  it discusses synchronization and when you need to
  use it.
  
  -jeff
  
  On Tuesday, March 11, 2003, at 02:41  PM, Ashish
  Kulkarni wrote:
  
   Hi,
  
   I have a following class with 2 static methods,
  should
   i make the methods synchronized??
   I would not make then synchronized, if those
 where independent,
   but i am not sure since one method is calling
  other to
   get some data
   I will call this method from any class
   String a = MyClass.getOtherThing(123);
   or
   String b = MyClass.getSomeThing(567);
   (this is just a example code)
  
   public class MyClass
{
  public static String getSomeThing(String abc)
 {
  // some logic
   return 1;
 }
  
  public static String getOtherThing(String
 abc)
 {
   // calling method getSomeThing here
 String s = getSomeThing(abc);
// do some logic and return result
return 2;
 }
}
  
  
  
 __
   Do you Yahoo!?
   Yahoo! Web Hosting - establish your business
  online
   http://webhosting.yahoo.com
  
  
 

-
   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! Web Hosting - establish your business online
 http://webhosting.yahoo.com
 

-
 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! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



Re: [Q] Log Viewing tool for Windows environment?

2003-03-11 Thread Ashish Kulkarni
Hi,
u may wanna try 
http://www.textpad.com/

this one is pretty good refresh etc when the file is
changed on computer and just press Ctrl + End key once
and it will take u always to end of file

Ashish
--- Jeff Smith [EMAIL PROTECTED] wrote:
 To date I have been using the brute-force log
 viewer: notepad. Is anybody
 aware of a Windows app that monitors text log files
 (like output from log4j)
 and automatically refreshes and scrolls to the end
 of the file? Such
 functionality would make my test-debug cycle less
 mouse intensive. :-)
 
 In the UN*X world, I had the tail command for such
 purposes. But I've never
 seen anything like this for Windows.
 
 Any suggestions?
 
 Jefficus
 
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



[OT] basic java question

2003-03-11 Thread Ashish Kulkarni
Hi,

I have a following class with 2 static methods, should
i make the methods synchronized??
I would not make then synchronized, if those where
independent, 
but i am not sure since one method is calling other to
get some data 
I will call this method from any class 
String a = MyClass.getOtherThing(123);
or
String b = MyClass.getSomeThing(567);
(this is just a example code)

public class MyClass
 {
   public static String getSomeThing(String abc)
  {
   // some logic
return 1;
  }

   public static String getOtherThing(String abc)
  {
// calling method getSomeThing here
  String s = getSomeThing(abc);
 // do some logic and return result
 return 2;
  }
 }


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



Re: [OT] basic java question

2003-03-11 Thread Ashish Kulkarni
Hi Jeff,
This tutorial talks about threads and when to make
them synchronize, but my problem is about a kind of
utility class or worker class which has 2 methods
which i want to keep static so i dont have to create
instance of that class to use these methods..
and i my question is i would not make them
synchronized, if they are independent and do not use
any other class resources, and make them synchronized
if i have some class variable which is accessed bye
them, so no 2 instance of classes can use the method
at a time( this is off course going to affect
performace) 
but i my doubt is, if one static method is calling
other static method in same class, should i make them
synchronized???

Ashish
--- Jeff Kyser [EMAIL PROTECTED] wrote:
 Ashish,
 
 Check out the following trail on threads at
 java.sun.com,
 
 

http://java.sun.com/docs/books/tutorial/essential/threads/index.html
 
 it discusses synchronization and when you need to
 use it.
 
 -jeff
 
 On Tuesday, March 11, 2003, at 02:41  PM, Ashish
 Kulkarni wrote:
 
  Hi,
 
  I have a following class with 2 static methods,
 should
  i make the methods synchronized??
  I would not make then synchronized, if those where
  independent,
  but i am not sure since one method is calling
 other to
  get some data
  I will call this method from any class
  String a = MyClass.getOtherThing(123);
  or
  String b = MyClass.getSomeThing(567);
  (this is just a example code)
 
  public class MyClass
   {
 public static String getSomeThing(String abc)
{
 // some logic
  return 1;
}
 
 public static String getOtherThing(String abc)
{
  // calling method getSomeThing here
String s = getSomeThing(abc);
   // do some logic and return result
   return 2;
}
   }
 
 
  __
  Do you Yahoo!?
  Yahoo! Web Hosting - establish your business
 online
  http://webhosting.yahoo.com
 
 

-
  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! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



Re: Newbie: Hello World ActionForward returns nothing

2003-03-11 Thread Ashish Kulkarni
How do u call this action class??
are u loading it from jsp or html??
http://localhost:8080/yourapplicationname/helloWorld.do
should call it i guess???
Correct me if i am wrong
--- Simen Brekken [EMAIL PROTECTED] wrote:
 (NOTE: If this is reposted, I appoligize.)
 
 It's a drop dead simple Hello World! example but
 after almost two days
 trying to get it working I'm giving up helping some
 of you can make sense
 out of this nightmare :)
 
 - Jetty 4.2.8
 - Struts 1.0.2
 - All config files (web.xml, jetty.xml and
 struts.xml) have been validated
 against DTDs.
 - Debug and detail set to 2 in web.xml
 - commons-logging in WEB-INF/classes set to one line

org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
 
 Struts is working, as I have tried a
 HelloWorldStatic (using a simple
 action path=/helloWorldStatic
 forward=/hello.jsp /) and it prints
 Hello Word!
 
 struts.xml defines a simple action with only one
 possible forward.
 
 -- WEB-INF/struts.xml --
 ?xml version=1.0 encoding=ISO-8859-1 ?
  !DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts
 Configuration 1.1//EN
   

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
 struts-config
  action-mapping
   action path=/helloWorld
 type=org.foo.hellobirdy.HelloBirdyAction
forward name=hello path=/hello.jsp /
   /action
  /action-mapping
 /struts-config
 -- END --
 
 --
 WEB-INF/src/org/foo/hellobirdy/HelloBirdyAction.java
 --
 package org.foo.hellobirdy;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.struts.action.Action;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionForward;
 import org.apache.struts.action.ActionMapping;
 
 public final class HelloBirdyAction extends Action
 {
  public ActionForward execute(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws Exception
  {
   ActionForward forward = null;
   Log log =
 LogFactory.getLog(HelloBirdyAction.class);
 
   forward = mapping.findForward(hello);
 
   log.error(mapping: +mapping.toString());
   log.error(found forward: +forward);
 
   return forward;
  }
 }
 -- END --
 
 Now it compiles like a charm, jsp works by putting
 in URL manually but:
 
 - I get nothing in the browser
 - Nothing in the container logs
 - Nothing except Processing a GET for /helloWorld
 in STDOUT.
 
 Hope I explained things good enough for someone to
 assist me, I'm going
 insneee :)
 
 ___
 SIMEN BREKKEN / in his prime
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



Re: paginator tags

2003-03-07 Thread Ashish Kulkarni
Hi
here is how to define the taglib in web-inf
taglib
taglib-urihttp://jsptags.com/tags/navigation/pager/taglib-uri
taglib-location/WEB-INF/pager-taglib.tld/taglib-location
/taglib


Here is in nutshell all u need to do for setting
paging tablib in jsp
//declare jsp tag in taglib
%@ taglib
uri=http://jsptags.com/tags/navigation/pager;
prefix=pg %
pg:pager maxIndexPages=3
 maxPageItems=10
export=pagerPageNumber=pageNumber 
!--i use cached row set to store the data, resut is a
bean defined, i dont want to build a bean and an array
list of that bean etc to handle paging--
CachedRowSet crs = result.getCachedData();
!-- start your loop to display data from arraylist or
result set --
% while (crs.next())
  {
  %
  pg:item
  %
!-- the code to build table code will go here
--
  /pg:item
!-- logic to get the build the page number and images
so u can do pagin
--
pg:index 

!-- for previos page i use a image here--
pg:prev
 
a href=%= pageUrl %
onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('left','','../images/en/buttons/arrow_left_on.gif',1)img
name=left border=0
src=../images/en/buttons/arrow_left_off.gif
width=30 height=30 align=absmiddle/a
  /pg:prev 

!-- for page numbers like in google --

pg:pages
 a class=pageNum href=%= pageUrl % %=
pageNumber %/a
 /pg:pages 

!-- for next page--

pg:next
 a href=%= pageUrl %
onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('right','','../images/en/buttons/arrow_right_on.gif',1)img
name=right border=0
src=../images/en/buttons/arrow_right_off.gif
width=30 height=30 align=absmiddle/a

/pg:next 

/pg:index 
!-- end of pager--
/pg:pager


 
I hope this helps
I am also attaching one of the jsp along this mail for
your reference

Ashish








--- Richard Raquepo [EMAIL PROTECTED] wrote:
 Can you give me actual jsp code on how you used the
 pager tag. i find it
 hard to customize it. thanks
 - Original Message -
 From: Ashish Kulkarni [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Friday, March 07, 2003 5:36 AM
 Subject: Re: paginator tags
 
 
  Hi
  u may wanna have a look at this
  http://jsptags.com/tags/navigation/pager/index.jsp
 
  it works well for me
 
  Ashish
 
  --- alexj [EMAIL PROTECTED] wrote:
   you may use display tag or struts-el
   here is a sample from JSTL in Action :
   %@ taglib prefix=c
   uri=http://java.sun.com/jstl/core; %
  
   c:set var=totalCount scope=session
   value=100/
  
   c:set var=perPage scope=session
 value=20/
  
   c:forEach
  
   var=boundaryStart
  
   begin=0
  
   end=${totalCount - 1}
  
   step=${perPage}
  
   a href=?start=c:out
 value=${boundaryStart}/
  
   [
  
   c:out value=${boundaryStart}/
  
   -
  
   c:out value=${boundaryStart + perPage - 1}/
  
   ]
  
   /a
  
   /c:forEach
  
   c:forEach
  
   var=current
  
   varStatus=status
  
   begin=${param.start}
  
   end=${param.start + perPage - 1}
  
   c:if test=${status.first}
  
   ul
  
   /c:if
  
   lic:out value=${current}//li
  
   c:if test=${status.last}
  
   /ul
  
   /c:if
  
   /c:forEach
  
   --
   Alexandre Jaquet
   - Original Message -
   From: Jacky Kimmel [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Thursday, March 06, 2003 9:22 PM
   Subject: paginator tags
  
  
   
Does anyone know how to implement paginator
 tags?
   Ie: you have a list of
   30 items out of 100.  You now want to display
 the
   next 30 and so on.
   
   
   
Also, I am using application.resource for all
   labels.  I want to have a
   name with a trademark symbol as a superscript.
   Anyone know how to do this?
   
   
   
-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips,
 and
   more
  
  
  
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
 
 
  =
  A$HI$H
 
  __
  Do you Yahoo!?
  Yahoo! Tax Center - forms, calculators, tips, more
  http://taxes.yahoo.com/
 
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: crazy error

2003-03-07 Thread Ashish Kulkarni
Hi,
How do u pass the bean to jsp from Action, do u pass
it through request, if yes then u will loose the bean
when u submit it back from jsp as it is a new request,

and so loose all the values
I hope this makes sense, 
Ashish
--- [EMAIL PROTECTED] wrote:
 Hi,
 
  I have a action calls which populates the formbean
 and forward to JSP where I
 can see the values but when I submit the jsp back to
 the same action the values
 or lost.
 
  the jsp code is ( from the javasript I can see the
 values I print in the
 alerts) and I get the value I set to actionstr in
 the action servlet but none
 of the other values like product_id or
 period_end_date.  What is wrong??
 
 Regards
 Rajesh J
 function cancelr()
 {
   allo.actionstr.value=cancel;
   alert(allo.period_end_date.value);
   alert(allo.product_id.value);
   allo.submit();
 }
 
 /script
 /head
 
 body topmargin=0 leftmargin=0
 html:form action=allocationAction
name=allocationActionForm
   
 type=lam.mffs.form.AllocationActionForm
styleId=allo
scope=session
 html:hidden property=actionstr
 styleId=actionstr/
 table border=0 width=100% height=922
 cellspacing=0 cellpadding=0
   tr
 td width=100% height=72 bgcolor=#66
 style=color: #FF
 nbsp;strongfont size=8
 face=ATSackLightRomNoBallshtml:img width=61
 height=45 src=images/top.bmp
 border=0/MFFS/font/strong/td
   /tr
   tr
 td width=100% height=20 bgcolor=#E3
 style=color: #FF
 nbsp;/td
   /tr
   tr
 td width=100% height=823 style=color:
 #FF valign=middle align
 =centernbsp;
   table border=1 width=652 cellpadding=0
 cellspacing=1 bordercolor
 =#00 bordercolorlight=#00
 bordercolordark=#00
 tr
 td style=BACKGROUND-color: #e0ebf5
 width=312 bordercolor=#FF
 bordercolorlight=#FF bordercolordark=#FF
 align=right nowrap
   Period End Datenbsp;nbsp;/td
   td style=BACKGROUND-color: #e0ebf5
 width=324 bordercolor=
 #FF bordercolorlight=#FF
 bordercolordark=#FF
   html:text tabindex=1
 property=period_end_date styleId
 =period_end_date size=10/
   /td
 /tr
 tr
 td style=BACKGROUND-color: #e0ebf5
 width=312 bordercolor=#FF
 bordercolorlight=#FF bordercolordark=#FF
 align=right nowrap
   Product IDnbsp;nbsp;/td
   td style=BACKGROUND-color: #e0ebf5
 width=324 bordercolor=
 #FF bordercolorlight=#FF
 bordercolordark=#FF
   html:text tabindex=2
 property=product_id styleId=product_id
 size=10/
   /td
 
 
 
 
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: Want to stop tomcat's info messages from printing to console

2003-03-07 Thread Ashish Kulkarni
Hi,
I have a following setup and works for me, may be u
also wanna try it
in my Log4J properties file i have defined
 appender name=STDOUT
class=org.apache.log4j.ConsoleAppender
  layout class=org.apache.log4j.PatternLayout
 param name=ConversionPattern value=%d
%-5p [%t] %C{2} (%F:%L) - %m%n /
  /layout
   /appender

 root
  priority value=WARN /

  appender-ref ref=STDOUT /
   /root

also in web.xml file i have setup debug parameter in
action servlet definiation to 4
init-param
  param-namedebug/param-name
  param-value4/param-value
 /init-param
which stoped all the debug messages, 
Ashish


--- Scott Power [EMAIL PROTECTED] wrote:
 I was wondering if there is a way to stop tomcat
 from printing its
 messages to the console.  I know how to configure
 the log4j message from
 within the application, by setting the level in the
 log4j.configuration
 file but I still get message on the console like the
 ones below.  I
 would like to stop these from showing up, I only
 want to see message
 from my app and the fact that tomcat has started and
 stopped.  I tried
 to change my CATALINA_OPTS variable in my
 CATALINA.bat file but I think
 I might either have incorrect syntax or something, I
 am using win 2000,
 with tomcat 4.1.  I have checked all my debug levels
 in the server xml,
 web.xml both for tomcat and the app itself.  I know
 its not a really big
 deal, but I want to make some clean log files for
 later use.  If anyone
 has ideas I would like to hear them.
 
 Once again thanks in advance.
 
 Scott 
 
 
 
 
 7-Mar-2003 2:11:56 PM
 org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 7-Mar-2003 2:11:56 PM
 org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 7-Mar-2003 2:11:57 PM
 org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 7-Mar-2003 2:11:59 PM
 org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
  .
  .
  .
  .
 \/
 
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: paginator tags

2003-03-06 Thread Ashish Kulkarni
Hi
u may wanna have a look at this
http://jsptags.com/tags/navigation/pager/index.jsp

it works well for me

Ashish

--- alexj [EMAIL PROTECTED] wrote:
 you may use display tag or struts-el
 here is a sample from JSTL in Action :
 %@ taglib prefix=c
 uri=http://java.sun.com/jstl/core; %
 
 c:set var=totalCount scope=session
 value=100/
 
 c:set var=perPage scope=session value=20/
 
 c:forEach
 
 var=boundaryStart
 
 begin=0
 
 end=${totalCount - 1}
 
 step=${perPage}
 
 a href=?start=c:out value=${boundaryStart}/
 
 [
 
 c:out value=${boundaryStart}/
 
 -
 
 c:out value=${boundaryStart + perPage - 1}/
 
 ]
 
 /a
 
 /c:forEach
 
 c:forEach
 
 var=current
 
 varStatus=status
 
 begin=${param.start}
 
 end=${param.start + perPage - 1}
 
 c:if test=${status.first}
 
 ul
 
 /c:if
 
 lic:out value=${current}//li
 
 c:if test=${status.last}
 
 /ul
 
 /c:if
 
 /c:forEach
 
 --
 Alexandre Jaquet
 - Original Message -
 From: Jacky Kimmel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, March 06, 2003 9:22 PM
 Subject: paginator tags
 
 
 
  Does anyone know how to implement paginator tags? 
 Ie: you have a list of
 30 items out of 100.  You now want to display the
 next 30 and so on.
 
 
 
  Also, I am using application.resource for all
 labels.  I want to have a
 name with a trademark symbol as a superscript. 
 Anyone know how to do this?
 
 
 
  -
  Do you Yahoo!?
  Yahoo! Tax Center - forms, calculators, tips, and
 more
 
 
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



validating input fields which are not required

2003-03-06 Thread Ashish Kulkarni
Hi
I am using struts 1.1b3 and struts validator to
validate input from user, 
I have a numeric field which is not required , but if
the user enters some value in this field then i need
to validate that field,
how do i do that, 
I have the following defination and i get error saying
field is required even thought i have not mentioned
required in depends, 


field property=input4 depends=double
arg0 key=web0063/
/field


Ashish

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: validating input fields which are not required

2003-03-06 Thread Ashish Kulkarni
Hi James,
Thanx i was using the old validation-rules.xml file

Ashish
--- James Turner [EMAIL PROTECTED] wrote:
 Make sure you're not using the validation-rules.xml
 from an earlier
 release of Struts, where the rules had required
 implicit in them.
 
 James
 
  -Original Message-
  From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, March 06, 2003 4:43 PM
  To: [EMAIL PROTECTED]
  Subject: validating input fields which are not
 required 
  
  
  Hi
  I am using struts 1.1b3 and struts validator to
  validate input from user, 
  I have a numeric field which is not required , but
 if
  the user enters some value in this field then i
 need
  to validate that field,
  how do i do that, 
  I have the following defination and i get error
 saying
  field is required even thought i have not
 mentioned
  required in depends, 
  
  
  field property=input4 depends=double
  arg0 key=web0063/
  /field
  
  
  Ashish
  
  __
  Do you Yahoo!?
  Yahoo! Tax Center - forms, calculators, tips, more
 
 http://taxes.yahoo.com/
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: Exceeding sessions on load test

2003-03-06 Thread Ashish Kulkarni
Hi
what application server are u using, does it use
servlet2.3 specifications, if yes u can use the
session listener to find out when the session was
created and destroyed
http://www.javaworld.com/javaworld/jw-01-2001/jw-0126-servletapi-p2.html

Ashish

--- [EMAIL PROTECTED] wrote:
 Hi,
   I'm running iPlanet Web server on NT with Struts
 1.0
   I'm facing this problem where the number of
 sessions goes beyond the
 1000 session limit during load test. We are
 invalidating sessions during
 logout. The load test has at the most 35 concurrent
 users. I confirmed that
 the session is being invalidated at logout. Is
 struts creating a session
 somewhere after logout?
   So i'm not sure why we are running out of sessions.
   Any ideas?
   I am guessing one possible reason could be that the
 web server is
 not reaping sessions quickly enough after we have
 invalidated them.
   Is there any way, in which i could print out the
 count of sessions
 as the load test proceeds?
 
 Thanks,
 Gaurav
   
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



problem with vaidation of numeric field

2003-03-05 Thread Ashish Kulkarni
Hi,

I have to validate a double field for input using
struts validator,
The problem is, in some places comma , is used
instead of decimal . in double field, like
123.45 is same is 123,45 
but in second case struts gives an error saying
invalid double field, 
can i make the existing validation work (double)or
will have to write my own validation for it

Ashish



=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



[OT] need help in regex expression

2003-03-05 Thread Ashish Kulkarni
Hi,

I have to validate a double field, which can be
negative or positive, has max 4 digits in integer and
max 2 digits after decimal, 
I have the following regex which handles some cases
but need help to make it work in all casses

\b[\d]?[\d]?[\d]?[\d]?\b[\.,]?[\d]?[\d]?
it works in
1234.56
123.45
2334
0.34
but does not work 
.34

and also i want it work for
-123.45
+234.45

Can any one suggest a way to modify expression or
write it in better way

Ashish



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



struts validation question

2003-03-04 Thread Ashish Kulkarni
Hi,
I have 3 questiona about handling validation in struts
1.1b3, using dyna form and using validation.xml

Q1, Suppose i have to validate date for 3 different
format depending upon a value set in sessio, so if the
value of fomrat is '1' date format is  dd/MM/yy, if
'2' date format is MM/dd/yy and  '3' date format is
yy/MM/dd
Also how to use mask for field entry

Q2, Validating numeric field, for '.' and ',' for
decimal values, like in US . is used for decimal
while  in france , is used for decimal value is
double. so how do i validate depending upon local, or
using a value set in session, like if the valus is '1'
then the valid decimal is . and if the vaus is 2
the valid decimal is ,

Q3, Is there a way to validate number of digits before
decimal and after decimal, 
like valid value is 123.23 but not 12.323

Any code or defination in validation.xml will really
help, 
Do i have to write custom validtor for above
requirements or is there a way to do it in struts

Ashish







__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [OT] how do people work in project with one server for development

2003-02-28 Thread Ashish Kulkarni
Hi,

I am working on websphere on AS400, and so cannot have
each developer a seperate test enviornment, 

Although we develop all the code on NT, test it and
put it on AS400, bt there is some code which works on
AS400 only, 
but anyway, we come to a conclusion that, only one
developer works with this part which is AS400 specific
along with other development and others will work on
NT, and we wrote some classes which help us in working
on both envoirments..
Ashish
--- Chappell, Simon P [EMAIL PROTECTED]
wrote:
 The test server in WSAD is not a full version of
 WAS. It does not handle db connections and some
 aspects of EJBs very well, not to mention that it is
 single server, so there is no way to test
 multi-server code.
 
 All told, don't rely on the quasi-WAS in WSAD ...
 get a real version of WAS or an open source/free
 application server instead.
 
 Simon
 
 -Original Message-
 From: Gerhard Poul
 [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 9:23 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [OT] how do people work in project
 with one server for
 development
 
 
 If you have WSAD on your workstation where is the
 problem with 
 just using
 the WAS development license that was installed with
 it?
 
 Chappell, Simon P [EMAIL PROTECTED]
 wrote in message

news:[EMAIL PROTECTED]
 
 
 -Original Message-
 From: Mark Galbreath
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 06, 2003 9:42 AM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] how do people work in project
 with one server for
 development
 
 
 I don't know how IBM licenses WebSphere, but when
 we were
 faced with this
 problem we decided to go with BEA's WebLogic
 because BEA gave us great
 discounts for instances running on our own
 workstations, which
 created a
 development environment like you describe with
 Tomcat.
 Perhaps you should
 have shopped around before chaining yourselves to
 Big Blue?
 
 If only it were that simple. Some of us get WAS
 handed down to 
 us from a
 being so far up the corporate ladder that it still
 has frost 
 on it. This
 same breather of rarified air, then also decides
 that once 
 you're using WAS,
 you should naturally use WSAD for your IDE. Oh ...
 and they're 
 going to lock
 down workstations, so that you can't install free
 stuff on there to use
 instead.
 
 Welcome to Corporate America. Please leave your
 innovation at 
 home, it will
 not be required at the office.
 
 Mark
 
 snip
 
 Simon
 
 
 
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



[OT] Applet and Calendar class

2003-02-28 Thread Ashish Kulkarni
Hi,
I am developing a applet which will be used by clients
all over the world, in this applet i have to use
calendar class to do lot of date calculations.
I am using Calendar.getInstance() to get the instance
of calendar, 
I want to know if this will create problem , as the
server will be in USA, and clients at other places...
so the default vacations etc will be different
according to client locations...
any suggestion, comments 
Ashish

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



where do i get info for setting the logging level in struts1.1.b3

2003-02-25 Thread Ashish Kulkarni
Hi,

I want to set the log message level to error , so i
dont get all the debug messages. 
Is there a place where some steps or procedurs is
given to setup this level,
I am using log4j in my project and so have the
log4j.jar file in lib directory, does it affect it??



=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: where do i get info for setting the logging level in struts1. 1.b3

2003-02-25 Thread Ashish Kulkarni
Hi, 
Thanx for the info,
just wondering about the hint about losing $ sign in
my signature,why do u think so?

Ashish
--- Pani, Gourav [EMAIL PROTECTED]
wrote:
 Ashish, 
 
 You would have to create a log4j.properties file and
 load it with a Servlet
 on startup.  Information for this should be
 available here:
 http://jakarta.apache.org/log4j/docs/manual.html.
 
 You can then set your logging level with the
 following line in your
 properties file.
 
 # Logger for apache classes to exclude basic debug
 messages
 log4j.logger.org.apache=ERROR, LoggerType
 
 
 
 PS:  Not so subtle hint.  Consider losing the $
 signs in your signature.
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 11:21 AM
 To: [EMAIL PROTECTED]
 Subject: where do i get info for setting the logging
 level in
 struts1.1.b3
 
 
 Hi,
 
 I want to set the log message level to error , so i
 dont get all the debug messages. 
 Is there a place where some steps or procedurs is
 given to setup this level,
 I am using log4j in my project and so have the
 log4j.jar file in lib directory, does it affect it??
 
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



struts 1.1b3 , getting lot of messages in out file

2003-02-24 Thread Ashish Kulkarni
Hi,
I am using struts1.1b3 and in my web.xml i have set
the debug message level to 4, but still i get a lot of
messages in my out file, most of the messages i get 
are from PropertyMessageResources.java,
I also use Log4j for my project and the message level
for it is set to 1, does it affect struts messages
also??

here is an example of few messages
2003-02-24 17:09:08,486 DEBUG [Thread-5]
util.PropertyMessageResources
(PropertyMessageResources.java:321) -   Saving message
key '.toolslaunch.option3
2003-02-24 17:09:08,486 DEBUG [Thread-5]
util.PropertyMessageResources
(PropertyMessageResources.java:321) -   Saving message
key '.web0096
2

Here is my definition in web.xml
servlet
servlet-nameaction/servlet-name
   
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valuecom.pfizer.maps.maps/param-value
/init-param
init-param
  param-nameconfig/param-name
 
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value4/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup3/load-on-startup
  /servlet

Ashish




=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: struts 1.1b3 , getting lot of messages in out file

2003-02-24 Thread Ashish Kulkarni
Hi,
where is this log4j properties file in struts??
i thought only i have to give the message level in
web.xml file??

Ashish
--- Ashish Kulkarni [EMAIL PROTECTED]
wrote:
 Hi,
 I am using struts1.1b3 and in my web.xml i have set
 the debug message level to 4, but still i get a lot
 of
 messages in my out file, most of the messages i get 
 are from PropertyMessageResources.java,
 I also use Log4j for my project and the message
 level
 for it is set to 1, does it affect struts messages
 also??
 
 here is an example of few messages
 2003-02-24 17:09:08,486 DEBUG [Thread-5]
 util.PropertyMessageResources
 (PropertyMessageResources.java:321) -   Saving
 message
 key '.toolslaunch.option3
 2003-02-24 17:09:08,486 DEBUG [Thread-5]
 util.PropertyMessageResources
 (PropertyMessageResources.java:321) -   Saving
 message
 key '.web0096
 2
 
 Here is my definition in web.xml
 servlet
 servlet-nameaction/servlet-name


servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
   param-nameapplication/param-name
  
 param-valuecom.pfizer.maps.maps/param-value
 /init-param
 init-param
   param-nameconfig/param-name
  

param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value4/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 load-on-startup3/load-on-startup
   /servlet
 
 Ashish
 
 
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



problem in getting data from request

2003-02-20 Thread Ashish Kulkarni
Hi,
i have the following setup
I have Action class (PL1079DispatchAction) which
populates a DynaValidatorForm (PL1820DeleteForm)and
puts it in the request, and forwards to a jsp, this
jsp has a bean defined with request scope with the
same form which was set in Action class
(PL1079DispatchAction) so i get the values set in
DynaValidatorForm in my jsp, and then from this jsp  i
submit to another Action class (PL1820DeleteAction),
and in this Action class (PL1820DeleteAction) i want
the DynaValidatorForm(PL1820DeleteForm) set in my
first Action class (PL1079DispatchAction) in request, 
But in the second Action class(PL1820DeleteAction) i
dont get the values set in request in my first Action
class(PL1079DispatchAction), 
What wrong am i doing???
here are my definiations of in struts-config xml
!-- form bean for mapsForm --
form-bean name=mapsForm
type=org.apache.struts.validator.DynaValidatorForm
dynamic=true
  form-property name=nextpage
type=java.lang.String /
  form-property name=goto
type=java.lang.String /
  form-property name=select
type=java.lang.String[] /
/form-bean

 !-- form bean for Pl1820Delete --
form-bean name=PL1820DeleteForm
type=org.apache.struts.validator.DynaValidatorForm
dynamic=true
  form-property name=input1
type=java.util.ArrayList /
/form-bean

action name=mapsForm
type=com.pfizer.maps.action.planning.PL1079DispatchAction
validate=false
input=/pages/planning/PL1079Display.jsp
parameter=nextpage scope=request
path=/pages/planning/PL1079DispatchAction
  forward name=add
path=/pages/planning/PL1079Add.jsp /
  forward name=change
path=/pages/planning/PL1079Change.jsp /
  forward name=delete
path=/pages/planning/PL1079Delete.jsp /
  forward name=home
path=/pages/planning/PL1079Display.jsp /
/action

!-- action mapping for Pl1820Delete--
action name=PL1820DeleteForm
type=com.pfizer.maps.action.sop.PL1820DeleteAction
validate=false input=/pages/sop/PL1820Delete.jsp
scope=request path=/pages/sop/PL1820Delete
  forward name=success
path=/pages/sop/PL1820DispatchAction.do?nextpage=home
/
/action











=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




numeric field validation using struts

2003-02-20 Thread Ashish Kulkarni
Hi,

Has any one done inut validation of numeric fields in
struts, like i want to validate number of digits after
decimal or lenght of the numeric field
like the valid valus will be 123.34, but 1234.4 is in
valid,
I am using dynavalidatorform , so would like some code
to put in validation.xml or in strutsvalidator

does any one have this kind of validation code,

Ashish

=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




RE: numeric field validation using struts

2003-02-20 Thread Ashish Kulkarni
Hi,
Do u have some examle of some website where i can find
information about using mask??

Ashish
--- Pani, Gourav [EMAIL PROTECTED]
wrote:
 couldn't you use a mask to do this?
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 11:48 AM
 To: [EMAIL PROTECTED]
 Subject: numeric field validation using struts
 
 
 Hi,
 
 Has any one done inut validation of numeric fields
 in
 struts, like i want to validate number of digits
 after
 decimal or lenght of the numeric field
 like the valid valus will be 123.34, but 1234.4 is
 in
 valid,
 I am using dynavalidatorform , so would like some
 code
 to put in validation.xml or in strutsvalidator
 
 does any one have this kind of validation code,
 
 Ashish
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




  1   2   3   >