Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Struts Protect JSPs from direct access
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Clark
Protect JSPs from direct access
1 Answer(s)      4 years and a month ago
Posted in : Struts


How to Protect JSPs from direct access ?


Advertisement
View Answers

November 20, 2010 at 1:08 PM


Hi friends,

JSPs located in the WEB-INF and its sub directories are protected from outside access. If you want to go page1.jsp from page2.jsp

Code:

<html:link action="gotoPage2">Go to Page 2</html:link>

in the struts-config.xml Code:

<action path="/gotoPage2" parameter="/WEB-INF/page2.jsp"
type="org.apache.struts.actions.ForwardAction"/>

Thanks.



Related Tutorials/Questions & Answers:
Protect JSPs from direct access
Protect JSPs from direct access  How to Protect JSPs from direct access
Direct Access of PDF
Direct Access of PDF  Hi During the security audit of my project ,i got an case in report dat is no one can access the pdf file without login.I have no's of pdf in a folder,but problem is this any1 can open the pdf by knowing
Advertisements
DIRECT ACCESS USING URL SHOULD NOT PERMIT
DIRECT ACCESS USING URL SHOULD NOT PERMIT  if someone know the url... just want to revoke the user from such type of action i mean until he enter... me help USING LOGIN I DONE THIS BUT PROBLEM WITH DIRECT URL ADDRESS HE/SHE CAN
ACCESS DATABASE FROM HTML
ACCESS DATABASE FROM HTML  I want to access sql 2008 database in html page without help of ADODB connection.. because if access through ADODB means there is a security problem. so, Access database in html page(client side
Protect Special Characters.
Protect Special Characters.  How To Protect Special Characters in Query String
Direct Web Remoting
Direct Web Remoting       Direct Web Remoting is a framework for calling Java methods directly from Javascript code, Like SAJAX, can pass calls from Javascript into Java methods and back
versions of servlets and JSPs?
versions of servlets and JSPs?  can you tell me the all versions of servlets and JSPs
Migrating from mysql to MS Access
Migrating from mysql to MS Access  Hi I am hoping for some help I need to write a conversion program (SQL statements) to import existing data in a MYSQL database to a MS Access database. any suggestions would be appreciated
code for insert the value from jsp to access database
code for insert the value from jsp to access database  code for insert the value from jsp to access database
How can I protect my database password ?
How can I protect my database password ?   How can I protect my database password ? I'm writing a client-side java application that will access... passwords. The client will have access in one way or another to the class files
how to insert values from jsp into ms access
how to insert values from jsp into ms access   how to insert values using jsp into ms access database
How to access the Title tag from xml to jsp
How to access the Title tag from xml to jsp  How to access the Title tag from xml to jsp   Please visit the following link: http://www.roseindia.net/jsp/parsing-xml.shtml The above link will provide you an example
retreiving data from microsoft access database
retreiving data from microsoft access database  How can i retrieve data from microsoft access when i have select the vaules in combo box and text box. When i select these values... i want to retrieve the corresponding columns
Need to access data from another application
Need to access data from another application  Hi Tech masters, I want to develop a reporting application.for that I need to access data from a third party application. I want to access data from a software called service
How to access (MySQL)database from J2ME?
How to access (MySQL)database from J2ME?  I am new to J2ME. I am using NetBeans. Can anyone help me? How to access (MySQL)database from J2ME? ( I search a lot I found that there is need to access database through servlet
JSPs : Declarations
JSPs : Declarations This section contains the description of Declarations which is one of JSPs components. Declarations : This tag is used for defining the functions and variables to be used in the JSP. This element of JSPs
How to access data yearly from DB in C# ?
How to access data yearly from DB in C# ?  how to access data yearly from database in C#. I have code but i m not able to retrieve data yearly from... as Student_ID,payment FROM fee" + ses + " where date1='" + date1
How to access the following tag from xml to jsp
How to access the following tag from xml to jsp  How can i get the title where cat="1" and "My Title" from XML File?   Please visit the following link: http://www.roseindia.net/jsp/parsing-xml.shtml The above link
jfreechart display from access database data.
jfreechart display from access database data.  I have made a database... to retrieve the data from the access database using prepared statement and then display... is to be done in a servlet.. Note that it is a access made database. How can I
JSPs : Directives
JSPs : Directives This section contains the description of Directives which is one of JSPs components. Directives : A directives tag always appears... : For user-defined tags we use taglib directives. JSPs permits you to define
Extracting table from Access Database to Servlet
Extracting table from Access Database to Servlet  Sir, I have... show 900. I have written the query as : Select sum(h1) from expend where head_id...(); ResultSet res=stat.executeQuery("select SUM(ne) from expenditure1 where headid=H1
How To Protect Special Characters in Query String?
How To Protect Special Characters in Query String?  How To Protect Special Characters in Query String
access data from mysql through struts
access data from mysql through struts  I am Pradeep Kundu. I am making a program in struts in which i want to access data from MySQL through struts... { String str = "DELETE from emp where userId
jfreechart displaying chart from access database
jfreechart displaying chart from access database  I have these 2 codes. array.java----in which i retrieve the values from the database . import... * from cdottable where rollno=?"); ps.setString(1,""+rollno
access image from ajax store in mysql using jsp
access image from ajax store in mysql using jsp  access image from ajax store in mysql using jsp (code to access image captured by camera and store in mysql
display data from a table in Access Database in a HTML page
display data from a table in Access Database in a HTML page  how to display data from a table in Access Database in a HTML page in a Java Program
Design, develop and test JSPs
Design, develop and test JSPs...;   Design, develop and test JSPs Creating... for the file from the list of project folders (and subfolders
access
access   This is Nitha Sriram i am having a problem that, i am having a combo box in the JSP page when i select an item from that i am calling the onchange function. In javascript i am getting the value now i want to pass
Access container and server services from enterprise components
; Access container and server services from enterprise components... Access container and server services from enterprise components Prev Chapter 1. Design, build
to get picture from ms access database by jsp-servlet....
to get picture from ms access database by jsp-servlet....  I have inserted a picture in ms access data base,,,how we can retrieve that picture by using jsp
Protect to folder in webapps Tomcat - JSP-Servlet
Protect to folder in webapps Tomcat  Thanks for previous answer. my question is- I want to know how to protect the folder inside the webapps in tomcat. i want to give only war/jar file to client .how to do
Advertisements
 

 

 

DMCA.com