Priya Rangan

Greenhorn
+ Follow
since Sep 17, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Priya Rangan

hi all,
I have some data in (name, value) pairs that i would like to store in a map. I would like them to be sorted in the order in which i put the values in the map. For example if i have:
resultMap.put( q, "3" );
resultMap.put( b, "4" );
resultMap.put( a, "1" );
So, if i iterate over the keys or values of i map, i would like to retrieve them in the same order as i put them in the map( that is: q,b,a )
How can i impose this order?
Thanks very much in advance...
Priya
21 years ago
Erik,
Does specifying a url mapping of <url-pattern>/*.jsp </url-pattern> invoke your servlet?
21 years ago
hi,
i quote this from 'core Servlets and JSPs' by Marty Hall. I hope it makes things clear to you.
-----------------------------------------------
Although a servlet can forward the request to arbitrary locations on the same
server, the process is quite different from that of using the sendRedirect
method of HttpServletResponse (see Section 6.1). First, sendRedirect
requires the client to reconnect to the new resource, whereas the forward
method of RequestDispatcher is handled completely on the server. Sec-ond,
sendRedirect does not automatically preserve all of the request data;
forward does. Third, sendRedirect results in a different final URL,
whereas with forward, the URL of the original servlet is maintained.
21 years ago
Thank you both very much.
Garann, if i used your suggestion of something like <a href="index.jsp?coffeeshops.jsp">click</a> and then have a script for onload, wouldnt this cause index.jsp to be reloaded all over again ( and hence even the top frame ) for every jsp called?
If this is the case, then it wouldnt suit me very much since i have a graphical display on the top frame and i wouldnt want it reloaded every time.
hello,
I have a html which has 2 frames. the top one for some graphics and the bottom one for user interaction ( like searches etc ).
index.jsp: ->
<frameset
rows="318,*"
framespacing=0
frameborder=0>
<frame
scrolling="no"
noresize
marginwidth=0
marginheight=0
name="topFrame"
src="frame1.jsp?nodeCat=<%=request.getParameter("nodeCat")%>&nodeID=<%=request.getParameter("nodeID")%>">
<frame
name="bottom"
src="search_menu.jsp">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support
them.</p>
</body>
</noframes>
</frameset>
I start the application by saying :
http://localhost:8080/src/index.jsp and the url remains the same for any jsp pages called in the bottom frame.
I would like the url in the address bar to be updated with whatever jsp i call in the bottom frame. How do I do this? I know I am missing something. I also have a ControllerServlet that dispatches tasks to different jsps.
Thanks very much in advance,
Priya.
Thank you all very much for your inputs.
21 years ago

Originally posted by Ilja Preuss:
Your name-value pairs sound a little bit like a java.util.Map to me. Do you need a particular sorting of the elements?


Ilja,
firstly, i had some troubles logging in and hence couldnt reply to you straight away.
i do not need any sorting on my elements. in that case, is it a good idea to use java.util.map?
Also, could you please tell me the difference between the list.arraylist and the list.linkedlist implementations?
thanks very much.
Priya.
21 years ago
Jai, thanks a lot for that!!
21 years ago
JSP
hi,
I would like to implement in Java what would be an array of structures in 'C'. Basically I have (name,value) pairs that I have a huge array of. How can I implement this using the "LIST" interface in Java?
Please help.
Thanks,
Priya
21 years ago
Hi all,
What is the best way to call a servlet from a JSP page?
Here is what I want to do: I have a JSP page on one end and an EJB on the other. I want to inert a sevlet in between that would make a call to the EJB methods and do some processing before the results are displayed .
Please help.
Thanks,
Priya
21 years ago
JSP