General discussion

Locked

changingIPAdd,PortNodynamicallyinservlet

By sankar_2209 ·
I'm calling a servlet from another servlet by passing the IPaddress and Port Number in the embedded html form tag in the calling servlet.
I want to change the IP Address and port number
dynamically without having to compile the calling servlet again.How do I do it?Is there any way I can store the IPAddress and portno in a file so that I can change there and use that in the calling servlet

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

changingIPAdd,PortNodynamicallyinservlet

by zeshanzia In reply to changingIPAdd,PortNodynam ...

Your problem is that you need dynamic data in your first servlet right?

1. You can use HTML forms to read data from user.
2. You can use standard java techniques to read from file. Use standard IO techniques.
3. If you adopt the second method do it with Properties file and respective class api.

Collapse -

changingIPAdd,PortNodynamicallyinservlet

by sankar_2209 In reply to changingIPAdd,PortNodynam ...
Collapse -

changingIPAdd,PortNodynamicallyinservlet

by sankar_2209 In reply to changingIPAdd,PortNodynam ...

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums