Xpages

can anyone give me simple answers to these questions.

  1. what’s the difference between a page and an xpage?

  2. how do i reference an xpage with a url?

ie if my xpage is called home and my db is called web.nsf would the url be domain/web.nsf/home?openxpage

Subject: Simple…

Ad. 1. what’s the difference between a page and an xpage?

A ‘Page’ can contain static text/HTML, computed values (thus no fields!)

An ‘XPage’ can aggregate data from different databases/views/documents, can act sort of as a Java Servlet, can post data (when the user saves something) to different documents/views/databases etc.

Ad. 2. how do i reference an xpage with a url?

http[s]://your-server-or-ip[:port]/path/database.nsf/xpage-name.xsp[?query-string-parameters…]

meaning that your URL would be:

http[s]://your-server-or-ip[:port]/web.nsf/home.xsp

You can always try to preview your XPage in the Notes client or using the browser (which will show you the URL)

Subject: simple indeed

thanks, it’s much to figure out how to use something when you know what it is.

good explanation.