Struts Portlet Redirect Copyright © 2000-2006 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.

Slides:



Advertisements
Similar presentations
S.P.R.I.N.T v2.0 User Guide Infrastructure Access Feedback Survey.
Advertisements

Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Struts Portlet Adding an Action Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
Web Services Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
JSF Portlet Backing Beans and UI Components Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in.
Basic Response Letter Last Updated Basic Response Letter The response redesign in SERFF 5.6 introduces the concept of inline schedule item.
Trent’s ROMEO e-System
Course Planning Part II: Using BCeSIS In just a few simple steps, you can now enter your course requests directly into the school’s student information.
Liferay, SSO and LDAP - Integration Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
Apache Tomcat Server Typical html Request/Response cycle
ECE356 – Database Systems Lab 1 – Building a Web Project with NetBeans Tiuley Alguindigue Lab Instructor – University of Waterloo, E & CE Dept. Fall 2013.
Introduction to Liferay Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Struts Portlet Database Interaction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
Basic Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
JSF Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Themes & Layout Tutorial Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
End User Administration (in context of Liferay CMS) Copyright © 2006 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or.
Ext Environment Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Transforming the e-Concordiensis Edward Maas Senior Capstone Design Project Advisor: Professor Cass.
Copyright© 2003 Avaya Inc. All rights reserved Upgrade to Communication Manager 2.0 with Migration to Linux 8.0 Purpose: This presentation was prepared.
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
Ext Environment Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Basic Setup Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Struts J2EE web application framework “ Model 2 ” Model View Controller Controller Servlet Key features XML metadata Struts taglib Simplified form validation.
Simple MVC. An example: join.jsp
How to Build a Struts Application with JBuilder 9.
Damian Tamayo Tutorial DTM Data Generator Fall 2008 CIS 764.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Course Materials Management System And The New Student Portal.
LDAP Authentication Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
WSRP Portlets Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
JSR 168 Overview Copyright © 2000 – 2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
SOML Large Optics Daily Reporting Guide to using the new ETSEDMS server for Large Optics Daily Reporting.
Creating Programs on UNIX This term you can create programs on UNIX or you can create programs using a C++ compiler on your PC. This set of slides steps.
Content Management System Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
JSP Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
User Administration Guide Copyright © 2006 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Visual Basic for Application - Microsoft Access 2003 Finishing the application.
Database Connection Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
| imodules.com Top 10 FAQ in Application Support Kelly Schmiedeler & Amber Quayle.
Basic Portlet Copyright © 2000 – 2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Edline Managing Your Class: Adding a picture, changing the class title, printing activation codes, and looking up screen names.
1© Copyright 2011 EMC Corporation. All rights reserved. Registering for Partner Central February 2014 FOR RSA PARTNER USE.
Required Tools Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
15 Copyright © 2004, Oracle. All rights reserved. Adding JAAS Security to the Client.
Navigation: If the tutorial opens up in your web browser, simply click your mouse to advance to the next slide. Use the “Backspace”
ELISTING How to use eListing to conveniently and quickly file your personal property listing online. DEPARTMENT OF ASSESSMENTS King County To navigate.
Introduction to BearQuest 1- 1 Getting the training you need1-2 Logging on and Getting Access1-3 Starting your Request1-6 Basic Screen Navigation1-8 Course.
1 ERP Support Portal ERP Department 25 th November 2015 User Guide.
Required Tools Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission from.
WS-PGRADE + ASM Basic hands-on Zoltán Farkas, MTA SZTAKI
PlanBuilder How-To.
NetApp Online Ordering User Tutorial
Copyright © Liferay, Inc.
Copyright © Liferay, Inc.
Assess Survey Invitations
Basic hands-on Zoltán Farkas, MTA SZTAKI
E-permits Tutorial for first-time users
JSF Portlet Message Bundles
The Grants.gov Online Grant Submission Portal November 8, 2017
Project Directions You can use the links on the next slide if you are in Show mode (just hit the F5 key to enter Show mode). Otherwise you can copy and.
How to Submit your Booking Requests?
Online Course Selection
MIS 3200 – Unit 6.1 Moving between pages by redirecting
Completing the Primary Reference portion of the Student Profile
Presentation transcript:

Struts Portlet Redirect Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission from Liferay, Inc.

Objective The goal of this tutorial is to prevent multiple submits 1.Update existing JSP file –view.jsp 2.Add page flow path –struts-config.xml 3.Update Action to handle redirect –AddBookAction.java

view.jsp Add this hidden form field redirect" type="hidden" value=" ">

struts-config.xml Lets add /ext/library/success so that we have a landing path

AddBookAction.java We are going to modify our java to use a redirect instead of a forward A forward still submits to the page that it lands on. But a redirect will no longer retain the submit state on the landing page Comment out the forward line //setForward(req, "portlet.ext.library.success"); Add this line to the code res.sendRedirect(req.getParameter("redirect"));

AddBookAction.java What is “redirect”? “redirect” is the name of the hidden field we added to view.jsp res is the response object sendRedirect is an portlet method that grabs a request value from either the querystring or form submit. It than redirects to the redirect value Make sure that your redirect value is a valid URL

Deploy the Files to Tomcat Deploy files to Tomcat once you are finished Open up a cmd prompt –Click “Start”, “Run” and then type “cmd” Navigate to your ext directory and then type “ant deploy” …\ext>ant deploy

Final Steps 1.Restart Tomcat 2.Open up a new browser and type LOGIN: PASSWORD: test

Review Key Concepts Add a hidden “redirect” form field to view.jsp “redirect” is the URL of the view.jsp Make sure that the path exist in struts-config.xml In your java, replace your forward path with a sendRedirect path.

Revision History Jerry Niu9/13/2006-9/14/2006 Slide create and updates