Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How to process JSP from Swing application

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

We currently have a web application (version control) through which users upload and download the files from server. Since it is a web application we are not able to make few restrictions at the client level. Hence we are planning to create a stand alone swing application which will act as an agent between the users and the web app. Instead of logging into web app, users need to login into swing application and when she/he selects the files and click download, swing app should call and process the JSP and return the response (success or failure) back to swing application so that swing application will notify the download and upload completion.

Note: Swing application should call and process the JSP and it should not open the JSP in browser. Since it is very old application upload and download logic is written in a servlet. Other logics like access restrictions etc. (database code) Is written in JSP itself.

Is there a way to do this?

Thanks,
Thanuja.
 
Saloon Keeper
Posts: 7110
165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A Swing app should not access JSP pages; those are meant for textual output. (Not unless you're planning on displaying the output of the JSP pages in an HTML browser widget, anyway.)

Consider using an alternative REST API for accessing the web site from within the Swing app.
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic