Discussion Board

Results 1 to 2 of 2

Thread: QWebView

  1. #1
    Registered User atonical's Avatar
    Join Date
    Apr 2008
    Posts
    105
    Can QWebView be used to load local jsp pages? I have tried and it seems that it can only load local html files, but not jsp pages.

    this doesn't work
    ui->webView->load(QUrl("qrc:/testhtml/test.jsp"));

    this works.
    ui->webView->load(QUrl("qrc:/testhtml/test.html"));

  2. #2
    Registered User ravi4frenz's Avatar
    Join Date
    Apr 2010
    Posts
    32
    usually a browser cannot interpret jsp files as html files.. but the tomcat or any other servver will convert those jsp codes into relevant html files so that the browser can display.. But I think atleast this code will try to save it as jsp files itself.. if downloading a file can be done using the load method..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved