SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 90 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

Also, it is often required to limit access to some pages to make them
secure, and the standard security solutions often work by limiting access to a
certain subdirectory. Let's see how we can create a directory structure in our
Tapestry application.
Say we want to have a subdirectory named \secure, and put some pages with
sensitive content into it.
First of all, create such a subdirectory in the appropriate directory of your IDE
(Web Pages or WebContent). Then create a template for a new page, let it be named
Payment.tml, and put it into the \secure subdirectory.
In order not to worry about having the Tapestry namespace right, I find
it convenient to copy an existing page template in Project Explorer or
Project view, depending on the IDE you are using. Then paste it into a
directory where you want to have a new template??”say \secure, and
change its name and contents as you wish.
The contents of the new template can be as simple as this:


Payment Page


Payment Page


Some payment functionality goes here.



Back to the Start page




Chapter 3
[ 71 ]
Next, right-click on the com.


Pages:
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6