Project

General

Profile

« Previous | Next » 

Revision 3547

Added by barteau about 17 years ago

Modified by removing name='action' attribute from jsp navigation button, since it was binding with the bean action property. Also changed Upload Message display to
show the more general messages returned by the call to clientRequest (doensn't exclude non-upload messages, such as general errors).

View differences:

lib/style/skins/sanparks/SaeonUpload.jspx
6 6
    
7 7
    <jsp:declaration>
8 8
        private ClientViewHelper            clientViewHelper;
9
        private String                      message;
9 10
    </jsp:declaration>
10 11
    
11 12
    <html xmlns="http://www.w3.org/1999/xhtml">
......
48 49
            </p>
49 50
            
50 51
                <jsp:scriptlet>
51
                    clientViewHelper.clientRequest(request, response);
52
                    message = clientViewHelper.clientRequest(request, response);
52 53
                    if (clientViewHelper.isLoggedIn()) {
53 54
                </jsp:scriptlet>
54 55
                
55 56
                <jsp:scriptlet>
56
					if ( clientViewBean.getMessage(ClientView.UPLOAD_MESSAGE) != null) {
57
					if ( message != null) {
57 58
				</jsp:scriptlet>
58 59
	                <p class="emphasis">
59 60
						<jsp:expression>
60
							clientViewBean.getMessage(ClientView.UPLOAD_MESSAGE)
61
							message
61 62
						</jsp:expression>
62 63
					</p>
63 64
				 <jsp:scriptlet>
......
180 181
                
181 182
                <p class="regtext">
182 183
                    <form action="./index.jsp" method="post">
183
                        <button name="action" type="submit" class="button_login">
184
                        <button type="submit" class="button_login">
184 185
                            &lt; Back
185 186
                        </button>
186 187
                    </form>

Also available in: Unified diff