This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes display value in Struts jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "display value in Struts jsp page" Watch "display value in Struts jsp page" New topic

display value in Struts jsp page

smitha mano
Ranch Hand

Joined: Sep 26, 2005
Posts: 70
My history table contain field history varchar(1000)
in my DataBean class contains

String str1=myForm.getHistory();
String str2=str1.substring(0,100);

in my action class

MyForm myForm = (MyForm) form;
new DataBean().displayHistory(myForm);
return mapping.findForward("moreHistory");

here what i wanted

str2 value print on the jsp page
when i click on the History link page it will display first 100 characters of history

in my jsp page

<html:form action="" enctype="multipart/form-data">
<table width="42%" border="1" align="center">

<td><%=request.getAttribute(str2);%><html:link action="">more hostory>></html:link></td>


when i click on th emore history link, it will display in fully data in the jsp page

please help me
I agree. Here's the link:
subject: display value in Struts jsp page
Similar Threads
Problem in SessionManagement in Struts
Displaying file content in a jsp page
reading data from jsp page to another jsp page using request.getParameter
printing values
bean value persists on clicking back