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



Home Answers Viewqa Struts Protect JSPs from direct access

Have Programming Question? Ask it here!
 
 
 


Clark
Protect JSPs from direct access
1 Answer(s)      3 years and 8 months 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 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
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
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
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
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
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
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
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
Sending error code to access log of tomcat server from Action class
Sending error code to access log of tomcat server from Action class  How to send an error code (500) to access log file when we get null value in an if condition in Action class? Is anyone aware of this! Thanks
retrive the data from access database to drop down list box in jsp
retrive the data from access database to drop down list box in jsp  hai, im new to jsp now im using the jsp along with access database.in table i load all the data's i need to retrive the data from database to dropdown list box
How to access Contacts from gmail using LDAP in JSP dropdown list
How to access Contacts from gmail using LDAP in JSP dropdown list  HI, I am creating a JSP page in which i have to make a dropdown box, and access gmail contacts in that drop downlist using LDAP. Can any one plz help me out
Select Employee and display data from access database in a jtable
Select Employee and display data from access database in a jtable  I... a employee's name from a comboBox and the jtable will be filled with all... name of the customer is stored in a access database. Below is how it should
Add Items in JComboBox from Access Database - Java Beginners
Add Items in JComboBox from Access Database  Heelo Sir I want To add ittem in JComboBox which is stored in Access Database. plz Help Me Sir... = DriverManager.getConnection("jdbc:odbc:access"); Statement st=conn.createStatement
How to Open Picture From M.S. Access Database using Java Servlet ?
How to Open Picture From M.S. Access Database using Java Servlet ?  Hi all my Friends I have below code which insert a picture into M.S. Access Database But i m still not able to open this picture through Java using M.S. Access
Access all the fields from table through JSP
Access all the fields from table through JSP... data from the specified table. Before running this java code you need.... This is first jsp page that has a link 'show data from table', which displays all
Access data from mysql through struts-hibernate integration
Access data from mysql through struts-hibernate integration  Hi friends, I am making a program in which I want to access data from mysql through struts-hibernate integration. My search command is working properly but my
JTABLE IS NOT RETIVING DATE FROM MS ACCESS........PLEZ PLEZ PLEZ HELP!!!!!!
JTABLE IS NOT RETIVING DATE FROM MS ACCESS   PLEZ help me to retrive date from access to jtable....... import java.awt.BorderLayout; import...; ResultSet resultSet; try { String query="Select * from
how to write jsps and databasetables,umldiagrams in fuelmanagement system project
how to write jsps and databasetables,umldiagrams in fuelmanagement system project  how to write jsps and databasetables,umldiagrams in fuelmanagement system project
How to check long buffer is direct or not in java.
How to check long buffer is direct or not in java. In this tutorial, we will discuss how to check long buffer is direct or not in java. LongBuffer API... whether this buffer is direct or not. Code import java.nio.
Spring Security Authorized Access with Customized Login from Database
Spring Security Authorized Access with Customized Login from Database In this section, you will learn about authorized access with customized login from database using Spring Security. Sometimes you need to secure your page from
how to delete specified coloumn from database(MS Access) by using windows application
how to delete specified coloumn from database(MS Access) by using windows application  how to delete specified coloumn from database(MS Access) by using c# windows application
Access properties of bean from request object using OGNL.
Access properties of bean from request object using OGNL. In this section, we will introduce you how to access beans properties from request object using OGNL expression language.  1-index.jsp <%@page language="
How to Protect against the Penguin Update
. To protect your website from the penguin update or to recover from the lost ranking
Direct jsp coding for gmail login page and to open mail
Direct jsp coding for gmail login page and to open mail  DEAR SIR, i'm urgently in need of jsp coding to create login page of gmail and to open mail
Please Provide the direct Downloadable source code for better understanding
Please Provide the direct Downloadable source code for better understanding  Hello Roseindia Team, This is Mohammed Vaseem. Am very much impressed.... I kindly request you to please provide the direct downloadable source code so
Access Specifiers and Access Modifiers
Access Specifiers and Access Modifiers  What are Access Specifiers and Access Modifiers
how to retrieve the id value itself from the access database to drop down listbox in jsp
how to retrieve the id value itself from the access database to drop down listbox in jsp  how to retrieves the id which is an int datatype, from access database to drop down list box in jsp...plz send the code for that.....plz
How To Display both image and data into Swing JTable which is retrieved from ms access database
How To Display both image and data into Swing JTable which is retrieved from ms access database  So far this is my code how can i display both image and data from database.. while (rs.next()) { Vector row = new Vector(columns
Advertisements
 

 

 

DMCA.com