Muni Jampana

Greenhorn
+ Follow
since May 27, 2007
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 Muni Jampana

Thank you very much for all your help. I am new to JAVA and following a book which has got the code as out.print. As I go further I will be using scriplets.
I once again thank you for your guidance and help.

BYe,
Muni
16 years ago
JSP
Thank you very much li for your responce .. but

I can change it to the anchor tag.. but what I need to do is... I should be able to pass the Student_id to the servlet so that with the help of that ID I will be again retrieving the Student Record for editing.

I had created a SearchResultsPage.jsp where Students list will be displayed. I like to add an 'edit' Functionlity to that Page.. soo that if I want to edit particular student record(which will be a button or a hyperlink beside each student record) I should be able to do that.

Please Help me.. Thank you in Adavance.
16 years ago
JSP
Its there in <jsp:param name='sid' value='value1'>

GOT IT??
I hope soo
16 years ago
JSP
Sorry !!!
its
String str = (String)request.getParameter("sid");

Can you tell me how to make the page?
16 years ago
JSP
HI..
I need to create a page where a student list will be displayed. There will be a "edit" hyperlink beside each student record. When I Click on that I should be able to navigate to a servlet. Get the student ID so that I can dynamically populate student details in a text boxes for editing.

I am using the following code .. but in the 'str' value is 'null'.

JSP code in a scriptlet:

out.print("<a href='EditStudent.do'> edit</a>");
out.print("<jsp:forward page='EditStudent.do' >");
out.print("<jsp:param name='sid' value='<%=obel.Snumber%>' />");
out.print("</jsp:forward>");

In the EditStudent Servlet.
String str = (String)request.getParameter();


Please help me.
16 years ago
JSP
Hello thanks for your reply.
That is my JSP Page code in a scriplet

If its wrong can you guide me in building a Page,
Where after seeing my search results.. If I want to edit a student profile .. I should be able to click edit.. and edit his details in a different page.( I am just using servlets and JSP)

Thank you
16 years ago
JSP
Hello,

I am trying to do a page where I will be able to edit student record.
I am using Servlets and JSP.
There is a "SearchResultsPage.jsp" where the student results will be displayed. When I click on the edit link in the results... I should be able to pass the relavant student id to the servlet.

When I used the following code.. In the servlet when I code
request.getParameter("sid"); its giving null. Even I am not able to get the "edit" as hyperlink.

I am using the following code:

for(int i = 0;i<al.size();i++)
{
ElementaryStudents obel = (ElementaryStudents)al.get(i);
out.print("<tr>");

out.print("<td>");out.print(obel.getFirstname());out.print("</td>");
out.print("<td>");out.print(obel.getLastname());out.print("</td>");
out.print("<td>");out.print(obel.getAddress1());out.print("</td>");
out.print("<td>");out.print(obel.getAddress2());out.print("</td>");
out.print("<td>");out.print(obel.getCity());out.print("</td>");
out.print("<td>");out.print(obel.getState());out.print("</td>");
out.print("<td>");out.print(obel.getZipcode());out.print("</td>");
out.print("<td>");out.print(obel.getEmailID());out.print("</td>");
out.print("<td>");out.print(obel.getPhone_home());out.print("</td>");
out.print("<td>");out.print(obel.getPhone_business());out.print("</td>");
out.print("<td>");out.print(obel.getPhone_mobile());out.print("</td>");
out.print("<td>");

out.print("<jsp:forward page='EditStudent.do' > Edit");
out.print("<jsp:param name='sid' value='value1' />");
out.print("</jsp:forward>");

out.print("</td>");

out.print("</tr>");


}
%>


Hope someone will help me..
Thank you soo much
16 years ago
JSP
Thank you very much Brent it is working..
But I have a doubt.

When do we use bean efine? In which scenario?
16 years ago
Hello,
I am trying to build a search page for movie webite.. I am able to show the movie names when I search as links.
My requirment is when I clicked on the movie name I should be able to view the movie details. For which I used bean efine tag.

<logic:iterate id="result" name="searchform" property="arl">
<bean efine id="paramId" name="result" property="movie_id" />

<%params.put("passId",pageContext.findAttribute("paramId"));
pageContext.setAttribute("params",params);%>

<html:link action="/DisplayMovieDetails" name="params">
<bean:write name="result" property="movie_name" /></html:link>
</logic:iterate>

arl is my arraylist.
searchform is my formbean.
When I say Object requestId = request.getParameter("passId");
I am not getting the value:
my struts config is
<action path="/DisplayMovieDetails" type="magfa.actions.DisplayMovieDetailsAction" name="moviedetailsform" scope="request" input="/SearchResults.jsp">
<forward name="success" path="/MovieDetails.jsp">
</forward>

Please tell me the error in this. If possible help me doing this in anyother form.
Thanks
16 years ago