Is there anyway to change the default page that is used when an app is run?

We have some existing stuff that we need to display on the same page as the app is running.

I've looked at \Gerger\FormspiderServer\apache-tomcat-6.0.29\webapps\formspider\main.jsp and made some changes in there (simple change to start) putting our standard information bar accross the top of the page, however when the app runs up windows snap to the top of the page over writing the bar which isn't what management want.

I'm guessing its something to do with the area that the formspider app runs in, what I'm basically asking is there anyway to control that?

asked 26 Feb '15, 03:47

apacheuk's gravatar image

accept rate: 0%

the weird thing is if I stick a div round the code for instance and add some padding it initially ignores the padding, but then when I move the window down it won't let me move it past the padded area

<div style="padding: 20px"> <% Map<String, String[]> parameters = request.getParameterMap(); StringBuffer bfr = new StringBuffer(); int i=0; for(String parameter : parameters.keySet()) { if (i>0){ bfr.append("&"); } String[] values = parameters.get(parameter); bfr.append(StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(parameter+"="+values[0]))); i++; } %> </div>


answered 26 Feb '15, 04:24

apacheuk's gravatar image

accept rate: 0%

edited 26 Feb '15, 04:29

or can I programatically move a frame a runtime?


answered 26 Feb '15, 04:55

apacheuk's gravatar image

accept rate: 0%


You should introduce a new JSP file, e.g. main2.jsp. This file will include an iframe for Formspider App and your custom layout changes.

For example,

<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<div id="customHeader" style="position: absolute; top:0; left: 0; width: 100%; height: 10%; background-color: red;">&nbsp;</div>
<iframe style="position: absolute; top:10%; left: 0; width: 100%; height: 89%" src="main.jsp?<%= request.getQueryString() %>"></iframe>



answered 26 Feb '15, 05:16

Serdar's gravatar image

Serdar ♦♦
accept rate: 12%

OK thanks, I'm new to Tomcat... where should I put that file in order to call it?


answered 26 Feb '15, 05:52

apacheuk's gravatar image

accept rate: 0%

got it thanks :)

(26 Feb '15, 05:54) apacheuk

No problem. You should place this main2.jsp next to main.jsp. They should be in the same directory.

(26 Feb '15, 05:56) Serdar ♦♦

Hopefully OK to revisit this...

Something has started to happen and I can't figure out why.

When I call our main page main2.jsp, this contains an iframe tag as in the suggestion above I get to see the main2.jsp page but then it redirects to the main.jsp page and we lose our template and just get the Formspider app on its own.

We are stuck on IE9 for the time being

Any help would be great as I'm getting a sore head


answered 21 Apr '15, 06:43

apacheuk's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 26 Feb '15, 03:47

Seen: 2,799 times

Last updated: 21 Apr '15, 06:43

© Copyright Gerger 2017