Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Form bean

Reply
Thread Tools

Form bean

 
 
chitra_banu chitra_banu is offline
Junior Member
Join Date: Mar 2009
Posts: 9
 
      04-07-2010
i have a jsp page
it checks for emptiness for list say "tlist". the list holds java bean class property value say "employee.java"
if it is not empty jsp displays the property.


empname empid emprole ChangeRole
sss 1 Designer ChangeRole
Assistant

mmm 2 Desinger ChangeRole
Assistant

On click of the ChangeRole button the select tag value from the emprole has to pass to the action class with the empid to store the emp details

if the table has single row the value i change is getting updated...

If two or more rows there... it always updating the first row...

Form bean property value for emprole and id is always null...

please help me out..


i am using
 
Reply With Quote
 
 
 
 
pandiaraj_4u pandiaraj_4u is offline
Junior Member
Join Date: Mar 2010
Location: Chennai
Posts: 7
 
      04-07-2010
hi,
i think ur looping process for updation is in mistake...
if u dont mine plz post ur updation method here....


i will try to help....
Pandian....
 
Reply With Quote
 
 
 
 
chitra_banu chitra_banu is offline
Junior Member
Join Date: Mar 2009
Posts: 9
 
      04-07-2010
<logic:notEmpty scope="request" name="TcaseList">
<display:table name="requestScope.TcaseList" class="blackb" requestURI=" " id="TcaseList" pagesize="24" excludedParams="true">

<%
TmTcase tmtcase=(TmTcase)pageContext.getAttribute("TcaseLi st");

request.setAttribute("ICSID", tmtcase.getICSID());
request.setAttribute("JBPT", tmtcase.getJBPT());

request.setAttribute("caseDesc", tmtcase.getCSDSC());
request.setAttribute("caseId", tmtcase.getCSID());



tmtcase.setICSID(tmtcase.getICSID());
tmtcase = S3.loadTcaseDetails(tmtcase);
request.setAttribute("SICSID", tmtcase.getCSID());
%>

<display:column title="Requirement ID" property="REQID" sortable="true"/>
<display:column title="Scenario ID" property="SCNID" sortable="true"/>
<display:column title="Case ID" property="CSID" sortable="true"/>
<display:column title="Description" property="CSDSC"/>




<display:column title="Status" property="CSSTS"></display:column>
<display:column title="ChangeStatus">
<c:if test="${UserDetails.USRTYP=='DEVELOPER'}">
<select name="STAT" id="Row<%=i%>">
<option value="NOT VERIFIED">NOT VERIFIED</option>
<option value="VERIFIED">VERIFIED</option>
</select>
</c:if>
<c:if test="${UserDetails.USRTYP=='USER'}">
<select name="STAT" id="Row<%=i%>">
<option value="APPROVED">APPROVED</option>
<option value="REJECTED">REJECTED</option>
</select>
</c:if>
</display:column>

<display:column>
<html:submit property="method" onclick="javascript:return confirm('Press OK to Schedule this Release.')" value="ChangeStatus"/>
<input type="hidden" name="ICSID" value="<%=tmtcase.getICSID()%>"/>
</display:column>





================================================== =======

in on submitting changestatus button i want change the status like Approved when i change the select tag value it has to refresh the page and get updated..

please check is anyway to do this....
 
Reply With Quote
 
pandiaraj_4u pandiaraj_4u is offline
Junior Member
Join Date: Mar 2010
Location: Chennai
Posts: 7
 
      04-07-2010
i think that u cannot check that page get post back or not...
u just check page postback property and make update ....

eg:
<script>
var isPostback = ${pageContext.request.method == 'POST'};
</script>

or refer the following

htt://ww.servletsuite.com/servlets/postback.htm.....
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
useBean in JSP for bean within a bean kumar Java 1 02-13-2004 09:33 PM
[HELP] Bean Newbie: C++ library to Java bean. How? Takeshi Java 0 01-28-2004 11:36 AM
Differnce between Java Bean and Enterprise Java Bean Markku Salminen Java 3 01-21-2004 09:25 AM
can a session bean return a local entity bean object? David Thielen Java 2 09-12-2003 07:45 AM
To bean or not to bean... Benjamin Stewart Java 0 06-30-2003 12:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57