Hello-
I just joined and have read the thread:http://www.daniweb.com/forums/thread48188.html.
I was advised to start a new thread as that one is to old now.
Anyway, I have the same problem and am trying to use the "hidden"
input tag to access the parameters I need in the jsp.
My code is as follows:

<HTML> 
<HEAD></HEAD>
<link rel="StyleSheet" href="goldenBoy.css">
<BODY BGCOLOR="#6699FF"> 
<jsp:useBean id="view" class="webton.init"/>
<jsp:setProperty name="view" property="defview" value="Bollux" />
<%
String path= view.getDeftar();
%>
<CENTER>
<H3><jsp:getProperty name="view" property="defview" /></H3>
<HR>
<FORM name="viewdisplay" METHOD=get>
<CENTER>
<jsp:useBean id="parse" class="webton.parseView"/>
<%

parse.setViewtoparse(path);
%>

<%
	
     String LabelsStr =parse.getLabelstring();
     String[] Labels =LabelsStr.split(","); 
     String FilesStr =parse.getFilestring();
     String[] Files =FilesStr.split(","); 

%>
 <%
	
   for(int t=0;t<Labels.length;t++){
   String thisLabel = Labels[t];
   String thisFile = Files[t];
%>
	<INPUT TYPE="text" SIZE="150" readonly="readonly" param=<%= thisFile %> onclick="clickcolor(this,<%= thisLabel %>,<%= thisFile %>)" onblur="clickwhite(this)"  value=<%= thisLabel %> />
	
<%}%>
<INPUT TYPE="HIDDEN" NAME="variableName" VALUE="">
<INPUT TYPE="HIDDEN" NAME="variableFile" VALUE="">
</FORM>
<jsp:useBean id="send" class="webton.init"/>
<script type="text/javascript">
var clickcount=1;
function clickcolor(thisfield,val,tar) {
document.form.variableName.value=val;
form.submit();
document.form.variableFile.value=tar;
form.submit();

if(clickcount==1){
thisfield.style.background= "#C5ECF4";
thisfield.style.foreground= "#FFFFFF";
clickcount=2;
}else{
clickcount=1;
<% send.setDefview(variableName);%>
<% send.setDeftar(variableFile);%>

<% send.WriteInitFile();%>
window.location.reload();

}
}

function clickwhite(thisfield) {
thisfield.style.background= "#FFFFFF";
thisfield.style.foreground= "#000000";
clickcount=1;
}

</script>
</BODY> 
</HTML>

Lines 56 and 57 are the code breakers.
This of course gets me an error although I don't know how to fix it.
I am very new to all this so please bear with me if I've done something dumb.
-D

You misunderstood that thread- Jsp code is executed at server location and it's output is carried out at web browser. Jsp output consists html/javascript/css/images.
Lines 56 and 57 are illegal in context of jsp & javascript.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.