×

Discussion Board

Results 1 to 2 of 2

Thread: QWebView

Hybrid View

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    105

    QWebView

    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
    Join Date
    Apr 2010
    Posts
    32

    Re: QWebView

    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
  •