dynamic drop down list
I am trying to create a drop down list to do some record sorting. This is my code (I am a vb developer that has had to do some java customization so please forgive my crappy code - all i care is that it works.) The drop down needs to display the current sort.
<div align="right">
<table>
<tr>
<td class="textNormal">
Sorted By: <form action="ChangeSorting.jsp?recordView=<jsp:getProperty name='CumulusBean' property='recordView'/>" id="changeSortingForm" target="invisibleFrame" method="POST">
<td>
<select name="uid" size="1" onChange="document.getElementById('changeSortingForm').submit();">
<%if (session.getAttribute( "theUid" ).equals (null)) {
strCheck = ("selected");
}%>
<option value="">
UnSorted</option>
<%if (session.getAttribute( "theUid" ).equals ("{1e58eab1-f625-4d6b-be82-ef0ea493cb7a}")) {
strCheck = ("selected");
}%>
<option value="{1e58eab1-f625-4d6b-be82-ef0ea493cb7a}" ><%=strCheck%> >
Asset Format</option>
<%if (session.getAttribute( "theUid" ).equals ("{af4b2e43-5f6a-11d2-8f20-0000c0e166dc}")) {
strCheck = ("selected");
} %>
<option value="{af4b2e43-5f6a-11d2-8f20-0000c0e166dc}" ><%//=strCheck%>>
Title</option>
<%if (session.getAttribute( "theUid" ).equals ("{a1fb6bfc-8d0d-4ba1-ba6c-9f85364f8050}")) {
strCheck = ("selected");
} %>
<option value="{a1fb6bfc-8d0d-4ba1-ba6c-9f85364f8050}" ><%=strCheck%>>
P Number</option>
<%if (session.getAttribute( "theUid" ).equals ("{d772f661-9242-11d5-b58c-0050baeba6c7}")) {
strCheck = ("selected");
} %>
<option value="{d772f661-9242-11d5-b58c-0050baeba6c7}" ><%=strCheck%>>
Production Title</option>
<%if (session.getAttribute( "theUid" ).equals ("{ac03983f-c124-41aa-8dd1-315cf1879ffa}")) {
strCheck = ("selected");
} %>
<option value="{ac03983f-c124-41aa-8dd1-315cf1879ffa}" ><%=strCheck%>>
Rights</option>
<%if (session.getAttribute( "theUid" ).equals ("{5cada4d3-90df-11d2-8e22-008048fdada5}")) {
stheck = ("selected");
} %>
<option value="{5cada4d3-90df-11d2-8e22-008048fdada5}" ><%=strCheck%>>
Owning Archive</option>
<%if (session.getAttribute( "theUid" ).equals ("{af4b2e3b-5f6a-11d2-8f20-0000c0e166dc}")) {
strCheck = ("selected");
}%>
<option value="{af4b2e3b-5f6a-11d2-8f20-0000c0e166dc}" ><%=strCheck%>>
Credit Line</option>
</select></td>
</form>
<td>
<cumulus:ifSortingDirectionIs direction="ascending">
<a href="ChangeSortingDirection.jsp?recordView=<jsp:getProperty name='CumulusBean' property='recordView'/>&direction=descending"><img src="../images/sort_asc.jpg" border="0"
alt="Sort Ascending"
></a></cumulus:ifSortingDirectionIs>
<cumulus:ifSortingDirectionIsNot direction="ascending">
<a href="ChangeSortingDirection.jsp?recordView=<jsp:getProperty name='CumulusBean' property='recordView'/>&direction=ascending"><img src="../images/sort_des.jpg" border="0"
alt="Sort Descending"
></a> </cumulus:ifSortingDirectionIsNot></td>
</tr>
</table>
</div>
This does work if the page is already loaded however you get an erro if you try and load the page.
I don't see why...
Any help would be appreciated.

