Set Parameter

Ads

 
 

Share on Google+Share on Google+

Mukti
Set Parameter
2 Answer(s)      9 years ago
Posted in : JSP-Interview Questions

Hi, could someone please explain the process of setting parameter in the session from JSP with the help of code? Thanks!

Ads
View Answers

March 9, 2008 at 1:33 PM


Hi,
In your JSP page use the Set Tag, and set the scope attribute to session.

Example of set tag
<s:set name="personName" value="person.name"/>
Hello, <s:property value="#personName"/>. Good Morning!!!!

Description of Set Tag ? Set Tag is used to assign a value to a variable in a specified scope.



March 9, 2008 at 3:45 PM


Thanks!

Ads









Related Tutorials/Questions & Answers:
Set Parameter - JSP-Interview Questions
Set Parameter  Hi, could someone please explain the process of setting parameter in the session from JSP with the help of code? Thanks!  Hi,In your JSP page use the Set Tag, and set the scope attribute
Set Date Parameter to get specific value
Set Date Parameter to get specific value  How to set the date parameter or fetch a specific data records based on date? For example fetching the two or three months old records
Advertisements
Init Parameter
Init Parameter  How set Init Parameter in servlet
JPA setParameter (Numbered Parameter)
the setParameter. Here, we will see setParameter to set a numbered parameter. We are going to develop an example code to use the numbered parameter... JPA setParameter (Numbered Parameter)  
Java method final parameter
Java method final parameter   .... In the example the radius parameter for calculating the area of circle have been set to final. This means double type radius is no more a variable
SQL Out Parameter
SQL Out Parameter       SQL Out Parameter allows the stored procedure to the pass data value ... from SQL Out Parameter .In this Example we create a procedure 'abc
Java parameter passing
Java parameter passing  What type of parameter passing does Java support
validate parameter before using it
validate parameter before using it   How to validate the parameter before using it in JSP
Passing Parameter - JSP-Servlet
Passing Parameter  Hi, it'me again. Below is the set of code that I get from your solution entitled droplist that read from database. It do read from..., there's var answer. I need to pass this parameter back into the jsp part, how should i do
how to pass the parameter in callable statement
how to pass the parameter in callable statement  calstat=conn.prepareCall("{call studentrc(?,?,?,?,?)}"); // it show error parameter value is null... Regno int(6)) begin UPDATE studentrecords set studentname=sname,mark1
pass parameter names and values
pass parameter names and values  What is the <jsp:param> standard action?   The <jsp:param> standard action is used with <jsp:include> or <jsp:forward> to pass parameter names and values
optional parameter of Test annotattion
optional parameter of Test annotattion   What are two optional parameters of @Test annotation ?   The Test annotation supports two optional... parameter, timeout, causes a test to fail if it takes longer than a specified amount
SQL Out Parameter
SQL Out Parameter       SQL Out Parameter allows the stored procedure to the pass data... an example from SQL Out Parameter .In this Example we create a procedure 'abc
optional parameter of Test annotattion
optional parameter of Test annotattion   The Test annotation supports two optional parameters. The first, expected, declares that a test method should throw an exception. If it doesn't throw an exception or if it throws
Passing Parameter - JSP-Servlet
Passing Parameter  I would like to ask how to pass a parameter from javascript section into the jsp section.It will be something like this: function change() { var answer = document.getElementById('selc').value
Passing a parameter using URL string
Passing a parameter using URL string  How to pass a parameter using the URL string in a JSF application
parameter meta data - JDBC
parameter meta data   i wnts to know about the finition of parameter in jdbc as well as the diffrent methods used in parameter meta data  Hi friend, public interface ResultSetMetaData An object that can be used
JSP Session Parameter rewrite
JSP Session Parameter rewrite       In the section you will study about the session parameter... to set the time out for each session. removeAttribute() method is used
Parameter Tag:
Parameter Tag:       bean:parameter...) of the specified request parameter. This tag retrieve the value of the specified request parameter and define the attribute of  type String or String[] in page scope
Static Parameter
a JavaBean to set and get the static parameters. Each static parameter has a value... Static Parameter       In this section, we... (in the application's struts.xml ). Set the name(s) and value(s) as shown below: code
Version of com.laamella>parameter-source dependency
List of Version of com.laamella>parameter-source dependency
PHP add parameter to url - PHP
PHP add parameter to url  need an example of parse_url in PHP. Thanks in advance
JPA setParameter (Named Parameter)
JPA setParameter (Named Parameter)   ... API's method setParameter as a named parameter. JPA Query API's supports two... Here we are going to develop an application for using the named parameter
SET and SELECT
SET and SELECT  hello, What is difference between SET & SELECT in sql????   hii, SET : The set statement is used to the update query. SELECT : The select statement is used to display the all data's in the table
passing parameter from html to applet
passing parameter from html to applet  how to pass the following from HTML to applet in Java code - font size,font style,font size?give me suitable code
Set interface
Set interface  hello,, What is the Set interface?   hii, The Set interface provides methods for accessing the elements of a finite... is the example of Set Interface in Java. import java.util.*; public class
JPA Positional Parameter
JPA Positional Parameter       In this section, you will learn about the JPA Positional Parameter... the value in parameter. So, We don't have use the same query for different values
pass parameter - file - Java Beginners
pass parameter - file  Hi, I want to pass paramter file to method. how it is possible. please send me example programs.   Hi Friend... immediately. file.jsp ========== File Parameter Use
passing .properties file as a parameter to another function
passing .properties file as a parameter to another function  passing .properties file as a parameter to another function in an jsp file
passing .properties file as a parameter to another function
passing .properties file as a parameter to another function  passing .properties file as a parameter to another function in an jsp file
passing .properties file as a parameter to another function
passing .properties file as a parameter to another function  passing .properties file as a parameter to another function in an jsp file