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 91 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

packtpub.t5first.pages package and choose to create
a new package. Name it com.packtpub.t5first.pages.secure. That is, add a
sub package with the name of the new subdirectory to the existing package for the
application's pages. Create in this new package a Java class named Payment??”a page
class for the new page. Leave this class empty.
Now we need a way to view the Payment page. Let's add another PageLink
component to the Start page:

Go to the secure Payment page

As you see, now we have appended the name of the subdirectory to the name of the
page. This is what is called the logical name of the page in Tapestry??”the name of
the page itself plus any additional directory structure within the application.
Run the application, and while you are still on the Start page, note the URL in
the browser's address bar, it should be something like http://localhost:8080/
t5first/. Now click on the Go to the secure Payment page link, and you should
see that page. Have a look at its URL??”http://localhost:8080/t5first/secure/
payment. You see that this URL contains the secure subdirectory in it. Now we
could easily use the Tomcat's built-in security features to authenticate everyone who
tries to access the contents of this subdirectory (you will find an explanation of how
to do this in any good book on Tomcat).


Pages:
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
stomatolog filmy online druk naklejek Hormann bramy garażowe Doradztwo prawne warszawa