default.htm / default.json in subfolders

0
0

Can I move the default.html in a subfolder?

For example:

http://localhost/virtualdirectory1/SUBFOLDER1/default.htm

 

If I do it Wisej does not find the resources. Not found:

http://localhost/virtualdirectory1/SUBFOLDER1/resource.wx/init?_sc=1504017369976

 

Another question: Can I move the default.json in a subfolder?

  • You must to post comments
0
0

I don’t remember what the problem with subfolder was, I have to check and let you know.

  • Mark
    • Mark
    • Aug 30, 2017 - 7:15 am
    Thanks, I’m waiting for you!
  • You must to post comments
0
0

Thank you for the reply.

I think the limit is too restrictive.

Especially in migration cases (or sharepoint context), subfolders are essential. Do you plan to introduce them in the upcoming releases? it could be an initialization parameter, for example in the “Main” program.

The goal would be to include “wisej.wx” in the pages in subfolders.

It would be great that it was configurable runtime, when initializing the application (both html and json)

  • You must to post comments
0
0

No, it’s like web.config. Subfolders are used by the application for content.

But, withj Wisej you can have sub-applications: see https://wisej.com/docs/html/Configuration.htm  Last section, OK we can write a bit mora about it 🙂

Practically, you can have additional .json and html files in the same project or the same folder. Each json file is an application. For example:

\Default.json and Default.html => http:\\localhost

\Admin.json and Admin.html => http:\\localhost\admin

and so on.

In Admin.json you can setup a different startup method (i.e. Admin.Main) or reuse an existing one. Or you can setup a different main window. Or you can simply change the startup url, you can reuse Default.html and maybe add an argument, or use a different one like Admin.html.

This is how we manage the demo server. We simply upload using ftpzilla a new MyCoolDemo.json/MyCoolDemo.html and /bin/MyCoolDemo.dll. And that’s it. The server will automatically respond to http://server/MyCoolDemo

HTH

 

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.