[GeoNetwork-devel] Download function in class implement Service!

Hi all!
Help me how to create function download any file in one folder root web!
Thank you!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Download-function-in-class-implement-Service-tp5206966.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Everybody help me!???

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Download-function-in-class-implement-Service-tp5206966p5207059.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Good morning Kenzon,

I guess that your question is not so GeoNetwork-related. Do you want a hack so all content of your war is accessible from the outside? That’s a very ugly hack and will cause severe security problems. For example: leaving your passwords visible to the public.

What are you really trying to do?

Regards,
María.

···

On Fri, May 22, 2015 at 9:35 AM, kenzon <duc.humg@anonymised.com> wrote:

Everybody help me???


View this message in context: http://osgeo-org.1560.x6.nabble.com/Download-function-in-class-implement-Service-tp5206966p5207059.html

Sent from the GeoNetwork developer mailing list archive at Nabble.com.


One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi María Arias de Reyna-2!
  I used Jasper Reports to created reports, Function download using for
download file reports .pdf(doc) after created by JasperReports by user!
Thank you!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Download-function-in-class-implement-Service-tp5206966p5207079.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

On Fri, May 22, 2015 at 10:43 AM, kenzon <duc.humg@anonymised.com> wrote:

Hi María Arias de Reyna-2!
  I used Jasper Reports to created reports, Function download using for
download file reports .pdf(doc) after created by JasperReports by user!
Thank you!

Hi,

Then, depending on what version of GeoNetwork you are using, you probably
want to use spring for this.

For example:
http://stackoverflow.com/questions/13614475/output-a-stored-file-from-a-folder-filesystem-with-java

Don't forget to put security checks so user can't download outside your pdf
folder! Also, it would be good to do cron cleanups of your folder to
prevent your filesystem to be filled.

Regards,
María.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Download-function-in-class-implement-Service-tp5206966p5207079.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Thank for your reply!
    I used your example but i call not Response(HttpServletResponse
response) in my class implement Services!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Download-function-in-class-implement-Service-tp5206966p5207163.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.