Keith - Personal Site
About Me
The Person
·
·
·
·
·
·
·
·
Projects
Graffiti
·
 
·
Graffiti has been shut down. -kap
                                          
Printer Friendly Version
Testing

Intro ] File name space ] [ Info.java-tester ]
MenuIcon ] MenuPartial ] cookie-Info ]
current-file-list ] empty-content ] file name underscore ]
filewriter ] random-Test ] testingFileWriter ]
word-fun ]

Directory Name Space ] [ Directory+Name+Plus ] [ Directory-Name-Dash ] [ Old ] [ Up: Kapow ]

This tests and compares functionality provided in kap.web.Info with JSP object stuff. All references to "this" is the servlet which responds to the HTTP request that prodeced this page.

Info.java stuff

Info.ContentName ( request ) = Info.java-tester.jsp

Info.ContentName ( request, this ) = Info.java-tester.jsp

Info.GetDefaultContent() = index.html

Info.GetDefaultContent ( request, this ) = index.html

Info.LocalContext ( request ) = /projects/kapow/testing/

Info.LocalContextURL ( request ) = /projects/kapow/testing/

Info.ContentPath ( request ) = /projects/kapow/testing/Info.java-tester.jsp

Info.ContentPath ( request, this ) = /projects/kapow/testing/Info.java-tester.jsp

Info.ContentPathURL ( request ) = /projects/kapow/testing/Info.java-tester.jsp

Info.ContentPathURL ( request, this ) = /projects/kapow/testing/Info.java-tester.jsp

Info.RootPath ( this ) = /home/kap/public_html

List of files in this dir
Info.GetDirList ( request, this ) =

  • .#
    • 7
  • Directory Name Space
    • -1
  • Directory+Name+Plus
    • -1
  • Directory-Name-Dash
    • -1
  • File name space.txt
    • 1
  • Info.java-tester.jsp
    • 0
  • MenuIcon.jsp
    • 0
  • MenuPartial.jsp
    • 0
  • cookie-Info.jsp
    • 0
  • current-file-list.jsp
    • 0
  • empty-content
    • -1
  • file_name_underscore.txt
    • 1
  • filewriter.jsp
    • 0
  • icon
    • -1
  • index.html
    • 0
  • index.jsp
    • 0
  • localdirmenu
    • -1
  • localmenu
    • -1
  • old
    • -1
  • random-Test.jsp
    • 0
  • testingFileWriter.txt
    • 1
  • title.txt
    • 1
  • word-fun.jsp
    • 0

List of content files in this dir
Info.GetContentList ( request, this ) =

  • File name space.txt
  • Info.java-tester.jsp
  • MenuIcon.jsp
  • MenuPartial.jsp
  • cookie-Info.jsp
  • current-file-list.jsp
  • empty-content
  • file_name_underscore.txt
  • filewriter.jsp
  • index.html
  • random-Test.jsp
  • testingFileWriter.txt
  • word-fun.jsp

request stuff

request.getRequestURI() = /projects/kapow/testing/index.jsp

request.getContextPath() =

request.getServletPath() = /projects/kapow/testing/index.jsp

HttpUtils stuff

HttpUtils.getRequestURL ( request ) = https://keithpray.org/projects/kapow/testing/index.jsp

servlet stuff

this.getServletContext().getRealPath ( Info.LocalContext ( request ) ) = /home/kap/public_html/projects/kapow/testing/

testing file system stuff

Making new file from Info.RootPath ( servlet ) [/home/kap/public_html] + Info.LocalContext ( request ) [/projects/kapow/testing/] :
file exists: true
# files: 23


by: Keith A. Pray
Last Modified: January 27, 2010 4:58 PM
© 2010 - 1975 Keith A. Pray.
All rights reserved.

Current Theme: 

Kapowee Hosted | Kapow Generated in 0.009 second | XHTML | CSS