shivam singhal

Ranch Hand
+ Follow
since Jul 15, 2012
shivam likes ...
Java Notepad Tomcat Server
ROORKEE
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
14
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shivam singhal

if you need individual parameter then

request.getParameter("ParameterName");

ParameterName would be seted in your JSP sending request to the servlet.
is a good option.
3 years ago
are you trying to disable browser's back button?
If yes, then this flashing is not due to your servlet but due to the Javascript code you have used.
3 years ago
hi sahil,

you can define <init-param> inside a servlet, which can be accessed from the same servlet like:
<servlet>
<servlet-name>abc</servlet-name>
<servlet-class>abc</servlet-class>

<init-param>
<param-name>n1</param-name>
<param-value>100</param-value>
</init-param>
</servlet>
Access : int x = getInitParameter("n1");

it can be accessed within the same servlet.

In your case you should use <context-param>
<context-param>
<param-name>n1</param-name>
<param-value>100</param-value>
</context-param>

Access : int i = getServletContext.getInitParameter("n1");

3 years ago
start learning Servlets and JSP by :
Head first servlet & JSP by kathy sierra and bert bates
3 years ago
Hii all

I already knows java programming language at a professional level like i had developed some web-apps for my startup.
But right now my project needs perl.
so, i want to learn perl now.

can you guys please suggest me the best book to learn perl. so, that i am able to solve critical work issues using perl script and i would be able to use my brain in develoiping the perl scripts.
please i need to be productive in perl As Soon As Possible.

so, please suggest me the book accordingly.

Thankls in Advance.
3 years ago
not resolved yet, please help..



I want c:set to display the id of a selected row (name for the above code), but it only gets the last row's (loaded) id. How to do that, please help..
jsp jstl
4 years ago
JSP
i am sorry bear bibeault for red text...
thanks for the reply, i am going to read about request params.. :)
4 years ago
JSP


code is working fine,

my problem : please check the red coloured lines in code above, here i want to send different value of res_pkey to my-offers according to the user selected row of the table, thats why i am using it in the anchor tag.
previously i tried : <c:set> but it updates its value during loading of the page and set it to the last row's value.

I want : when user select a row, only that perticular value should be given to tha my-offers

please help me, stucked in this, from half of the day.. please :)
4 years ago
JSP
so, is it a good approach to use <script> within <body>
4 years ago
JSP
ok .. thanks Bear Bibeault .. :)
4 years ago
JSP
this is my header.jsp




index.jsp :





footer.jsp


I am coding like this..
please correct me for my mistakes..

4 years ago
JSP
actually i am using bootstrap..
yes Bear Bibeault, you caught my feelings.. :)
and thanks Bear Bibeault, i think,i got my answer,,

what i done till now :
i create one header file , and import all the jqueries, javascripts in that page, and use <jsp:include> on each page because every page needs header, and with that header all the javascripts, jquery are also included in each page

and its a wrong way?
4 years ago
JSP
Ways are :

1. one way is that i put each and every script (javascript, jquery) in <head> of header file and import them using <jsp:include>

2. other way is not to use <jsp:include> and use the script file in <head> of each page .
i.e don't use <jsp:include>

which is the best?
4 years ago
JSP
yes, javascript files, jquery files ..
4 years ago
JSP
is it the best practice of placing all the scripts use in different pages to be placed in the header file??

I think no because if a page do not uses a particular script and it is still loading and wasting processing time and memory..
what is the correct way..
please correct me..
4 years ago
JSP