0

How we can get list of local pc printers by java servlet running on other machine.

The web application running on Development server, i want to read the list of printer where the application is accessing.

Thanks in Advance.

1 Answers1

0

Your servlets cannot directly access local network. If you want to identify them you will need another program which can communicate with your local printers. You might need to write a simple printer identification program and then let that data access to your servlets. Other than this there is no way you can directly interact with printers with servlets.

Juliyanage Silva
  • 2,529
  • 1
  • 21
  • 33
  • Could you please let me know how can we call applet inside servlet. How can we initialize applet using servlet. – Yugandhar Gali May 17 '18 at 04:25
  • @YugandharGali, you cannot directly invoke as I know but you need to check that. But definitely your printer program can update a db table periodically and from that you can access the table from servlet. – Juliyanage Silva May 17 '18 at 04:29
  • @Silva, Thanks for reply. The problem is i dont know the client machine, which will access the application. If can initialize the applet on servlet access will get list of printer on client. Here is the challenge. How the printer program auto initializes to store printers in DB. – Yugandhar Gali May 17 '18 at 04:39
  • @YugandharGali, So you are saying that you dont have access to your local computers..? then this solution is not the thing you need to apply – Juliyanage Silva May 17 '18 at 04:44