Re: Help req urgently on file upload

2003-08-07 Thread Alok Tijoriwala
Hi,

I think you are using the old one. Please use
commons-fileupload.jar that comes with the 1.1
version.

Alok
--- bhanu sistla <[EMAIL PROTECTED]> wrote:
> HI 
> I am using structs upload.war but i am not able to
> deploy it. i am getting following error. 
>  
> java.lang.NoSuchMethodError
> at
>
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequ
> (CommonsMultipartRequestHandler.java:220)
> at
>
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:934
> at
>
org.apache.struts.action.RequestProcessor.processPopulate(RequestP
> essor.java:779)
>  
> Can any body tell me what are the other jars i have
> to use apart from 
> commons-fileupload-1.0.jar
>  
> please its very urgent. can some body give me quick
> response
>  
> Regards
> Bhanu
> 
> 
> -
> Want to chat instantly with your online friends? Get
> the FREE Yahoo!Messenger


__
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: uploadfile path

2003-08-14 Thread Alok Tijoriwala
Hi Yan,

I have been using the DiskFile with struts1.1. Works
fine. I would be glad if you can give me more details
on the problem.

regards
Alok
--- Yansheng Lin <[EMAIL PROTECTED]> wrote:
> I had a problem using DiskFile when upgrading to 1.1
> though.  Somehow you cannot
> convert/cast a FormFile to DiskFile anymore...  I
> think there was a post to dev
> list about this too.  It brings down your production
> code!!!
> 
> -Original Message-
> From: Alok Tijoriwala
> [mailto:[EMAIL PROTECTED] 
> Sent: August 6, 2003 9:33 AM
> To: Struts Users Mailing List
> Subject: Re: uploadfile path
> 
> 
> Hi Danielle,
> 
> You will have to use the DiskFile class which
> implements the FormFile interface.
>  In the struts-config.xml , your controller
> configuration should be as under:
> 
processorClass="com.abnamro.waf.struts.WAFRequestProcessor"
> tempDir="/upload" maxFileSize="10K"
>
multipartClass="org.apache.struts.upload.DiskMultipartRequestHandler">
>value="true"/>
>   
> 
> Regards
> Alok
> --- Dan Tran <[EMAIL PROTECTED]> wrote:
> > Folow the Struts upload example, you can trace
> thru
> > how Struts gets the
> > client file and upload to server where you have to
> > do extra work to copy
> > data from FormFile (its stream buffer)  to the
> your
> > choice of server
> > location.
> > 
> > -Dan
> > 
> > - Original Message - 
> > From: "Yansheng Lin" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'"
> > <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 06, 2003 8:18 AM
> > Subject: RE: uploadfile path
> > 
> > 
> > >  > enctype="multipart/form-data">
> > > 
> > > 
> > >
> > > theFile is type of FormFile.  You can go from
> > there.
> > >
> > > -Original Message-
> > > From: Daniel Massie
> > [mailto:[EMAIL PROTECTED]
> > > Sent: August 6, 2003 2:35 AM
> > > To: Struts Users Mailing List
> > > Subject: uploadfile path
> > >
> > >
> > > I am trying to upload a file using html:file
> which
> > is received as a
> > > FormFile, the problem is I need to find out this
> > files absolute path. Hwo
> > > can I retrieve this information?
> > >
> > > Thanks
> > > Daniel
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.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! 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: uploadfile path

2003-08-14 Thread Alok Tijoriwala
Hi Danielle,

You will have to use the DiskFile class which
implements the FormFile interface.
 In the struts-config.xml , your controller
configuration should be as under:




Regards
Alok
--- Dan Tran <[EMAIL PROTECTED]> wrote:
> Folow the Struts upload example, you can trace thru
> how Struts gets the
> client file and upload to server where you have to
> do extra work to copy
> data from FormFile (its stream buffer)  to the your
> choice of server
> location.
> 
> -Dan
> 
> - Original Message - 
> From: "Yansheng Lin" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'"
> <[EMAIL PROTECTED]>
> Sent: Wednesday, August 06, 2003 8:18 AM
> Subject: RE: uploadfile path
> 
> 
> >  enctype="multipart/form-data">
> > 
> > 
> >
> > theFile is type of FormFile.  You can go from
> there.
> >
> > -Original Message-
> > From: Daniel Massie
> [mailto:[EMAIL PROTECTED]
> > Sent: August 6, 2003 2:35 AM
> > To: Struts Users Mailing List
> > Subject: uploadfile path
> >
> >
> > I am trying to upload a file using html:file which
> is received as a
> > FormFile, the problem is I need to find out this
> files absolute path. Hwo
> > can I retrieve this information?
> >
> > Thanks
> > Daniel
> >
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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

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



RE: RE : Remote and local EJB

2003-08-21 Thread Alok Tijoriwala
Hi Viral,

As per my understanding containers are smart enough to
treat the invocation as remote or local. I know that
for IBM Websphere 5.0.

Typically the web layer and buisness layers are
separately deployed and so a very rare chance of
having a local interface for your EJB. And if the
communication is inevitable than its preferred using
normal Java Beans.

EJB-EJB communication may involve local interfaces for
certain highly couled EJB designs.

Regards
Alok

--- Shashank Dixit <[EMAIL PROTECTED]>
wrote:
> you mean you can mention these in ejb-jar.xml?
> How?
> 
> Shashank S. Dixit
> Software Analyst.
> Datamatics Ltd.
> Contact: 28291253 ext 146
> Mobile: 9820930075
> 
> Be brave against all odds. Never give up.
> 
> 
> -Original Message-
> From: Viral_Thakkar
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 3:35 PM
> To: [EMAIL PROTECTED]; Struts Users
> Mailing List
> Subject: RE : Remote and local EJB
> 
> 
> This seems to be good idea.
> 
> I think EJB configuration files may also help us to
> achieve the same.
> 
> 
> 
> -Original Message-
> From: Shashank Dixit
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 2:29 PM
> To: Viral_Thakkar; Struts Users Mailing List
> Subject: RE: RE : Remote and local EJB
> 
> You can have properties file where you can define
> which interface should you
> consider for calling EJBs. SO that you dont have to
> change your code to
> serve your purpose.
> Let me know what do you think
> 
> Shashank S. Dixit
> Software Analyst.
> Datamatics Ltd.
> Contact: 28291253 ext 146
> Mobile: 9820930075
> 
> Be brave against all odds. Never give up.
> 
> 
> -Original Message-
> From: Viral_Thakkar
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 11:30 AM
> To: Struts Users Mailing List;
> [EMAIL PROTECTED]
> Subject: RE: RE : Remote and local EJB
> 
> 
> If we know that EJBs and struts classes will reside
> in same JVM then why we
> should also invoke the stateless session bean
> remotely? We can invoke that
> session bean using the local interface... rite .?
> 
> Although I agree that in furure, we may deploy web
> and app classes on
> different machines, so that's why I am looking for a
> solution where we can
> take advantage of both local and remote interface of
> EJB.
> 
> I would say we should prefer the local EJB call
> instead of remote EJB call
> as far as possible.
> 
> Viral
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Shashank Dixit
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 10:29 AM
> To: Struts Users Mailing List; Viral_Thakkar;
> [EMAIL PROTECTED]
> Subject: RE: RE : Remote and local EJB
> 
> Hi Viral
> 
> Ideally there should be one stateless session bean
> within action class and
> business component EJBs so that you have only one
> remote call and all other
> EJB calls are local. You should always program
> considering different tiers
> on different machines, although you are using the
> web and app tier on same
> machine now. Let me know what do you think on this.
> 
> Shashank S. Dixit
> Software Analyst.
> Datamatics Ltd.
> Contact: 28291253 ext 146
> Mobile: 9820930075
> 
> Be brave against all odds. Never give up.
> 
> 
> -Original Message-
> From: Viral_Thakkar
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 9:40 AM
> To: Struts Users Mailing List; Piper, James D CECOM
> SEC EPS
> Subject: RE : Remote and local EJB
> 
> 
> Thanks Jim.
> 
> I am using the oracle 9iAS. I also developed the EJB
> which supports both
> remote and local access. I am also able to invoke
> this EJB from my action
> class. I accessed this EJB using the remote and also
> using local interface
> separately.
> 
> The reason why I want this EJB to be deployed both
> as local and remote is
> that at present EJB will be accessed by the struts
> action class, both are in
> same JVM so I can access the EJB using the local
> interface.
> 
> In future when we do clustering then at that time,
> EJB bean may be at
> different server, in different JVM, at that time
> struts action class should
> dynamically find the remote EJB.
> 
> One way I think, we can handle such situation in the
> catch block of the
> NamingException() while accessing the local bean, we
> need to lookup the
> remote EJB. But it seems that this is not the good
> programming practice.
> 
> So I am looking for some design pattern or
> framework, which supports the
> solution to this problem.
> 
> Thanks,
> Viral
> 
> 
> -Original Message-
> From: Piper, James D CECOM SEC EPS
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 20, 2003 7:49 PM
> To: Viral_Thakkar
> Subject: RE: RE : Remote and local EJB
> 
> So let me see if I understand what it is you are
> wanting to accomplish.  It
> sounds like you have a bunch of EJBs, a Struts
> application and several
> servers.  You would like http requests coming in to
> be 'evaluated' by your
> application and then based on some information
> within that