real netbeans java web project.

git-svn-id: https://svn.coded.pt/svn/SIPRP@1418 bb69d46d-e84e-40c8-a05a-06db0d633741
lxbfYeaa
Diogo Neves 15 years ago
parent 32c1773a9a
commit 6d47b7d84c

@ -531,9 +531,9 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.evologger.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.evologger.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.batik-all-1.7.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.batik-all-1.7.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xmlgraphics-commons-1.3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xmlgraphics-commons-1.3.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.SIPRP.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.SIPRP.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-io-1.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-io-1.4.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-collections-3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-collections-3.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.SIPRP.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.SIPRP.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-lang-2.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-lang-2.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-logging-1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-logging-1.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.evolute.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.evolute.jar" todir="${dist.ear.dir}"/>
@ -548,7 +548,7 @@ exists or setup the property manually. For example like this:
<copyfiles files="${libs.exceptionhandler-runtime.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update">
<attribute name="Class-Path" value="${manifest.libs.jsf12.classpath} ${manifest.libs.jstl11.classpath} ${manifest.libs.jsf12-support.classpath} ${manifest.libs.woodstock-components.classpath} ${manifest.libs.woodstock-theme-default.classpath} ${manifest.file.reference.jdom.jar} ${manifest.file.reference.ashwood-2.0.jar} ${manifest.file.reference.avalon-framework-4.2.0.jar} ${manifest.file.reference.activation.jar} ${manifest.file.reference.fop.jar} ${manifest.file.reference.postgresql-8.2-506.jdbc4.jar} ${manifest.file.reference.jai_imageio.jar} ${manifest.file.reference.evologger.jar} ${manifest.file.reference.batik-all-1.7.jar} ${manifest.file.reference.xmlgraphics-commons-1.3.1.jar} ${manifest.file.reference.SIPRP.jar} ${manifest.file.reference.commons-io-1.4.jar} ${manifest.file.reference.commons-collections-3.1.jar} ${manifest.file.reference.commons-lang-2.1.jar} ${manifest.file.reference.commons-logging-1.1.jar} ${manifest.file.reference.evolute.jar} ${manifest.file.reference.mail.jar-1} ${manifest.file.reference.shst.jar} ${manifest.file.reference.log4j-1.2.15.jar} ${manifest.file.reference.xalan-2.7.0.jar} ${manifest.file.reference.xercesImpl-2.7.1.jar} ${manifest.file.reference.xml-apis-1.3.04.jar} ${manifest.file.reference.xml-apis-ext-1.3.04.jar} ${manifest.file.reference.serializer-2.7.0.jar} "/>
<attribute name="Class-Path" value="${manifest.libs.jsf12.classpath} ${manifest.libs.jstl11.classpath} ${manifest.libs.jsf12-support.classpath} ${manifest.libs.woodstock-components.classpath} ${manifest.libs.woodstock-theme-default.classpath} ${manifest.file.reference.jdom.jar} ${manifest.file.reference.ashwood-2.0.jar} ${manifest.file.reference.avalon-framework-4.2.0.jar} ${manifest.file.reference.activation.jar} ${manifest.file.reference.fop.jar} ${manifest.file.reference.postgresql-8.2-506.jdbc4.jar} ${manifest.file.reference.jai_imageio.jar} ${manifest.file.reference.evologger.jar} ${manifest.file.reference.batik-all-1.7.jar} ${manifest.file.reference.xmlgraphics-commons-1.3.1.jar} ${manifest.file.reference.commons-io-1.4.jar} ${manifest.file.reference.commons-collections-3.1.jar} ${manifest.file.reference.SIPRP.jar} ${manifest.file.reference.commons-lang-2.1.jar} ${manifest.file.reference.commons-logging-1.1.jar} ${manifest.file.reference.evolute.jar} ${manifest.file.reference.mail.jar-1} ${manifest.file.reference.shst.jar} ${manifest.file.reference.log4j-1.2.15.jar} ${manifest.file.reference.xalan-2.7.0.jar} ${manifest.file.reference.xercesImpl-2.7.1.jar} ${manifest.file.reference.xml-apis-1.3.04.jar} ${manifest.file.reference.xml-apis-ext-1.3.04.jar} ${manifest.file.reference.serializer-2.7.0.jar} "/>
</manifest>
</target>
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
@ -567,9 +567,9 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.evologger.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.batik-all-1.7.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xmlgraphics-commons-1.3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.SIPRP.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-io-1.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-collections-3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.SIPRP.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-lang-2.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-logging-1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.evolute.jar}" todir="${build.web.dir}/WEB-INF/lib"/>

@ -1,8 +1,8 @@
build.xml.data.CRC32=7ab0589b
build.xml.data.CRC32=52281a81
build.xml.script.CRC32=50b8b881
build.xml.stylesheet.CRC32=c0ebde35@1.15.2.1
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=7ab0589b
nbproject/build-impl.xml.script.CRC32=a142f504
nbproject/build-impl.xml.data.CRC32=52281a81
nbproject/build-impl.xml.script.CRC32=8db4e609
nbproject/build-impl.xml.stylesheet.CRC32=8ab4467e@1.15.2.1

@ -67,9 +67,9 @@ javac.classpath=\
${file.reference.evologger.jar}:\
${file.reference.batik-all-1.7.jar}:\
${file.reference.xmlgraphics-commons-1.3.1.jar}:\
${file.reference.SIPRP.jar}:\
${file.reference.commons-io-1.4.jar}:\
${file.reference.commons-collections-3.1.jar}:\
${file.reference.SIPRP.jar}:\
${file.reference.commons-lang-2.1.jar}:\
${file.reference.commons-logging-1.1.jar}:\
${file.reference.evolute.jar}:\

@ -68,15 +68,15 @@
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.SIPRP.jar}</file>
<file>${file.reference.commons-io-1.4.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-io-1.4.jar}</file>
<file>${file.reference.commons-collections-3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-collections-3.1.jar}</file>
<file>${file.reference.SIPRP.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>

@ -17,8 +17,9 @@ import javax.servlet.http.HttpSession;
*
* @author lluis
*/
public class Db {
// String connectionURL = "jdbc:postgresql://evoserver:5432/siprp_20100629"; //testes
public class Db
{
// String connectionURL = "jdbc:postgresql://evoserver:5432/siprp_20100813"; //testes
// String connectionURL = "jdbc:postgresql://www.evolute.pt:5436/siprp"; //real
String connectionURL = "jdbc:postgresql://localhost:5436/siprp"; //real

@ -15,8 +15,9 @@ import java.sql.Statement;
*
* @author lluis
*/
public class DbRelatorios {
// String connectionURL = "jdbc:postgresql://evoserver:5432/siprp_20100629"; //testes
public class DbRelatorios
{
// String connectionURL = "jdbc:postgresql://evoserver:5432/siprp_20100813"; //testes
String connectionURL = "jdbc:postgresql://localhost:5436/siprp"; //real

@ -22,10 +22,11 @@ import javax.servlet.http.HttpSession;
*
* @author lluis
*/
public class Dblocal {
public class Dblocal
{
// String server = "evoserver";
// String port = "5432";
// String database = "siprp_local_3_20100713";
// String database = "siprp_local_3_20100813";
String User = "postgres";
String Pass = null;

@ -19,7 +19,7 @@ import com.evolute.utils.error.ErrorLogger;
*/
public class DblocalRelatorios
{
// String connectionURL = "jdbc:postgresql://evoserver/siprp_local_3_20100713"; //testes local_3
// String connectionURL = "jdbc:postgresql://evoserver/siprp_local_3_20100813"; //testes local_3
String connectionURL = "jdbc:postgresql://localhost:5436/siprp_local_3";

@ -94,7 +94,7 @@ public class MainPhaseListener implements PhaseListener{
System.out.println( "SESSION VALID : " + req.isRequestedSessionIdValid() );
//if(!req.isRequestedSessionIdValid() && view.getViewId().indexOf("Login") == -1 ){
if ( ! req.isRequestedSessionIdValid() && referer.indexOf( "AnaliseAcidentes" ) == -1 )
if ( ! req.isRequestedSessionIdValid() && referer != null && referer.indexOf( "AnaliseAcidentes" ) == -1 )
{
System.out.println( "VIEW ID :" + view.getViewId() );
//NavigationHandler nh = fc.getApplication().getNavigationHandler();
@ -145,7 +145,7 @@ public class MainPhaseListener implements PhaseListener{
}
catch ( Exception ex )
{
session.setMsg( "Utilizador inv&aacute;lido." );
// session.setMsg( "Utilizador inv&aacute;lido." );
// try
// {
// JSFUtils.redirect( fc, Global.PLANOS_ACTUACAO_URL + "Erro.jsp" );

@ -591,7 +591,9 @@ public class ListaPlanos extends AbstractPageBean {
PlanoActuacaoPDFCreator pdfCreator = new PlanoActuacaoPDFCreator();
try
{
System.out.println( "CREATING PDF ..." );
byte[] pdf = pdfCreator.createPDF( pID, true );
System.out.println( ".. DONE !" );
showPdf( pdf );
}
catch(Exception ex)

Loading…
Cancel
Save