Switching between Design and JSP tabs add code?

I am new to SJSC and I am taking the time to go through all of the little odds & ends of the IDE.
I was looking at:
http://blogs.sun.com/roller/page/tor?entry=computing_html_on_the_fly
And I decided to try this.
When I add the following in the JSP tab:
<h:outputText binding="#{Page1.tableHtml}" id="outputText1"/>Save.
Then click on the Design tab, then go back to the JSP tab, I now have:
<h:outputText binding="#{Page1.tableHtml}" id="outputText1"/>
<h:outputText binding="#{Page1.outputText1}" id="outputText1"/>It's late here, but this doesn't make any sense, why would switching between Design and JSP tabs add code?
Thanks,
--Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Girish: I followed these steps:
1.) Downloaded:
Sun Java Studio Creator 2, Multilanguage creator-2-windows-ml.exe 254.23 MB
2.) When I started the install, I received the message:
Welcome to Sun Java(TM) Studio Creator 2! You are installing: Sun Java Studio Creator 2 development environment Sun Java System Application Server Platform Edition 8.1 2005Q1 Update Release 2 Bundled database
3.) Installed version:
Product Version: Java Studio Creator 2 (Build 060120)
IDE Versioning: IDE/1 spec=5.9.1.1 impl=060120
Also, Under, the Palette window: Standard component list, there is a component labeled Output Text.
When placed on a jsp, the following code is produced:
<h:outputText binding="#{Page1.outputText1}" id="outputText1" style="position: absolute; left: 24px; top: 48px"/>Thanks,
--Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • JSF / Switch between HTTP and HTTPS

    Hello!
    I want to switch between HTTP and HTTPS using JSF.
    Under Apache Struts framework I can use struts extension "sslext.jar" to configure switching between http and https in one web application.
    e.g. Login-jsp should be secured, all other jsp's should run unsecured.
    Any ideas?
    regards
    Harald.

    Thanks,
    I made the necessary enhancement for the second phase, password confirmation required when return to SSL zone after leaving it after a succesful login.
    I did the following:
    1) create a class in the application scope and/or singleton class with the servlet paths that require SSL
    2) create a plugin that reads ActionConfigs from the ModuleConfig
    3) create a filter that sets a request scope flag that says that password must re-entered.
    Code Extracts:
    1) MainshopContainer application level parameter singleton class:
    private static HashMap sslZoneMap = new HashMap(50); // key = servlet path of request, example /login.do
    public boolean isInSSLZone(String servletPath)
    return this.sslZoneMap.containsKey(servletPath);
    public void addToSSLZone(String servletPath)
    this.sslZoneMap.put(servletPath,null);
    public int getNumberOfActionsInSSLZone()
    return this.sslZoneMap.size();
    2) Struts plugin
    add a call to loadSSLZoneMap in plugin init method:
    loadSSLZoneMap(config, mainshopContainer);
    private void loadSSLZoneMap(ModuleConfig config, MainshopContainer mainshopContainer)
    throws ServletException
    try {       
    ActionConfig[] actionConfigs = config.findActionConfigs();
    for (int i = 0; i < actionConfigs.length; i++)
    if (actionConfigs.getParameter().indexOf("/jsp/account/") < 0) // /account/* = URL path for SSL zone
    // not found = not ssl zone
    System.out.println("loadSSLZoneMap, following actionConfigs excluded from SSL Zone: "+actionConfigs[i].getPath());
    else
    // found = ssl zone
    String servletPath = actionConfigs[i].getPath()+".do";
    mainshopContainer.addToSSLZone(servletPath);
    System.out.println("loadSSLZoneMap, following servletPath added to SSL Zone: "+servletPath);
    System.out.println("loadSSLZoneMap, number of actions in SSL Zone: "+mainshopContainer.getNumberOfActionsInSSLZone());
    catch (Exception ex)
    ex.printStackTrace();
    throw new ServletException("Exception caught in loadSSLZoneMap: "+ex.toString()+" Initialization aborted.",ex);
    3)
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
    throws IOException, ServletException {
    HttpServletRequest req = (HttpServletRequest) request;
    HttpServletResponse res = (HttpServletResponse) response;
    String servletPath = req.getServletPath();
    boolean secure= this.mainshopContainer.isInSSLZone(servletPath);
    The wole picture:
    The filter adds a RequestDTO object that includes all request parameters, one of them is the secure flag.
    I have a session scope class UserContainer that includes all the session parameters, one of them is the lastRequestDTO.(last made request)
    At the end of all my jsp's I set the lastRequestDTO variable.
    In that method I set the passwordConfirmationRequired flag if needed:
    public void setLastRequestDTO(RequestDTO _lastRequestDTO)
    if (this.lastRequestDTO != null && this.lastRequestDTO.isSecure() != _lastRequestDTO.isSecure())
    this.setPasswordConfirmationRequired(true);
    this.lastRequestDTO = _lastRequestDTO;
    I read the passwordConfirmationRequired in all my jsp's in the SSL zone that allow editing or deleting and if that flag is true, a valid password must be re-entered in order to make the updates.
    When the password is OK I reset the passwordConfirmationRequired to false.
    I need some help for the first phase, that is SSL setup for all actions related to jsp's with url path /account/*
    I tought I could define it in the web.xml:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>All Account Related Pages</web-resource-name>
    <url-pattern>/account/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    but that doesn't work and finnaly understood why:
    Example: /WEB-INF/jsp/account/login.jsp corresponds to /login.do
    The url pattern /account/* at the container level is never encountered.
    Is it allowed to declare the following action path: /account/login instead of /login?
    If yes I could add following prefix /account to all my action paths and forward paths and this could resolve my problem.
    What's your opinion?
    If no, would your library resolve this?
    Will all the Struts/JSP/JSTL url generating tags pick-up the required protocol (http/https) according to your configuration file?
    Regards
    Fred

  • When frequently switching between mobile and desktop view

    When I frequently switching between mobile and desktop view I have to open the layers every time since they get closed/collapsed. Adobe may need to fix it for the next version.

    You can use CTRL+# to switch between Code and Design View.
    By the way, this is the Dreamweaver Application Development forum which deals with questions about using server-side scripting languages like PHP or ColdFusion. General Dreamweaver questions should be posted in the regular Dreamweaver General Discussions forum.
    And while I´m at it: please use descriptive headlines such as "how to switch between Code and Design View" for your posts -- mentioning your screen name "Goula129" is not helpful to other users.

  • 7344 servo motion switching between open and closed loop operation

    I have a custom end-of-line test system presently using a 4-axis 7344 servo controller to perform various functional tests on small, brushed DC motors. The system is programmed in C/C++ and uses flex motion functions to control the motor during testing. Motors are coupled to external encoder feedback and third party PWM drives running in closed-loop torque mode from an analog command signal. The system uses all four motion axis channels on the 7344 board to independently and asynchronously test up to four production motors at a time.
    In closed-loop mode, the system runs without issue, satisfying the battery of testing protocols executed by this system. I now have a request to add additional test functionality to the system. This testing must be run in open loop mode. Specifically, I need to use my +/- 10v analog output command to my torque drive to send different DAC output levels to the connected motor.drive while monitoring response.
    I do not believe the flex motion library or 7344 controller includes functions to easily switch between open and closed loop mode without sending a new drive configuration. I am also under the impression that I cannot reconfigure one (or more) servo controller axis channels without disabling the entire drive. As my system runs each axis channel in an asynchronous manner, any requirement to shutdown all drives each time I change modes is an unworkable solution.
    I am open to all ideas that will allow asynchronous operation of my 4 motor testing stations. If the only solution is to add a second 7344 controller and mechanical relays to switch the drive and motor wiring between two separately configured servo channels, so be it. I just want to explore any available avenue before I place a price tag on this new system requirement.
    Bob

    Jochen,
    Thank you for the quick response. The 7344 board does an excellent job running my manufacturing motor assemblies through a custom end-of-line tester in closed loop mode. A portion of the performance history and test result couples the motor through a mechanical load and external shaft. The shaft is in contact with a linear encoder that closes my servo loop.
    My new manufacturing requirement is to also sample/document how the small DC motor behaves in open loop operation. Your solution is exactly what I need to perform the additional functional tests on the product I am manufacturing. I see no reason why this cannot work. I was originally concerned that I would need to reinitialize the 7344 board after changing axis configuration. Initialization is a global event and impacts all four channels on the 7344 board.
    Using flex_config_axis() to change axis configuration on a single channel without disturbing other potentially running axis channels will solve my concern. It will be several weeks before I can return to the manufacturing facility where the 7344-based testing machine is located. I will update this thread once I verify a successful result.
    Bob

  • Dynamic switching between stacked and non-stacked detail groups?

    Hi guys,
    Is it possible to dynamically switch off/on stacking of detail groups?
    I would like to give the user the option to switch between stacked and non stacked
    Regards
    Bar
    JDev: 10.1.3.2
    JHS: 10.1.2.26

    Yes and No. No because it is not supported out-of-the-box by JHeadstart, yes because you can do this post-generation and then move the custom code to JHeadstart templates.
    However, it is not a trivial thing to build, you can try the JDeveloepr forum for any help, we can help you with moving the post-generation code to custom templates, since that is the JHeadstart-related part of your question.
    Steven Davelaar,
    JHeadstart Team.

  • Switching between https and http requests

    Hi,
    Our application is built using ADF 10.1.3
    This application need to be integrated with an in house built single sign on system. ( SSO system is built in C# and .NET)
    This single sign on system only understand https request. Once user is validated against single sign on system, our application's authorization page is called in HTTPS mode. Once the user is authorized, he is forwarded to home page. While forwarding to home page, we want to convert the HTTPS request to HTTP.
    Currently once the user is authenticated, all requests are happening in HTTPS mode.
    We do not know how to make http request from existing https requested page.
    Any help is appreciated.
    Thanks
    Ranajit

    Hi,
    the way to do this is by redirecting the call from a PhaseListener or command button. The solution Avrom refers to is a PhaseListener that uses XML configuration file to determine whether or not the page you are navigating to requires https or http. The code that handles the protocol switch is printed below
      * Determines if the requested page requires SSL and if the current protocol
      * meets this need. If not the protocol is switched between http and https
      * @param viewId
      * @param pageRequiresSSL
      public void handleProtocolSwitch(String viewId, boolean pageRequiresSSL)
        ExternalContext exctx = FacesContext.getCurrentInstance().getExternalContext();
        boolean isSecureSSLChannel = ((HttpServletRequest)exctx.getRequest()).isSecure();
        // pages that require SSL and SSL is on, or pages that don't require
        // SSL but SSL is on and should be kept
        if (pageRequiresSSL && isSecureSSLChannel || !pageRequiresSSL && isSecureSSLChannel && isKeepSSLMode) {
        printDebugMessage("Page requires SSL = "+pageRequiresSSL+", channel is secure = "+isSecureSSLChannel+", is keep SSL = "+isKeepSSLMode);
        printDebugMessage("No protocol change required");
        // page requires SSL and SSL is not active. Switch to SSL.
        if (pageRequiresSSL && !isSecureSSLChannel) {
          printDebugMessage("Page requires SSL = "+pageRequiresSSL+", channel is secure = "+isSecureSSLChannel);
          printDebugMessage("Protocol change required to use https");
          switchToHttps(viewId);
        // switch to HTTP is page doesn't require SSL and channel isn't secure
        // and isKeepSSLMode is false
        if (!pageRequiresSSL && !isKeepSSLMode && isSecureSSLChannel) {
          printDebugMessage("Page requires SSL = "+pageRequiresSSL+", channel is secure = "+isSecureSSLChannel+", is keep SSL = "+isKeepSSLMode);
          printDebugMessage("Protocol change required to use http");
          switchToHttp(viewId);
        if (!pageRequiresSSL && !isSecureSSLChannel) {
          printDebugMessage("Page requires SSL = "+pageRequiresSSL+", channel is secure = "+isSecureSSLChannel);
          printDebugMessage("No protocol change required");
      * Switches from https to http using a redirect call
      * @param viewId
      private void switchToHttp(String viewId) {
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext exctx = facesContext.getExternalContext();
          ViewHandler vh = facesContext.getApplication().getViewHandler();
          String pageURI = vh.getActionURL(FacesContext.getCurrentInstance(), viewId);
          //redirect to http URL
          String remoteHost = getHostNameFromRequest();
          printDebugMessage("Switch to http on host "+ remoteHost);
          try {
              String port = httpPort.equalsIgnoreCase("80") ? "" : ":" + httpPort;
              String url = "http://" + remoteHost + port + pageURI;
              printDebugMessage("Redirecting to http URL "+ url); 
              //TODO check request Map
               this.printDebugMessage(" Content size of RequestMap before redirect "+exctx.getRequestMap().size());
              exctx.redirect(url);         
          } catch (IOException e) {
              printDebugMessage("Redirect to http port failed "+ e.getMessage());
      * switches to https using a redirect call
      * @param viewId
      private void switchToHttps(String viewId) {
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext exctx = facesContext.getExternalContext();
          ViewHandler vh = facesContext.getApplication().getViewHandler();
          String pageURI = vh.getActionURL(FacesContext.getCurrentInstance(), viewId);
          //redirect to https URL
          String remoteHost = getHostNameFromRequest();
          printDebugMessage("Switch to SLL/https on host "+ remoteHost);
          try {
              String port = httpsPort.equalsIgnoreCase("443") ? "" : ":" + httpsPort;
              String url = "https://" + remoteHost + port + pageURI;
              printDebugMessage("Redirecting to https URL "+ url);       
              //TODO check request Map
              this.printDebugMessage(" Content of RequestMap before redirect "+exctx.getRequestMap().size());
              exctx.redirect(url);         
          } catch (Exception e) {
              printDebugMessage("Redirect to http port failed "+ e.getMessage());
      * @return the hostname of the page request
      private String getHostNameFromRequest() {
          ExternalContext exctx = FacesContext.getCurrentInstance().getExternalContext();
          String requestUrlString = ((HttpServletRequest)exctx.getRequest()).getRequestURL().toString();
          URL requestUrl = null;
          try {
              requestUrl = new URL(requestUrlString);
          } catch (MalformedURLException e) {
              e.printStackTrace();
          String remoteHost = requestUrl.getHost();
          return remoteHost;
      }If your container doesn't support session sharing between http and https then the session is renewed. In OC4J you will have to configure this.
    Frank

  • Unable to switch between txt and Facebook

    After the 8.1 update I can't switch between txt and Facebook anymore. Not sure if its something I'm doing wrong but I used to have a button in each contact that allowed me to txt them or send it to their Facebook inbox. I no longer have that button, yet I have group set to on. Does anyone know if this was removed with the new update or I'm missing something out. Thanks Donna
    Solved!
    Go to Solution.

    I would agree that removing the facebook/social media integration is a definite step back. Microsoft reasons that with the new implementation it will be easier for 3rd part developers to fill this gap, I personally think this was a bad design choice and found that this functionality specifically was great and very useful.
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • I have the kindle app on my I pad.   How do I eliminate books I've already read?  On a regular kindle, you can switch between cloud and device but I am not getting that option.  Thanks

    I have the Kindle app on my I pad
    I want to eliminate the books I've already read (I have a LOT).
    On the regular kindle you can switch between cloud and device but that is not working on my I pad.
    HELP.
    Thanks

    The Kindle app has a menu on the very bottom center of the screen that allows you to switch from a device and cloud view. To remove a title from the device, tap and hold on it. a pop menu will apear that allows to add the title to a collection, remove it from the device, or download it from the cloud (depending on its current status).

  • Juggle between jstl and jsp!

    I have a list of items and whose size is obtained by jstl as follows:
    <c:set var="num" value="${fn:length(form.namesList)}"/>I have to find the number of blocks using jsp and I am trying as follows which is giving jspException.
    <%int numCols = (int)Math.ceil( num / 10.0);%>Can anyone tell me the problem over here?
    I need to use numCols to display my results using jstl as follows:
    <c:forEach var="y" begin="${1}" end="${numCols }">
    </c:forEach>Can juggle between jstl and jsp like this?

    This depends on the version of JSP you are using:
    If you are using JSP 2.0 (like Tomcat 5), make sure you have downloaded and installed JSTL 1.1 and set the web.xml up to use the Servlet 2.4 specs. Then the code you wrote should work.
    If you are using JSP 1.x (like Tomcat 4 and below), make sure you have JSTL 1.0. Then you can only use EL (the Expression Language used to translate ${...} expressions) inside JSTL.
    If you want to use EL inside your custome tags, look through the Apache Jakarta sight. Somewhere they have an ELExpression translator (a couple of classes actually - whose full names I forget). These classes will let you take the ${...} expressions in as strings, pass them through the translators and get the correct objects back out.
    Or you could go a simpler root:
    <mob:whatever object="test" name="newname" />
    then in your custom tag:
      MyType test = (MyType)pageContext.findAttribute(object);
      test.setName(name);

  • How to quickly switch between straight and curly quotes?

    I've recently moved from a Windows XP machine with MS Office to a Mac Pro with Pages.
    For the kinds of documents I typically work on, sometimes I need to have straight quotes, and sometimes curly quotes. With MS Word, I was able to create a couple of macros that would switch these preferences for me. With these macros linked to an icon in the toolbar, switching between straight and curly quotes was as easy as clicking a button.
    Now I'm looking for a way to do this -- or something like it -- with Pages.
    I know how to switch back and forth using the preferences menu, of course, but I'm looking for something quicker and simpler, since I often have to make this change several times a day.
    Can Automator do something like this? Or is there another way?
    -- Eric

    Turn off the auto correction and you can type Curly quotes with:
    left single ‘ option ]
    right single ’ option shift ]
    left double “ option [
    right double ” option shift [
    If you want the French quotes « and » they are option and option shift |
    Peter

  • Can't switch between  fill and outline.

    Here's the problem: I'm on an iMac, new, trying to use illustrator CS5. after using CS3 for a few years. In CS5, if I draw a shape, flat, in the illustration, then try to give it an outline, or change the outline, or do anything with the outline, I can't. If I click on the Shape tools in the toolbox and draw out an oval, for example, I can switch between outline and fill without any problems. Select shape, go to toolbox, select curved arrow for switching from one to the other. That's it. But if I draw a freehand shape, then try it, i can't do it. THIS IS A BIG CHANGE FROM PREVIOUS VERSIONS OF THE APP. GET IT? What is the problem? If it's something I have done, fine, tell me and I'll fix it. I tried calling Adobe support in Bangalore, and it took 30 minutes just to get the problem thoroughly appreciated by the techies. They just couldn't get the idea for half an hour! I had to go over it 4 or 5 times. And they couldn't come up with an answer. they were no help at all. I'm hoping the forum will yield better results. This is pathetic, guys. Your 90-day tech support is a worthless piece of crap, guys. The only tech support we have is this catch-as-catch-can forum. I've been using Illustrator since 1987, (illustrator 88) believe it or not, it's true. And I've always been able to get tech support to cure the ills. Not any more. Is that the way Adobe plans to offer tech support? if there were a way to contact Adobe Tech Support by going around Adobe Bangalore, i would use it. But, alas, I am stuck with this.

    Dear Monika and Mylenium: I figured out part of the problem, but not the solution: The shape I had drawn -and coudn't  switch between fil and stroke on-is one I had already done a gradient mesh on, too. I had later abandoned the gradient mesh by using the option key to delete mesh lines, but that didn't take the shape all the way back to its original flat state. So it wasn't a plain drawn shape any more. So how do I release the gradient mesh  to get back to  a flat shape? I'm also having trouble keeping the shapes in RGB or CMYK mode-they keep defaulting back to greyscale. Could that also be a symptom of using gradient mesh? Note: I'm using gradient mesh for the very first time now; I've never used it before. It seems to leave a lot of unexpected baggage behind. I would send a screen shot, but if I start up Grab or Voila, all the AI pallets go away, and that's half the information.  So how do I control gradient mesh?

  • Is it possible to install Lion on the second hard disk on my Mini (2010) Snow Leopard Server, and switch between Lion and Snow Leopard? I like those voices Lion has in speech.

    Is it possible to install Lion on the second hard disk on my Mini (2010) Snow Leopard Server, and switch between Lion and Snow Leopard? I like those voices Lion has in speech.

    When baltwosaid NO emphatically, that was described as CORRECT ANSWER. Ditto in the caeses of the radically different answers from  Camelotand Matt Clifton
    Could it be that CORRECT ANSWER needs better defining by Apple?
    That apart, yes, switching might involve rebooting. About the voices, well, I was the other day adding voice to a commentary in a video I was working on. There's only American English accent in SL — Lion I believe has British ones as well.
    Why not, I wondered, try to install Lion purely for academic interest, maybe with an SD card (Sandisk Ultra II, 16GB) as Tom Nelson says is possible at http://macs.about.com/od/macoperatingsystems/ss/Perform-A-Clean-Install-Of-Os-X- Lion-On-Your-Mac.htm

  • Is there an easy way to switch between ehternet and wifi connection without having to disconnect the ethernet cable?

    Hi All
    Was wondering if there is an easy way to switch between ethernet and wifi connection on Apple TV without having to disconnect the ethernet cable. The reason I ask is that I find it quicker to use my ethernet connection via a Netgear Powerline Home Theatre Set-up to stream Trailers and Movies on the Apple TV, however this is no good when connecting directly to my Mac to stream music or TV shows in iTunes, so revert to the wifi connection that I created on my Time Capsule to do this.
    Would be handy if Apple TV had a menu option where you could manually change the connection type depending on what you were doing, as per above scenario.
    Cheers
    Brett

    brettfromseabrook wrote:
    Hi All
    Was wondering if there is an easy way to switch between ethernet and wifi connection on Apple TV without having to disconnect the ethernet cable.
    Unfortunately not.

  • Unable to switch between 3g and 4g on my Lucid

    After an update a week or so ago, my LG Lucid has completely lost the functionality of switching between 3g and 4g. As 4g is a battery hog I kept it mostly on 3g (but not always) and since the update , I am stuck on 3g. Took it to the Verizon store for a techie to look at it and he was stumped. I used to access thru "settings" - "about phone" - "network" - "network type and strength" , which brought me to some toggles where I could choose the network best suited to what I was doing. Now this screen is gone completely and only shows signal strength. The techie suggested a factory data reset, which would not only erase all my items from my phone, but if it did provide 4g service, I would now be stuck all the time on that. I told the tech guy I would wait for a fix to this. My question is, are there others out there with this problem or is there a fix for it. I contacted LG and they said they have had no updates to the phone. Is Verizon denying the problem or even working on it ?????

    I have a related issue with my LG Lucid. It tends to get stuck in 3g in areas that I know are 4g. A phone restart usually takes care of it but it sure is a pain to do that. If that fails then a battery remove/replace fixes it. Neither are good options but worth considering while we wait for an update.
    There are several 3g/4g switch free apps available too but none that say they support Lucid. I found that 3G/4G On/Off (Toggle 3G) by JuYeo! Oh works well to turn on 3g when the Lucid doesn't do it but I haven't found a way to turn on 4g.

  • Do I need to reset the router when switching between Win and Mac?

    I just set up my new Mac Pro with OSX 1.5.2 and Win XP using Bootcamp and it all works fine, but I have one question about connecting to the internet.
    I have a Belkin pre-N wireless router. I am connected using an ethernet cable.
    When I switch between OSX and Windows by restarting the computer, is it necessary to restart the router while the computer is off so that when it comes back on it can locate its proper connection?
    When I was working on my old PC and my new Mac Pro, I noticed that if I just took the ethernet cable from the Mac or PC and connected it to the other machine, it couldn't find the internet unless I turned off the router, waited a moment and turned it back on again, connected to the other machine and then started the machine.
    As the two OSs are now in the same machine, will this continue to happen or can I simply switch between operating systems without having to re-initialize the router and connect it before turning on the computer again?
    I haven't tried it yet because I am afraid to screw things up, so I am continuing to turn off, restart the router, re-connect and turn the computer on again. That work perfectly but it is tedious.
    Can anyone please advise on whether this is necessary or not?
    Thanks a lot for any advice.

    Luis:
    You should be able to leave the router on and switch between the two OSes. Try it. Worst thing that can happen is that you would need to restart the router.
    Axel F.

Maybe you are looking for