[JSP] How to pass back ID to previous page.

Ads

 
 

Share on Google+Share on Google+

diajeng
[JSP] How to pass back ID to previous page.
0 Answer(s)      5 years ago
Posted in : JSP-Servlet

Hi experts, May I ask something. How to link a page to previous page which the content in previous page is selected from database where IDPRODUCT=". I don't know how to pass back the IDPRODUCT.

Suppose I have ViewProducts.jsp and ViewPhotosOfProduct.jsp. ViewProducts.jsp is displaying list of all products. The previous page from ViewProducts.jsp is displaying list of shop (called UKM here).

When user click a UKM, it linked to ViewProducts.jsp

<a href='lihatProduk.jsp?ID_UKM=" + rs.getString("ID_UKM") + "'title='Lihat Produk' class='icon-5 info-tooltip'</a>

Then at ViewProducts.jsp,

When user clicked one of them, it linked to ViewPhotosOfProduct.jsp is displaying a few photos (from all sides) from that product only.

at ViewProducts.jsp this is the code (combined with html button)

<a href='ViewPhotosOfProduct?ID_PRODUCT=" + "getID_PRODUCK" + "''title='ViewPhotosOfProduct' class='icon-5 info-tooltip'> <a href='updateProduct.jsp?ID_UKM="
                                        + rs.getString("ID_PRODUCT") + "''title='Edit' class='icon-1 info-tooltip'> <a href=javascript:confirmDelete('ViewProducts.jsp?delete=" + rs.getString("ID_PRODUCT") + "') 'title='Delete' class='icon-2 info-tooltip'> </td></tr>");

that is fine. But the problem is at ViewPhotosOfProduct.jsp. I add a button that linked back to ViewProducts.jsp but doesn't works. I tried this

 <a href='ViewProducts.jsp?ID_UKM=" + rs.getString("ID_UKM") 
          + "'> SEE ALL PRODUCTS </a>

But doesnt work.

Thank you before for your help.

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Tutorials   
Java Spring Hibernate Struts Training fat image from db fat image from db fat image from db fat image from db unable to get value returned from javascript variable in page How to change image size before adding to mysql using jsp Design a registration.jsp page with input for user registration details Cart Quantity jsp servlet coding issue servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? image pdf marking pdf marking Multiple image upload using JSP Read code from excel sheet and upload into database using JSP Student java about search engine Convert BLOB to PDF and save it to a location how to copy files from remote to local machine using SFTP SSL in java? Like Team viewer Socket and Servert -Jsp how to copy files from remote location to local using java? How To Store Multilple Images In MySQL database dynamically with image uploader and then retrieve them in image gallery using java how to create SOAP based web service in java? how to fetch data from mysql database table and draw a bar chart on that data using in jsp how to create users in LDAP using java? how to authenticate user using TIVOLI api in java? how to create users using IBM Tivoi API in jsp/servelet? Java/J2ee Please explain this code as many packages and classes are unknown to me .! how to download the uploaded folder files using jsp Login Query image is display from path of mysql database please reply the code to store dynamic fields in database? Reloading issue in jsp How to get Button Id ? calling one jap page from another jsp page login login Problem to get connection from DAO class to JDBC Page Loading Time Fix table's column's name row(1st row of the table) so that it does not move up when the table is scrolled up to view more rows below Sending hidden values

Ads

 
Advertisement null

Ads