java - How to get the target url in my project? -


i have java webproject tomcat, java, jsp, servlet. when run project, call the webproject url example.

   http://localhost:8080//root/project?action=newedit&projectname=projekt01&priority=low  

now if submit url in browser , webserver(tomcat running of course) target url show me projectresult-site

and url looks this:

http://localhost:8080//root//projectresultlist?action=projectsearch&projectid=1 

now have project (only java project , not webproject) call url:

link = new java.net.uri("http://localhost:8080//root/project?action=newedit&projectname=projekt01&priority=low"); desktop.getdesktop().browse(link); 

the result project created well.

but want have target url, because in target url have projectid need:

http://localhost:8080//root//projectresultlist?action=projectsearch&projectid=1 

i don't know how target url in java project?


Comments