Are entry points to different URLs possible?

I have a typical gwt project, but I use some methods of rewriting URLs, such as URLs:

www.mysite.com/johndoe
www.mysite.com/janedoe

all get my main project.jsp file system. This works great when deployed.

When I run in hosting mode, this is a general bummer because changing the URL in the browser breaks the link with debugging in the hosting mode, so when I make changes to the source in eclipse and update, these changes are not shown right away. I need to recompile the application and restart, and we all know how long it will take.

Is there a way to somehow make the host-mode environment recognize that the same webapp is being served at these different URLs and just reconnect the debug connection?

We basically get:

http://localhost:8888/myproject.jsp?gwt.codesvr=192.168.1.2:9997

when starting the placement mode, I would like to:

http://localhost:8888/johndoe

to just connect to the debugger if possible.

thank

+3
source share
1 answer

Url:

?gwt.codesvr=192.168.1.2:9997

should appear in your url for the devmode plugin for "kick in". So, why not add a rule that "saves" this parameter when working in layout mode?

( GWT.isScript())

0
source

Source: https://habr.com/ru/post/1742621/


All Articles