HT2404 in incoming calls how to display company name with name
Hello
How we can get display of company name along with name while receiving incoming calls in iphone 4.
Thanks
actually according to this, t-mobile became the first carrier to offer the paid feature in 2011
http://www.geek.com/mobile/t-mobile-becomes-first-major-us-carrier-to-add-caller -id-feature-1402597/
i don't know if anything changed with verizon after 2011, but i don't see any such feature on their website. I know you can set/remove your own name that is displayed to others, with verizon. but i cant' specifically find this incoming name feature.
Similar Messages
-
How to display COMPANY CODE DESCRIPTION ON THE TOP LEFT OF PAGE
How to display COMPANY CODE DESCRIPTION(Field BUTXT) ON THE TOP LEFT OF EVERY PAGE OF THE REPORT GENERATED.
Actually I have collected BUTXT using
'select butxt into table itab from t001 where bukrs = p_bukrs'
where p_bukrs is the selection screen field.
REQUIREMENT: Depending on what company code we give on the selection screen, corresponding company code description(butxt) should be displayed at the top left of every page. how would i display it in TOP-OF-PAGE EVENT.Hi
It's very simple, but what is the need to use <b>into table itab</b> in your select query.
Rather, define a variable
data: v_butxt type t001-butxt.
Select butxt into v_butxt from t001 where bukrs = pbukrs.
TOP-OF-PAGE.
write :/ v_butxt.
Regards
Surya. -
I have spent hours on the phone with Apple and AT&T. I went thought reset, on/off, etc, etc with both companies to no avail. Each company pointed fingers at the other....as being the source of the problem.
Problems: Suddenly ALL incoming calls were going directly to VM with no signal I missed calls and/or had VM. I was also unable to receive all Text Messages...Oddly, I could send text messages to anyone (even non-apple users but I could not receive their responses)........then I when I got home I started receiving text messages from other apples users ONLY. I assume now - iMessage kicked in and I could text (send/receive) other iPhone/iPad/iTouch users ONLY. ....yes, I could still (send) text messages to my husband's blackberry (he received my messages fine) but my phone would NOT receive his text respones.
Finally, I googled the problem and found this community where other people have had the exact same problems! One person said he "turned off 3 G" which was the solution for him....so I did the same and VIOLA! My problem solved! Nevermind the fact that I pay for 3G and cannot use it....so here's my question, if 3G is the problem on my phone is this an APPLE issue or a NETWORK problem? Do I purchase a new phone and slip in my same SIM card and hope the same does not occur or do I get a whole new SIM card and phone? What is the long term resolution to this problem?
I am happy however to find that my problem is NOT an isolated incident and wish Apple or AT&T had told me this is not so uncommon because I thought (based on the baffled response from Apple) that this has never occurred before. Where is Steve Jobs when we need him?jsavage9621,
It pains me to hear about your experience with the Home Phone Connect. This device usually works seamlessly and is a great alternative to a landline phone. It sounds like we've done our fair share of work on your account here. I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you. I look forward to speaking with you.
TrevorC_VZW
Follow us on Twitter @VZWSupport -
How to display polygons both with line contour and filled interior?
How to display polygons both with line contour and filled interior?
Java3D 1.3, Java 1.4.1-rcHi,
I just started with Java3D last week.
I assume you mean drawing polygons with outlines (wireframe) in one color and polygon face filling with another color. If so, I've got the same question! (I usually think of "contour" to refers to plotting surface intensity of independent data like temperature or elevation, but I don't think you mean this.)
The only solution I've found so far is to make two shapes with the same geometry.
Here's an example - an outlined and filled cube. I made it using a generalize class DualShape which is two shapes with the same geometry, but one filled and one as a line.
It works, although I can't say I understand the setPolygonOffset(), knowing what value to set. Without the command, the depthbuffer can't consistently decide which should be in front between the fills and lines so it looks bad.
I certainly think it would be nicer to do both internally, like:
pa.setPolygonMode(pa.POLYGON_LINE || pa.POLYGON_FILL);
And then have setFillColor and setLineColor for each.
I don't know why they don't allow this - maybe OpenGL can't do it like this so Java3D follows.
If anyone has any better ideas I'd like to hear about it.
Tom Ruen
class DualCube extends DualShape // cube with outline and fill colors
public DualCube(float ax, float ay, float az, //cube lower corner
float bx, float by, float bz, //cube upper corner
float br, float bg, float bb, //border color
float fr, float fg, float fb) //fill color
setGeometry(new CubeGeometry(ax,ay,az,bx,by,bz),br,bg,bb,fr,fg,fb);
class DualShape extends BranchGroup //general shape with outline and fill colors
Appearance ap1,ap2;
PolygonAttributes pa1,pa2;
ColoringAttributes ca1,ca2;
Shape3D s1,s2;
public void setGeometry(Geometry geo, float br, float bg, float bb, float fr, float fg, float fb)
//filled shape:
addChild(s1=new Shape3D(geo, ap1=new Appearance()));
ap1.setPolygonAttributes(pa1=new PolygonAttributes()); pa1.setPolygonMode(pa1.POLYGON_FILL);
ap1.setColoringAttributes(ca1=new ColoringAttributes()); ca1.setColor(fr,fg,fb);
//lined (wire) shape:
addChild(s2=new Shape3D(geo, ap2=new Appearance()));
ap2.setPolygonAttributes(pa2=new PolygonAttributes()); pa2.setPolygonMode(pa2.POLYGON_LINE);
ap2.setColoringAttributes(ca2=new ColoringAttributes()); ca2.setColor(br,bg,bb);
pa2.setPolygonOffset(-1000); //Uncertain what "float" value to use!
class CubeGeometry extends IndexedQuadArray //cube geometry data
private static final int[] faces =
0,3,2,1,
0,1,5,4,
1,2,6,5,
2,3,7,6,
3,0,4,7,
4,5,6,7
private static float[] verts = new float[24];
public CubeGeometry(float ax, float ay, float az, //lower limit
float bx, float by, float bz) //upper limit
super(8, IndexedQuadArray.COORDINATES , 24);
int n;
n=0; verts[n]=ax; verts[n+1]=ay; verts[n+2]=az;
n=3; verts[n]=bx; verts[n+1]=ay; verts[n+2]=az;
n=6; verts[n]=bx; verts[n+1]=by; verts[n+2]=az;
n=9; verts[n]=ax; verts[n+1]=by; verts[n+2]=az;
n=12; verts[n]=ax; verts[n+1]=ay; verts[n+2]=bz;
n=15; verts[n]=bx; verts[n+1]=ay; verts[n+2]=bz;
n=18; verts[n]=bx; verts[n+1]=by; verts[n+2]=bz;
n=21; verts[n]=ax; verts[n+1]=by; verts[n+2]=bz;
setCoordinates(0, verts);
setCoordinateIndices(0, faces); -
How to display a cursor with sand glass ?
I would like to know how to display a cursor with sand glass I am performing a long operation ?
Thanks in advance.As long as you are using anything that extends Component...
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
doLongOperation();
this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));Hope this helps,
Radish21
PS the API is ALWAYS your friend
http://java.sun.com/j2se/1.4.1/docs/api/
http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Cursor.html -
How could I delete files with name string with "TAL" and older than 05.05.
How could I delete files with name string with "TAL" and older than 05.05.2009 on unix
Our ECC Ides system today was not responsible. For first time 17 users were working on the systtem (IWN2008/SQL2005 based). Before the people were maximally 5.
The server is done by making a homogeneous system copy from an blade machine(now it is an VIrTUAL)
There was enaught disk space. However I checked Wokload 03sdn transaction) inn system. and found out that at that time of restarting(I had to restart system 3 times to get logged on the system and even then it was almost unresponsive.
I can found in there top abap."Login_Pw", "SESSION_MANAGER", "?". (BAtch), "ADMSBUF, >DEleyed Function call, RSPOWPOO""RSWWclear", ""VA01", "SAPMHHTP "Buf Sync" >DDLOC CLEANUP)""rsbtctE"
What can I do?
¸
Who could interfer SAP_CCMS_MONI_BATCH_DPSAP_CCMS_MONI_BATCH_DP
the 2 main users under users profile were ZUGTIN running and SAPSYS( running many system jobs)
How to approach the problem -
Incomming call does not display number
I have iPhone6 Plus. All incoming calls display name only. how can get it to display number also
It will only display the name if the information is entered into your contacts. That is how it works on the phone to display the name. If you want to see the number, you would have to go into your recent calls and tap on the blue . The highlighted number is the one they called from.
-
I am a verizon carrier and I recently upgraded from a curve to a tour 9630. I am on a business enterprise server that syncs with my outlook. On my old curve and other BB's, when I would receive a call from someone in my address book, the screen would display: the person's name, their number, and in parentheses- what contact number that was, ex: (work) (mobile), etc.. These are all still listed in my outlook and blackberry address book correctly. Now on my tour, on incoming calls from individuals in my address book, it only lists their name and number. The parentheses that listed what contact type their number was, has dissapeared and since I don't memorize #'s anymore, I dont know where they're calling from. Is this a glitch or a removed feature on the Tour? Or is it a setting that I can't find?
I have the same issue...not sure if my upgrade to BB OS 5.0 solved it.
It now shows # type when I answer the phone and on the call log screen.
Try seeing if #type is displayed once you answer the phone...If not Upgrade
Cheers
K -
Incoming calls: Country code displaying wrong
No idea why this has started happening. I have two iPhones, one a Malaysia number and one a Thailand number.
I am in Malaysia now and had two friends of mine call me from Thailand yesterday but despite their numbers being in my phone book, correctly formatted, the phone did not display their names. Not only did it not display their names it replaced the correct dialling code for Thailand (+66) with the Malaysia code (+60). Having done some digging the only thing that it seems might be responsible is the International Dial Assist, which I have now turned off. But I'd have thought IDA would be to assist with dialling, not screwing up the numbers of incoming calls from callers whose numbers are CORRECTLY listed in the Contacts with the CORRECT international code.
Seems like yet another useless feature that you have to dig around to disable if you want an iPhone to just work. Why on earth would I would the international code of my contact replaced by the domestic code of my home country??? More and more time I seem to be spending with IOS devices these days just to get them to do what I want!!
Not impressed at all. Anyone else come across this useless bug (feature)?Caller ID is a carrier feature. The phone can only display what is sent by your carrier. Contact them and report the problem.
-
Nokia 2700 - Incoming Call Number not displaying!!...
When an incoming call comes, the number does not get displayed..
Where is the setting change option for this??check with your operator that caller id is turned on or update your sim card
If i have helped at all a click on the white star below would be nice thanks.
Now using the Lumia 1520 -
Please Help::How to display a Map with LIsts as Keys and Values using JSTL
Hi,
I need some assistance on how to display a Map in JSP using struts or core JSTL. I have a HashMap which has a List of keys and each key maps to a value of an ArrayList.i.e I have an ArrayList of taxCodes and each taxCode maps to a value of taxDetails which is an ArrayList of details for for that particular taxCode. I have some trouble to display each taxCode then display taxDetails for each taxCode. Here is my code below:
OrderDetails.java
package orderitems;
import java.sql.*;
import java.util.*;
public class OrderDetails {
private LineOder lineOrder;
private Map lineItems;
//returns an item number, key_item, from its unique keys
public int getItemNumber(int key_item, String key_year,
String key_office,String key_client,String key_company){
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
int itmNum = 0;
* key_item a unique number for an item.
* key_year,key_office,key_client,key_company unique keys
* for each order where this key_item is taken
* from.
String select = "SELECT key_item FROM "+
Constants.WEB_TABLE +" WHERE key_item = " + key_item +
" AND key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company +"'";
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
rst = stat.executeQuery(select);
if(rst.next()){
itmNum = Integer.parseInt(rst.getString("key_item"));
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return itmNum;
//get a list of item number(item codes)
public List getAllItemNumbers(String key_year,
String key_office,String key_client,String key_company){
List itemNumbers = new ArrayList();
LineItem itemNumber = null;
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
String select = "SELECT key_item FROM "+ Constants.WEB_TABLE +
" WHERE key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company + "'";
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
rst = stat.executeQuery(select);
while(rst.next()){
itemNumber = new LineItem();
itemNumber.setKey_item(Integer.parseInt(rst.getString("key_item")));
itemNumbers.add(itemNumber);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return itemNumbers;
//get a list of tax codes
public List getAllTaxCodes(int key_item, String key_year,
String key_office,String key_client,String key_company){
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
ItemTax taxCode;
List taxCodes = new ArrayList();
int itemNum = getItemNumber(key_item, key_year,
key_office,key_client,key_company);
String select = "SELECT key_tax_code FROM "+
Constants.WEB_TABLE +" WHERE key_item = " + itemNum +
" AND key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company +"'";
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
rst = stat.executeQuery(select);
while(rst.next()){
taxCode = new ItemTax();
taxCode.setKey_tax_code(rst.getString("key_tax_code"));
taxCodes.add(taxCode);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return taxCodes;
/////This methode returns a Map which am trying to display in JSP
//use tax code to get tax details
public Map getItemTaxDetails(String key_year,String key_office,
String key_client,String key_company,int key_item){
ItemTax taxDetail = null;
List taxDetails = new ArrayList();
List itemTaxCodes = new ArrayList();
Map itemTaxDetails = new HashMap();
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
//get a list of all tax codes of an item with a
//given item number
itemTaxCodes = getAllTaxCodes(key_item,key_year,
key_office,key_client,key_company);
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
String taxCode = itemTaxCode.getKey_tax_code();
String select = "SELECT tax_type,tax_value," +
"tax_limit_val FROM "+ Constants.WEB_TABLE +
" WHERE key_item = "+ key_item +
" AND key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company +"'" +
" AND key_tax_code = '" + taxCode + "'";
rst = stat.executeQuery(select);
while(rst.next()){
taxDetail = new ItemTax();
//records to be displayed only
taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
taxDetail.setTax_value(rst.getString("tax_value"));
taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
//////other details records ommited//////////////////////////
taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
* A HashMap which has all taxCodes of an item as its keys
* and an ArrayList of taxdetails as its values.
* I return this for display in a JSP.
itemTaxDetails.put(taxCode,taxDetails);
System.out.println();
System.out.println("*********CONSOLE OUTPUT*************");//display on console
Set set = itemTaxDetails.keySet();
Iterator iter = set.iterator();
System.out.println("Key\t\tValue\r\n");
while (iter.hasNext()) {
Object taxCode=iter.next();
Object details=itemTaxDetails.get(taxCode);
System.out.println(taxCode +"\t" + details);
System.out.println("************************************");
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return itemTaxDetails;
//details of an item with all its taxes
public List getAllItemDetails(String key_year,
String key_office,String key_client,String key_company){
List lineItems = new ArrayList();
List itemNumbers = new ArrayList();
Map taxDetails = new HashMap();
LineItem item = null;
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
//A list of all item numbers in the declaration
itemNumbers = getAllItemNumbers(key_year,
key_office,key_client,key_company);
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
for(Iterator itemIter= itemNumbers.iterator(); itemIter.hasNext();){
LineItem itemNum = (LineItem)itemIter.next();
int itemNumber = itemNum.getKey_item();
String select = "SELECT item_description,item_mass," +
"item_cost" +
" FROM " + Constants.WEB_TABLE +
" WHERE key_year = '"+key_year+"'" +
" AND key_office = '"+key_office+ "'"+
" AND key_client = '"+key_client+ "'"+
" AND key_company = '"+key_company+ "'"+
" AND key_item = " + itemNumber;
rst = stat.executeQuery(select);
while(rst.next()){
item = new LineItem();
item.setItem_description(rst.getString("item_description"));
item.setItem_mass(Float.parseFloat(rst.getString("item_mass")));
item.setKey_item(Integer.parseInt(rst.getString("item_cost")));
//////other details records ommited//////////////////////////
/* A HashMap of all itemTaxeCodes as its keys and an
* ArrayList of itemTaxedetails as its values
taxDetails = getItemTaxDetails(item.getKey_year(),item.getKey_office(),
item.getKey_client(),item.getKey_company(),item.getKey_item());
//item tax details
item.setItmTaxes(taxDetails);
//list of items with tax details
lineItems.add(item);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return lineItems;
public Set getOrders(String key_year,String key_office,
String key_client,String key_company){
List lineItems = new ArrayList();
Set lineOrders = new HashSet();
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
LineOder lineOrder = null;
String select = "SELECT * FROM " + Constants.WEB_TABLE +
" WHERE key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company + "'";
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
rst = stat.executeQuery(select);
while(rst.next()){
lineOrder = new LineOder();
lineOrder.setKey_year(rst.getString("key_year"));
lineOrder.setKey_office(rst.getString("key_office"));
lineOrder.setKey_client(rst.getString("key_client"));
lineOrder.setKey_company(rst.getString("key_company"));
////list of items with all their details
lineItems = getAllItemDetails(lineOrder.getKey_year(),lineOrder.getKey_office(),
lineOrder.getKey_client(),lineOrder.getKey_company());
//setting item details
lineOrder.setItems(lineItems);
//a list of order with all details
lineOrders.add(lineOrder);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return lineOrders;
Controller.java
package orderitems;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Controller extends HttpServlet {
private Map taxDetails = new HashMap();
private OrderDetails orderDetails = null;
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)throws
ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
String key_year = "2007";
String key_office = "VZX00";
String key_company = "DG20";
String key_client = "ZI001";
int key_item = 1;
String nextView = "/taxdetails_list.jsp";
orderDetails = new OrderDetails();
taxDetails = orderDetails.getItemTaxDetails(key_year,key_office,
key_company,key_client,key_item);
//Store the collection objects into HTTP Request
request.setAttribute("taxDetails", taxDetails);
RequestDispatcher reqstDisp =
getServletContext().getRequestDispatcher(nextView);
reqstDisp.forward(request,response);
protected void doGet(HttpServletRequest request,
HttpServletResponse response)throws
ServletException, IOException {
processRequest(request, response);
protected void doPost(HttpServletRequest request,
HttpServletResponse response)throws
ServletException, IOException {
processRequest(request, response);
taxdetails_list.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Simple Tax Detail Diaplay ::</title>
<link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
</head>
<body>
<jsp:useBean id="taxDetails" class="java.util.HashMap" scope="request"/>
<table>
<c:forEach items="${taxDetails}" var="hMap">
<tr>
<td><c:out value="${hMap.key}" /></td>
<!--td><%--c:out value="${hMap.value}" /--%></td-->
</tr>
</c:forEach>
</table>
</body>
</html>am displaying taxCodes(in this case i have VAT and ICD) fine but cant figure out how to display a list of value for each taxCode.Here is the output am getting
both in my JSP and on the console:
*******************************CONSOLE OUTPUT****************************
Key Value
ICD [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
VAT [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
Edited by: aiEx on Oct 8, 2007 6:54 AMhi evnafets,
yes i need a nested for loop.I have tried your advice but my bean properties are not found.Am getting this error:
javax.servlet.ServletException: Unable to find a value for "key_item" in object of class "java.lang.String" using operator "."
I have tried this as stated earlier in the post:I have tried to make the method getItemTaxDetails return a List and get the returned list value as taxDetails. I then tested to display this list on JSP and its displaying fine.
public List getItemTaxDetails(String key_year,String key_office,
String key_client,String key_company,int key_item){
ItemTax taxDetail = null;
List taxDetails = new ArrayList();
List itemTaxCodes = new ArrayList();
Map itemTaxDetails = new HashMap();
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
//get a list of all tax codes of an item with a
//given item number
itemTaxCodes = getAllTaxCodes(key_item,key_year,
key_office,key_client,key_company);
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
String taxCode = itemTaxCode.getKey_tax_code();
String select = "SELECT tax_type,tax_value," +
"tax_limit_val FROM "+ Constants.WEB_TABLE +
" WHERE key_item = "+ key_item +
" AND key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company +"'" +
" AND key_tax_code = '" + taxCode + "'";
rst = stat.executeQuery(select);
while(rst.next()){
taxDetail = new ItemTax();
//records to be displayed only
taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
taxDetail.setTax_value(rst.getString("tax_value"));
taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
//////other details records ommited//////////////////////////
taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
* A HashMap which has all taxCodes of an item as its keys
* and an ArrayList of taxdetails as its values.
* I return this for display in a JSP.
itemTaxDetails.put(taxCode,taxDetails);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
//return itemTaxDetails;
return taxDetails;
}And my JSP
taxdetails_list.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
</head>
<body>
<table>
<c:forEach var="curRecord" items="${taxDetails}" varStatus="rowCounter">
<c:choose>
<c:when test="${rowCounter.count % 2 == 0}">
<c:set var="rowStyle" scope="page" value="odd" />
</c:when>
<c:otherwise>
<c:set var="rowStyle" scope="page" value="even" />
</c:otherwise>
</c:choose>
<tr class="${rowStyle}">
<td>${curRecord.key_item}</td>
<td>${curRecord.tax_value}</td>
<td>${curRecord.tax_limit_val}</td>
</tr>
</c:forEach>
</table>
</body>
</html>I can't see where am going wrong even with your advice.Please help.
Thnx. -
How to display 2 layouts with 2 different Header and Footer in a template.
Hi,
I am using XML Publisher 5.5. I have created one template which is having two layouts. I am using <?Start: Body?> and <?end body?> for displaying Headers and footers. Now my problem is, I need to display first layout with it's associated Header and footer and then second layout with other header and footer. But the two layouts should come in single template file. How is it possible?. Is there any work around? Please help me as this is the urgent requirement to my client.
Thanks.
Siva.No problem. Select Insert -> Break from the menu bar. Then select a "Section Break" - Next page.
Header 1
<?start:body?>
Page 1
<?end: body?>
Footer 1
==================Section Break (Next Page)=================
Header 2
<?start:body?>
Page 2
<?end: body?>
Footer 2
Worked like a charm.
Klaus -
How to display pdf file with java code?
Hi All,
i have a jsp pagein that page if i click one icon then my backing bean method will call and that method will create pdf document and write some the content in that file and now i want to display that generated pdf document.
it should look like you have pressed one icon and it displayed pdf file to you to view.
java code below:
FacesContext fc = FacesContext.getCurrentInstance();
ExternalContext ec = fc.getExternalContext();
HttpServletResponse resp = (HttpServletResponse) ec.getResponse();
resp.setHeader("Content-Disposition", "filename=\"" + temppdfFile);
resp.encodeRedirectURL(temppdfFile.getAbsolutePath());
resp.setContentType("application/pdf");
ServletOutputStream out = resp.getOutputStream();
ServletUtils.returnFile(temppdfFile, out);
out.flush();
and above temppdfFile is my generated pdf file.
when i am executing this code, it was opening dialog box for save and cancel for the file, but the name of the file it was showing me the "jsp file name" with no file extention (in wich jsp file i am calling my backing bean method) and type is "Unknown File type" and from is "local host"
it was not showing me open option so i am saving that file then that file saved as a pdffile with tha name of my jsp file and there is nothing in that file(i.e. empty file).
what is the solution for this. there is any wrong in my code.
Please suggest me.
Thanks in advance
Indirapublic Object buildBarCodes() throws Exception
File bulkBarcodes = null;
String tempPDFFile = this.makeTempDir();
File tempDir = new File("BulkPDF_Files_Print");
if(!tempDir.exists())
tempDir.mkdir();
bulkBarcodes = File.createTempFile
(tempPDFFile, ".pdf", tempDir);
//bulkBarcodes = new File(tempDir, tempPDFFile+"BulkBarcode"+"."+"pdf");
if(!bulkBarcodes.exists())
bulkBarcodes.createNewFile();
Document document = new Document();
FileOutputStream combinedOutput = new FileOutputStream(bulkBarcodes);
PdfWriter.getInstance(document, combinedOutput);
document.open();
document.add(new Paragraph("\n"));
document.add(new Paragraph("\n"));
Image image = Image.getInstance(bc.generateBarcodeBytes(bc.getBarcode()));
document.add(image);
combinedOutput.flush();
document.close();
combinedOutput.close();
FacesContext facesc = FacesContext.getCurrentInstance();
ExternalContext ec = facesc.getExternalContext();
HttpServletResponse resp = (HttpServletResponse) ec.getResponse();
resp.setHeader("Content-Disposition", "inline: BulkBarcodes.pdf");
resp.encodeRedirectURL(bulkBarcodes.getAbsolutePath());
resp.setContentType("application/pdf");
resp.setBufferSize(10000000);
ServletOutputStream out = resp.getOutputStream();
ServletUtils.returnFile(bulkBarcodes, out);
out.flush();
return "success";
This is my action method which will call when ever i press a button in my jsp page.
This method will create the barcode for the given barcode number and write that barcode image in pdf file
(i saw that pdf file which i have created through my above method, This PDF file opening when i was opening manually and the data init that is also correct means successfully it writes the mage of that barcode)
This method taking the jsp file to open because as earlier i said it was trying to open unknown file type document and i saved that file and opended with editplus and that was the jsp file in which file i am calling my action method I mean to say it was not taking the pdf file which i have created above it was taking the jsp file -
How to display the actual code name on the table of the uix file?
I have established entity object:Schoolinfo,and a view object SchoolinfoView,and registered in the application module.and I drag and drop to a uix file the Datacontrol and it works well,i can see the schoolinfo table's contents.The problem is:in schoolinfo there is an attribute schooltype code,like 1,and referenced to another table:CodeDict in the database, and I want to display the actual code name when displaying the table on the uix file,like "middle school", not just the code 1.How can I do?
This is more of BC4J question.
The data that is displayed (View) is a SQL query. You should be able to change the SQL query represented by the view object appropriately to get the desired output. You can see more information on view objects from Jdev help to get more information on it.
Thanks
Vijay V
Team UIX -
How to display html content with image in Adobe Flash and Flex mobile project?
Hi,
I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?Hello,
The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
Here this is the iFrame approach:
http://code.google.com/p/flex-iframe/
If the swc do not work in Flex4 just use its ource code which works...
...it is basically based on this:
http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
see also and vote, please:
http://bugs.adobe.com/jira/browse/SDK-12291
http://bugs.adobe.com/jira/browse/SDK-13740
Regards
Marc
Maybe you are looking for
-
Changing which Resolution and Main Monitor With Applescript
Hi all, I am trying to make an applescript to change my monitor settings. I have 2 monitors the one I want to be my main one "E2370" and my second one "L2000CN" which I want to mirror the main one. My main problem is that I do not know how to change
-
Subordinate packaging for handling units labels
Hi Experts! I have run in to an issue with the multilevel packagng.after creating the packaging instructions, we are going to setup the packaging determination recorod, now there are 4 options like option 1 PACKAGING INSTRUCTIONS option 2 ALTERNATIVE
-
I want to keep a lot of images in the memory, so I use an array of images. The images are simple drawings and use few very few colors, thus take few space. I think they take 200 ko all together. However, once in a Image object, I suspect java to use
-
My Current iphone 4 is registered with itunes on my work pc, i have just bought a laptop and will be installing itunes on it, can i register my iphone with the new itunes and will i lose all my music, apps, etc from the old one?
-
Where is tutorials.zip file and completedx.mxml?
Hello, I am going through all of the lessons in the Flex2_Getting_Started.PDF file, and on page 191 where is begins talking about Data Services and the Data Management Service, the manual clearly references a tutorials.zip file containing completed1.