srinus reddyy

Greenhorn
+ Follow
since Jul 04, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by srinus reddyy

while iterating ${myTableID.userid} is giving me same value while
<input type="checkbox" name="selectedCurrentAlumni" value="${myTableID.userid}"/> giving me different values


<c:set var="currentAlumniList"
scope="page" value="${currentalumni}" />

<display:table
name="pageScope.currentAlumniList" id="myTableID" cellspacing="1"
cellpadding="1" pagesize="10" class="displayTable" sort="list"
requestURI="">

<display:setProperty name="paging.banner.placement" value="bottom" />
<display:setProperty name="css.tr.even" value="titletab formLable_1B" />

<display:setProperty name="css.th.descending" value="borderBGcolor" />
<display:setProperty name="sort.amount" value="list" />
<display:column sortable="true">
<input type="checkbox" name="selectedCurrentAlumni" value="${myTableID.userid}"/>
</display:column>
<display:column property="fname" title="First Name"
class="displayTableTD" />


<display:column property="lname" title="Last Name"
class="displayTableTD" />
<display:column property="empid" title="Emp ID" class="displayTableTD" />
<display:column property="userid" title="User-ID" class="displayTableTD" />
<display:column property="regdate" title="Date-Regd"
class="displayTableTD" />
<display:column property="regdetails" title="Regn-Details"
class="displayTableTD" />
<display:column property="profiledetails" title="Profile-Details" href="./ControllerServlet?req_id=2008&userid=${myTableID.userid}"
class="displayTableTD"/>
</display:table></div>
select BAR_fname,BAR_lname,BAR_empid,BAR_userid,BAR_date_of_regn
from boomerang_alumni_registration where BAR_status="current";

i am getting the below exception while executing the query
please let me know what's wrong with the query


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"curr' at line 2
<display:table>

the above tag should be configured so that it should show me only previous and next only
<deploy url="${manager.url}" username="${manager.username}" password="${manager.password}" path="${app.path}"
war="file:${build.home}${app.path}.war" />

the above is throwing exception
15 years ago
HI
i am using displaytag table for pagination but it is showing first,last,previous,next and page links, but my requirement is only showing previous and next.
hi
while running the build.xml (while installing) the below is the exception

java.io.FileNotFoundException: D



below is the build.xml fil
----------------------------------------------

<project name="boomerang" default="compile" basedir="." >

<!-- Global properties for this script -->
<property file="build.properties" />
<property file="${user.home}/build.properties" />
<property name="app.name" value="boomerang" />
<property name="app.version" value="0.1-dev" />
<property name="app.path" value="/${app.name}" />
<property name="build.home" value="${basedir}/build" />
<property name="dist.home" value="${basedir}/dist" />
<property name="manager.url" value="http://localhost:6060/manager" />
<property name="src.home" value="${basedir}/src" />
<property name="web.home" value="${basedir}/webapp" />
<property name="compile.debug" value="true" />
<property name="compile.deprecation" value="false" />
<property name="compile.optimize" value="true" />
<property name="config" value="${basedir}/config" />
<property name="context" value="${catalina.home}/conf/Catalina/localhost" />

<path id="catalina-ant.class.path" >
<fileset dir="${catalina.home}/server/lib" >
<include name="catalina-ant.jar" />
</fileset>
</path>

<path id="compile.classpath" >
<fileset dir="${catalina.home}/common/lib" >
<include name="servlet-api.jar" />
</fileset>
<fileset dir="${basedir}/lib" >
<include name="**/*.jar" />
</fileset>
</path>

<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask" classpathref="catalina-ant.class.path"/>
<!--<taskdef name="install" classname="org.apache.catalina.ant.InstallTask" classpathref="catalina-ant.class.path" />-->
<taskdef name="list" classname="org.apache.catalina.ant.ListTask" classpathref="catalina-ant.class.path" />
<taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask" classpathref="catalina-ant.class.path" />
<taskdef name="remove" classname="org.apache.catalina.ant.RemoveTask" classpathref="catalina-ant.class.path" />

<target name="all" depends="clean, compile" description="clean build and dist directories then compile" />

<target name="clean" description="delete old build and dist directories" >
<delete dir="${build.home}" />
<delete dir="${dist.home}" />
</target>

<target name="compile" depends="prepare" description="Compile Java Sources" >
<javac srcdir="${src.home}" destdir="${build.home}/WEB-INF/classes" debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}" >
<classpath refid="compile.classpath" />
</javac>

<copy todir="${build.home}/WEB-INF/classes" >
<fileset dir="${config}" excludes="**/*.xml" />
</copy>
</target>

<target name="dist" depends="compile" description="Create binary distribution" >
<!-- Create application WAR file -->
<jar jarfile="${dist.home}/${app.name}-${app.version}.war" basedir="${build.home}" />
</target>

<target name="install" depends="compile" description="Install application to servlet container" >
<echo message="Installing app...."/>

<deploy url="${manager.url}" username="${manager.username}" password="${manager.password}" path="${app.path}"
war="file:${build.home}${app.path}.war" />

<!-- <copy todir="${catalina.home}/conf/Catalina/localhost" >
<fileset dir="${basedir}/Config" excludes="struts-config.xml" />
</copy> -->
<echo message="Copied context xml. Check the log for deployment errors" />
</target>

<target name="list" description="List installed applications on servlet container">
<list url="${manager.url}" username="${manager.username}" password="${manager.password}"/>
</target>

<target name="prepare">
<!-- Create build directories as needed -->
<mkdir dir="${build.home}"/>
<mkdir dir="${build.home}/WEB-INF"/>
<mkdir dir="${build.home}/WEB-INF/classes"/>
<!-- Copy static content of this web application -->
<copy todir="${build.home}">
<fileset dir="${web.home}"/>
</copy>
<!-- Copy libs -->
<mkdir dir="${build.home}/WEB-INF/lib"/>

<copy todir="${build.home}/WEB-INF/lib">
<fileset dir="${basedir}/lib" includes="**/*.jar">

</fileset>
</copy>

<!--ir dir="${build.home}/jsp" />
<copy todir="${build.home}/pages" >
<fileset dir="${web.home}/WEB-INF/pages" includes="**/*" />
</copy> -->


<!-- Copy other properties, conf files -->
<copy todir="${build.home}/WEB-INF">
<fileset dir="${basedir}/config" includes="**/*"/>
</copy>

<!-- Externalised property files -->
<!--<mkdir dir="${user.home}/resources"/>
<copy todir="${build.home}/WEB-INF/classes">
<fileset dir="${basedir}/config" includes="*.properties"/>
</copy>-->
</target>

<target name="reload" depends="compile" description="Reload application on servlet container">
<reload url="${manager.url}" username="${manager.username}" password="${manager.password}" path="${app.path}"/>
</target>

<target name="remove" description="Remove application on servlet container">
<remove url="${manager.url}" username="${manager.password}" password="${manager.password}" path="${app.path}" />
<delete file="${context}/boomerang.xml" />
<!--<undeploy url="${manager.url}" username="${manager.username}" password="${manager.password}" path="${app.path}"/> -->
</target>

</project>
15 years ago