• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

scroll bar down

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dear All,

We have to scroll the day tab of the first file tab once the meeting of the day has to present . I get the meeting with default scroll that is up but I have to provide the default down scroll. please help.


first file

second file some jsp
<%@page import="java.util.Date,java.util.Calendar,java.util.GregorianCalendar,java.text.SimpleDateFormat,
java.util.ArrayList,java.util.Iterator,java.util.SortedMap,tgnt.util.DAO,tgnt.util.CalendarUtil,tgnt.util.GlobalException"%>
<jsp:useBean id="gns" scope="session" class="com.tgnt.Session"/><%@include file="util.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %><%
String view = request.getParameter("view"), str_date = request.getParameter("date");
SimpleDateFormat df1 = new SimpleDateFormat("EEE, MMM d, yy"), df2 = new SimpleDateFormat("yyyy-MM-dd%");
long mile_sec = Long.parseLong(str_date);
Calendar cur_date_cal = new GregorianCalendar(); cur_date_cal.setTimeInMillis(mile_sec);

DAO dao = new DAO();
ArrayList dayEvent = new ArrayList(), timeEvent = new ArrayList();

try{
String[] queries = {"select * from gMeeting where meetingDate like ? order by meetingDate"};
ArrayList paramList= new ArrayList();
paramList.add(df2.format(cur_date_cal.getTime()));
ArrayList results = new ArrayList(), gMeeting = new ArrayList();
results = dao.executeQueries(queries, paramList);
gMeeting = getTimeEvent(1, cur_date_cal.getTime(), meetingToCalendar(results.get(0)==null?new ArrayList():
(ArrayList)results.get(0)));
if(!gMeeting.isEmpty()) addTimeEvent(timeEvent, gMeeting);
request.setAttribute("curDateFormat", df1.format(cur_date_cal.getTime()));
request.setAttribute("dayEvent", dayEvent);
request.setAttribute("timeEvents", timeEvent);
}catch(Exception e){
GlobalException ge = new GlobalException(e);
out.println(ge.userFriendlyMsg());
}%>
<div class="calenderTaskObjact">
<div class="calenderDayRt"><c:out value="${curDateFormat}"/></div>
<div class="calendDaytopRt">
<c:forEach items="${dayEvent}" var="day">
<div class="icons_outer" title="<c:out value="${day.title}"/>">
<img class="left" alt="" src="<c:out value="${day.url}"/>"/>
<span class="desc"><c:out value="${day.title}"/></span>
</div>
</c:forEach>
</div>
<div class="calendDayHold">

<c:forEach items="${timeEvents}" var="time">
<div class="calendWeekWork">
<div class="calendWeekWorkT"><a name="<c:out value="${time.time}"/>">
<div class="calendWeekWorkTL">
<div class="calendWeekWorkTLBorder">
<c:out value="${time.time}"/>
</div>
</div></a>
<div class="calendDayWorkTR">
<c:choose>
<c:when test="${!empty time.event}">
<c:forEach items="${time.event}" var="events">
<c:choose>
<c:when test="${!empty events}">
<div class="multipopup">
<ul><c:forEach items="${events}" var="event">
<li onclick="javascript:SPW('<c:out value="${event.type}"/>','<c:out value="${event.id}"/>');"
class="mus-ovr" style="background-color:#bfb893; font-weight:bold;cursor:pointer;">
<c:out value="${event.title} - ${event.city}"/>
<p style="background-color:#f4eece;min-height:5px;padding:0px;font-weight:normal;">
<c:out value="${event.notes}"/></p>
</li>
</c:forEach>
</ul>
</div>
</c:when>
<c:otherwise><div class="calendDayWorkTRBlok"></div></c:otherwise>
</c:choose>
</c:forEach>
</c:when>
<c:otherwise><div class="calendDayWorkTRBlok"></div></c:otherwise>
</c:choose>
</div>
</div>
</div>
</c:forEach>
</div>
</div>[code]
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As requested before: please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button. Thanks!
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You've just posted dozens of lines of code and the text "scroll bar down".

What's the question?
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic