Request forward with a PDF file is not working in 8.1 SP2?
Hi,
I have a servlet that forwards the request to a pdf file. The code works fine
in WL61. However when I ran the servlet in WL8.1SP2, all I get is a blank page.
However, instead of PDF I forward the request to a text file, it works fine in
both weblogic versions.
Any help willbe greatly appreciated. Code sample below.
Thanx
String file_path = my_path + "\\test.pdf";
RequestDispatcher d = req.getRequestDispatcher(file_path);
d.forward(req, resp);
I tried the simple thing on 8.1sp3 and it works..
public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
req.getRequestDispatcher("/AntIdea.pdf").forward(req, res);
My WAR looks like the following
WEB-INF
WEB-INF/web.xml
WEB-INF/classes/ForwardServlet.java
AntIdea.pdf
Similar Messages
-
Link in pdf-file does not work on Ipad
With my site www.bartkuijer.nl I offer visitors the free possibility to see (and download) sheetmusic, from music written by me. These are pdf-files. But they can not only SEE the sheetmusic; the music on that pdf-files can also be PLAYED. That's done bij clicking on a link in that pdf-file to a mp3-file of the music on my site.
This works fine on a pc. When I try this on the Ipad of my wife it DOES NOT WORK!
So my question is: how come? And what to do to make this work also fine on an Ipad.
This is important for me, because I want this sheetmusic to place as Ipad-apps for free.It works!
But not with a pdf-file. The Ipad does not recognize links in a pdf-file.
Te solution is found by making a htm-file with emdedding a quicktime-player and images of the music. This is my first Ipad product. On a pc the player starts immediately; on the Ipad it has to be started.
Now I have to work on a solution to change this to an app -
PDF FILE WILL NOT WORK OR OPEN ADOBE READER NOT WORKING CORRECTLY.
PDF FILE WILL NOT OPEN IN A FEW APPLICATIONS AS THEY DID BEFORE. IF I CAN'T VIEW THEM I CAN'T PRINT THEM.
Hi
Why wouldn't an Apple file D/L into an Apple browser?
Likely due there being a non-Apple plugin trying to handle it & failing.
Look in Home/Library/Internet Plug-Ins/ and HD/Library/Internet Plug-Ins/ for any plugins with 'pdf' in the name.
Remove any you find - either trash or take to the desktop, restart any browsers, then try a pdf. -
Standalone PDF file system not working correctly
I have built a website http://greatayton.wikidot.com/ where one PDF Menu file calls up lots of other PDF files.
I now want to use the same menu system to call PDF files on a PC hard disk with the Internet turned off.
I used hyperlinks to link from the PDF Meny to the PDF files.
This works but first calls up Internet Explorer then displays the actual file which makes the operation slow and unweildy.
How do I just get the hyperlinks to call up the PDF files?
Thanks
MikeI have bought Adobe Acrobat X Standard & now works
-
DMS Connector to Portal Issue PDF files does not work
I have a general issue regarding PDF files from DMS, these files are all defect when opened through the portal (works fine through backend access), but other document types works fine (like .doc;.ppt, *.xsl etc..).
It is possible to download the file to your local pc, but still the same error occurs.
When Adobe Reader opens a info box shows The file is damaged and could not be repaired.
I have tried to update Acrobat Reader without any luck.
Any ideas on how to solve this issue?
Thanks in advance
JohnI will never understand why but in the end I rebuilt my 32 bit dell laptop from scratch and the pdf files can now be searched.
I cannot search them on a mapped drive as I was able to with Windows XP because now they must be indexed and windows 7 will seems not to allow a mapped location to be indexed which must be done to make the pdf files searchable so I have had to move the files to the local drive.
My Windows 7 64 bit systems can search the mapped drives just fine without needing to be indexed. Again I will never understand why this works and the 32 bit machine does not. -
Windows 7 32 bit search of PDF files does not work
I have installed Windows 7 on a 32 bit Dell Laptop and I can no longer search the content of my PDF files using Microsoft's search in Windows Explorer which I need to do. I’ve tried following the advice listed on several sites on line and nothing seems to work. My 64bit processor required a download of Adobe PDF iFilter 9 for 64-bit platforms and those systems work fine. All the write-ups suggest that Reader XI for 32 bit Windows 7 has the filter built in and Microsoft indexing indicates it is there but I still can't search for words in a PDF like I could using Windows XP.
Any advice would be greatly appreciated! Thanks in advance for any help.I will never understand why but in the end I rebuilt my 32 bit dell laptop from scratch and the pdf files can now be searched.
I cannot search them on a mapped drive as I was able to with Windows XP because now they must be indexed and windows 7 will seems not to allow a mapped location to be indexed which must be done to make the pdf files searchable so I have had to move the files to the local drive.
My Windows 7 64 bit systems can search the mapped drives just fine without needing to be indexed. Again I will never understand why this works and the 32 bit machine does not. -
EP5.0 Custom .par File Does Not Work in EP6.0 SP2
I have a .par file called CustomerSearch.par that is used in EP5.0, and I am now trying to get this .par file to work in EP6.0 SP2. I noticed the directory structure changes, so my .par structure is this:
CustomerSearch.par
--> portal-inf
portalapp.xml
lib
CustomerSearch.jar
TableViewExample.class
pagelet
TableView.jsp
I am getting the following error in the portal console logs when I try to access the component after I have uploaded the CustomerSearch.par file. Does anyone have any suggestions?
Error Message
Jan 26, 2005 4:23:50 PM # Client_Thread_34 Fatal Exception ID:04:23_26/01/05_0019
com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
Component : CustomerSearch.TableViewExample
Component class : TableViewExample
User : testUser
at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:858)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:389)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:462)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:226)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:833)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:665)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:312)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1229)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
Caused by: com.sapportals.portal.prt.component.PortalComponentException: PortalComponentException
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:123)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:224)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:86)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:338)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:817)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:385)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:462)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:226)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:833)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:665)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:312)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1229)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: D:/usr/sap/EPD1/j2ee/j2ee_22/cluster/server/services/servlet_jsp/work/jspTemp/irj/root/WEB-INF/portal/portalapps/CustomerSearch/work/pagelet/_sapportalsjsp_TableView.java:39: cannot resolve symbol
symbol : class MyBean
location: package TableViewExample
TableViewExample.MyBean myBeanName = null;
^
D:/usr/sap/EPD1/j2ee/j2ee_22/cluster/server/services/servlet_jsp/work/jspTemp/irj/root/WEB-INF/portal/portalapps/CustomerSearch/work/pagelet/_sapportalsjsp_TableView.java:41: cannot resolve symbol
symbol : class MyBean
location: package TableViewExample
myBeanName = (TableViewExample.MyBean)pageContext.getAttribute("myBeanName", PageContext.APPLICATION_SCOPE);
^
D:/usr/sap/EPD1/j2ee/j2ee_22/cluster/server/services/servlet_jsp/work/jspTemp/irj/root/WEB-INF/portal/portalapps/CustomerSearch/work/pagelet/_sapportalsjsp_TableView.java:45: cannot resolve symbol
symbol : class MyBean
location: package TableViewExample
myBeanName = (TableViewExample.MyBean) Beans.instantiate(this.getClass().getClassLoader(), "TableViewExample.MyBean");
^
3 errors
at com.sapportals.portal.prt.servlets_jsp.server.compiler.JavaCompiler.compileExternal(JavaCompiler.java:439)
at com.sapportals.portal.prt.servlets_jsp.server.compiler.JavaCompiler.compile(JavaCompiler.java:539)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2140)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:118)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:224)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:86)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:338)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:817)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:385)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:462)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:226)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:833)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:665)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:312)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1229)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
[email protected]7 #
TableViewExample.java Code
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Vector;
import com.sapportals.htmlb.InputField;
import com.sapportals.htmlb.event.Event;
import com.sapportals.htmlb.event.TableNavigationEvent;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.htmlb.table.DefaultTableViewModel;
import com.sapportals.htmlb.table.TableView;
import com.sapportals.htmlb.table.TableViewModel;
import com.sapportals.portal.htmlb.page.JSPDynPage;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sapportals.portal.prt.component.*;
public class TableViewExample extends PageProcessorComponent
/* (non-Javadoc)
@see com.sapportals.portal.htmlb.page.PageProcessorComponent#getPage()
public DynPage getPage()
return new MyDynPage();
public class MyDynPage extends JSPDynPage
//variables
private int visibleRow = 1;
public String search;
public String state = "0";
MyBean myBean;
/* (non-Javadoc)
@see com.sapportals.htmlb.page.DynPage#doInitialization()
//Get Context and Initialize Bean
public void doInitialization() throws PageException
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext myContext = request.getComponentContext();
IPortalComponentProfile myProfile = myContext.getProfile();
IPortalComponentProfile userProfile = request.getComponentContext().getProfile();
MyBean myBean = new MyBean();
myBean.setText("");
myProfile.putValue("myBeanName", myBean);
/* (non-Javadoc)
@see com.sapportals.htmlb.page.DynPage#doProcessAfterInput()
//Called Directly After The Data Was Submitted
public void doProcessAfterInput() throws PageException
//Get the Bean Object
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext context = request.getComponentContext();
IPortalComponentProfile profile = context.getProfile();
//Get the Account Info Input Field
InputField myInputField = (InputField) getComponentByName("account_input");
if( myInputField != null )
search = myInputField.getValueAsDataType().toString();
myBean = (MyBean) profile.getValue("myBeanName");
myBean.setAccount(search);
myBean.MyBeanModel();
state = myBean.state;
if( state == "1" )
//get the selected row / rows
//get the tableView by getComponentByName
TableView table = (TableView) this.getComponentByName("myTableView");
//Get the first visible row
int firstVisibleRow = table.getVisibleFirstRow();
//Get the last visible row
int lastVisibleRow = table.getVisibleLastRow();
//which of the visible rows was selected
StringBuffer strBuff = new StringBuffer();
for( int i = firstVisibleRow; i <= lastVisibleRow; i++ )
if( table.isRowSelected(i) )
strBuff.append("Row: " + i + " : ");
/* (non-Javadoc)
@see com.sapportals.htmlb.page.DynPage#doProcessBeforeOutput()
//Called Directly Before Output - Last Called Function
public void doProcessBeforeOutput() throws PageException
//set the jsp to load
this.setJspName("TableView.jsp");
//Called If The Navigation Event Was Send
//The JSP has set the navigation mode byline so the user can navigate
//line by line, page up and down, first and last entry
public void onNavigation(Event event)
if( state == "1" )
//Navigation - get the event to recover the actual position
TableNavigationEvent tne = (TableNavigationEvent) event;
//With the event the method getFirstVariableRowAfter() can be used
//which gives the acutal position (after the event)
this.visibleRow = tne.getFirstVisibleRowAfter();
if( myBean != null )
//just for the first time, when there is no bean
//set the new visibleRow
myBean.setVisibleRow(new Integer(this.visibleRow).toString());
public void onSendButtonClicked(Event event) throws PageException
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext context = request.getComponentContext();
IPortalComponentProfile myProfile = context.getProfile();
IPortalComponentProfile userProfile = request.getComponentContext().getProfile();
myBean = (MyBean) myProfile.getValue("myBeanName");
state = "1";
myBean.setState("1");
myProfile.putValue("myBeanName", myBean);
public class MyBean
//Properties
public DefaultTableViewModel model;
private String visibleRow = "1";
private String text;
private String account;
private String state = "0";
private String searchType;
//get/set account
public void setAccount(String account)
this.account = account;
public String getAccount()
return this.account;
//get/set state
public void setState(String state)
this.state = state;
public String getState()
return this.state;
//get/set model
public void setModel(DefaultTableViewModel model)
this.model = model;
public TableViewModel getModel()
return this.model;
//get/set Text for status messages
public void setText(String text)
this.text = text;
public String getText()
return this.text;
//get/set VisibleRow for tableView
public void setVisibleRow(String visibleRow)
this.visibleRow = visibleRow;
public String getVisibleRow()
return this.visibleRow;
//get/set SearchType
public void setSearchType(String searchType)
this.searchType = searchType;
public String getSearchType()
return this.searchType;
//Create Table View Model
public void MyBeanModel()
model = this.createNewTable(model);
//Set Table Text
if( model.getRowCount() > 0 )
this.setText("Customer Information Found For: " + this.getSearchType());
else
this.setText("No Records Found For Account: " + this.getAccount());
//Create Data For A DefaultTableViewModel By Using Vector
private DefaultTableViewModel createNewTable(DefaultTableViewModel model)
//Get a vector with a filled up data array
Vector data = null;
try
data = doGet();
catch( ClassNotFoundException e )
e.printStackTrace();
//Get a new vector for the titles
Vector colName = new Vector();
colName.addElement("NUMBER");
colName.addElement("CUSTOMER NAME");
colName.addElement("PHONE");
colName.addElement("STREET");
colName.addElement("CITY");
colName.addElement("STATE");
colName.addElement("ZIP");
model = new DefaultTableViewModel(data, colName);
return model;
//Method will execute SQL string with search parameter on the database
public Vector doGet() throws ClassNotFoundException
Statement stmt = null;
Vector myVector = new Vector();
try
//Load the sun jdbc-odbc bridge driver
DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
String dbUrl = "jdbc:oracle:oci8:@testX003";
Connection con = DriverManager.getConnection(dbUrl, "test", "test");
//Create a statement to submit SQL statements to the driver
stmt = con.createStatement();
String query = "select PAYER_NUM, PAYER_CUST_NAME, PAYER_PHONE_NUM_1 " +
"PAYER_STR_ADDR, PAYER_CITY_NAME, PAYER_ST_ABBR, PAYER_ZIP_CD " +
"from CUST_PAYER where PAYER_NUM = " + this.getAccount() + "";
this.setSearchType("Payer Search");
ResultSet rs;
rs = stmt.executeQuery(query);
ResultSetMetaData rsmd = rs.getMetaData();
//Get number of columns
int numCols = rsmd.getColumnCount();
if( numCols == 0 )
query = "select SLDTO_NUM, SLDTO_CUST_NAME, SLDTO_PHONE_NUM_1 " +
"SLDTO_STR_ADDR, SLDTO_CITY_NAME, SLDTO_ST_ABBR, SLDTO_ZIP_CD " +
"from CUST_PAYER where SLDTO_NUM = " + this.getAccount() + "";
this.setSearchType("SoldTo Search");
rs = stmt.executeQuery(query);
myVector = createData(rs);
//Close ResultSet
rs.close();
//Close Statement
stmt.close();
//Close Connection
con.close();
catch( SQLException ex)
this.account = ex.getMessage();
return myVector;
//This method pulls the database selection results and places them into vectors
private Vector createData(ResultSet res) throws SQLException
//Get the metadata infro
ResultSetMetaData rsmd = res.getMetaData();
//Get number of columns
int numCols = rsmd.getColumnCount();
String checkVal;
//Loop through the result set and load rows of data into Vector
Vector dataVec = new Vector();
Vector retVector = new Vector();
int k = 0;
while( res.next() )
k++;
for( int i = 1; iHi Bernhard,
nice to hear that we resolve the problem
> Karstens answer solved my base problem,
> Detlevs answer lead into the right direction.
Not that I've that need for points...
It's just the question why my answer (if you follow the link, my answer was: delete two lines, from which one is essential to be deleted) only "lead into the right direction"... In fact, it solved the base problem, I would claim for me
To give the technical background: If your write
<property name="ComponentType" value="jspnative"/>
the portal runtime expects a component consisting of a native JSP; the second directive -
<property name="JSP" value="pagelet/InitialPage.jsp"/>
- for this case tells where to find this JSP. So if you delete the first line, <i>at least</i> the second line has no sense anymore. To clean up such a portalapp.xml, it just makes sense also to delete the second line.
Best regards
Detlev -
I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!
You mean an image such as a scanned document?
If that is the case, the file doesn't contain any text for Reader Out Loud to read. In order to fix that, you would need an application such as Adobe Acrobat that does Optical Character Recognition to convert the images to actual text.
You can also try to export the file as a Word document or something else using ExportPDF which I believe offers OCR and is cheaper than Acrobat. -
¿Dear Sirs,
I can create with "Photoshop Elements 12", a PDF file of several pages?.
I can create a "pdf" file, but not of several pages.
Thank you
Valentín UriarteThis is the Photoshop Elements forum.
If you are using Acrobat, ask Here:
Acrobat -
Problem with preview PDF files on Windows 7 32bit
Hello,
in my office I have a problem with preview PDF files on my computers. The files are allright, but if I select a file and click on preview mode after ~ 10sec operation system write something "Preview this file is corrupt for PDF Preview Handler wrong". On other 64bit computers with same programs the preview is work. I try uninstall all Adobe soft (Reader, Flash), clean all Adobe data from folders in root and in register, but it is not solve this problem. On Microsoft forums wrote me, that the problem is probably with AR plugin.
So, can someone help me?
Config PC:
Windows 7 32/64bit Pro
Intel i3, 4GB
Adobe Reader 11.0.5
Adobe Flash Player 15 ActiveX
Adobe Flash Player 15 plugin
Preview Handler Surrogate Host ver.: 6.1.7601.17514
Thank you for help.I think I figured it out after reading other forums. Thanks!
-
Transferred certain files to my new Mac from my old computer via memory stick.Can open PDF files but not xlr,aww or wps ones.The important ones are in xlr format.Is there a solution please?
My guess is they don't care. Most likely they're illiterate and don't know what a colon is for. They probably think it's a little-used character. Remember: these are the people who don't know the difference between "deprecate" and "depreciate".
I have the same colon problem as you do. But it's not the biggest problem I have encountered in Lion. If it was only that I'd be Mr. Delighted with Lion. There's worse than having a colon - uh - that won't cooperate. A lot worse, in Lion. -
While using www.airset.com, within File App, I open a pdf file (which opens in a separate window, then close the separate window with the pdf fil ==> Firefox crashes consistently (with AirSet Connector Extension enabled). Crash does not occur if AirSet Connector is disabled. Gary
Since it doesn't seem like you are looking for support, locking this thread.
-
When trying to PDF a webpage into a PDF, it does not work, I go through all the steps as normal, and It does nothing. I can repeat my action, where instead of "printing" to adobe, it saves the file, which it doesn't save it at all. I can't even find the original in my work folder. I need to know how to stop this from happeing and get it back to the way it has been working he last 6 months since i purchased this program.
Hi pissedadobeuser,
Does this issue occur with any particular web page?
Are you able to print the webpage to 'Adobe PDF' to convert it to pdf.
Which Browser version, OS version and Acrobat version are you using?
Regards,
Rave -
Problem with printing pdf file
hello,
lately i have problem with printing pdf file:
i click on the print button and the respod is very slow
it takes more than a minute till the print window apears.
i tryied to install version X but it's the same, the problem exist only when printing via adobe reader,
other programs i'd working much faster.
please advice,
thank youNo, it is not set to overprint. Also, I have to add that the printing results were not consistent. Sometimes it covered and sometimes it did not.
-
Good time
problem with printing PDF files to the printer. While all other documents (doc) printed without problems.
The problem is not in the Preview.app, as doc files from it printed without problems. Just tried the program adobe acrobat, just does not print.
System 10.9.2, macbook air
Printer HP LaserJet CM1415
connected via WI-FI
Log:
28.02.14 20:30:32,901
Preview[1679]
SCNetworkReachability server not available
28.02.14 20:30:32,901
Preview[1679]
SCNetworkReachability server not available
28.02.14 20:30:32,908
Preview[1679]
socket(PF_ROUTE) failed: Operation not permitted
28.02.14 20:30:32,921
Preview[1679]
[QL] After retry, preview was from a different type for <QLPreview 0x7fe932d0b4b0 58627 file:///Users/olegpopov/Desktop/%D0%A0%D0%B5%D0%B7%D1%8E%D0%BC%D0%B5%20%D0%91%D 0%B8%D1%80%D1%8E%D0%BA%D0%BE%D0%B2%20%D0%90%D0%9D.doc>
28.02.14 20:30:33,286
sandboxd[246]
([1679]) Preview(1679) deny mach-lookup com.apple.SystemConfiguration.SCNetworkReachability
28.02.14 20:30:33,307
sandboxd[246]
([1679]) Preview(1679) deny system-socket
28.02.14 20:30:33,308
Preview[1679]
It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil. This is a programming error. Break on void _NSWarnForDrawingImageWithNoCurrentContext() to debug. This will be logged only once. This may break in the future.
28.02.14 20:31:43,998
HP Alerts[1703]
Attempt to add read-only file at path file://localhost/Library/Printers/hp/Frameworks/HPEventStore.framework/Resource s/EventClassStore.hpstore read/write. Adding it read-only instead. This will be a hard error in the future; you must specify the NSReadOnlyPersistentStoreOption.
28.02.14 20:31:48,790
com.apple.Preview.TrustedBookmarksService[1707]
Failure to de-serialize bookmark data file.
28.02.14 20:34:22,517
xpcproxy[1733]
assertion failed: 13C64: xpcproxy + 3438 [D559FC96-E6B1-363A-B850-C7AC9734F210]: 0x2Hi Sam ...
Quit Safari.
Go to HD/Library/Internet Plug-Ins
Move the Adobe PDF Browser plug in (or just PDF Browser plugin) to the Trash.
Relaunch Safari to test.
If that didn't help, open System Preferences > Print & Scan > Print and delete the print queue.
Then try again.
Maybe you are looking for
-
With a 2007 macbook, do I use a mini-DVI to DVI for Epson LCD projector?
Just want to make sure I buy the correct adapter. I want to Power Point over my 2007 black MacBook using the Epson 3LCD projector, and I'm not sure if I need mini-DVI to DVI to VGA, or mini-DVI to VGA. The projector has the blue 16 pin cable, no US
-
I cannot restore ipad after upgrading to itunes 10.2.2.14
Since upgrading my Ipad to latest revision of Itunes, I can no longer sync and it now requires a restore. I took the Ipad to Best Buy and they restored it, but when I connected it back onto my PC, same thing happens. When I goto restore screen a
-
Hi Experts, I have created following procedure and triyng to get column value by using rownum. When I run the scenario, I am getting following exception at ODI Procedure step. Can any one please help me on it I have created loop package to fetch colu
-
HT4623 I can't get maps to work for me - I can't get past the first step!
The only options I have are overview or end. I've tried swiping from right to left and left to right on the green box at the top... Nada
-
Webservice initialized on every method-call.
Hello! I have written two webservices. One containing a EJB and a SOAP-Webservice and one with just a SOAP-Webservice. If I call the EJB-Version the webservice gets inizialized by glassfish on the first call and then stays running (Constructor is not