Can I use CallableStatement in JSTL?
Is it possible to use CallableStatements in JSTL? I would like to be able to do something like this:
<sql:update var="res" sql="{ ? = call rms.campaigns.s_code_update(?, ?, ?, ?) }" >
<sql:param value="${item1}" />
<sql:param value="${item2}" />
<sql:param value="${item3}" />
<sql:param value="${item4}" />
<sql:param value="${item5}" />
</sql:update>
And then how to retrieve the result (first parameter)? Also, the second parameter is also IN-OUT, how to get its value?
It all works fine in scriplet, of course. And because I am new to OC4J, I don't know how to write a custom tag. Don't really have time to fig the documentation either.
Thank you for response.
I wouldn't use the SQL taglib at all. It is only useful for quick tests, but certainly not for constant/production use. The same applies to scriptlets as well.
Use real Java classes for the business and data logic. Write a DAO class which interacts with the database and write a Servlet class which interacts with the DAO class and sets the results in the request or session scope and forwards the request to the JSP. Finally in the JSP use JSTL/EL to access and iterate over the results.
Similar Messages
-
Can I use c:out JSTL tag with int values?
I am attempting to c:out an int variable in my JSP using a JSTL core tag. First is it possible to do c:out an int? Second, if it is...can anyone see anything wrong with my code?
This is the error log I am getting:
<Oct 7, 2008 10:20:29 AM MDT> <Error> <HTTP> <BEA-101017> <[ServletContext(id=20
462449,name=rconnect,context-path=/rconnect)] Root cause of ServletException.
javax.servlet.jsp.JspException: ServletException in '/WEB-INF/pages/signup/summa
ry.jsp': An error occurred while evaluating custom action attribute "value" with
value "${orderForm.numOtaModulesSelected}": Unable to find a value for "numOtaM
odulesSelected" in object of class "com.echostar.rconnect.struts.formbeans.Order
FormBean" using operator "." (null)
This is the code:
<c:out value="${orderForm.numOtaModulesSelected}" />where numOtaModulesSelected is defined as a private member variable of the OrderFormBean
I have included the taglib.
Thanks to anyone who can helpYour OrderFormBean class needs to implement a getNumOtaModulesSelected method for that to work. The expression language won't let you get at fields, you need to access it via JavaBeans properties.
-
Can we use logical Operator in C:When tag of JSTL
Hi,
I am developing an application in JSTL.
I am using c:when tag. I have question whether can we use Logical OR operator in JSTL.
I have tried using the following Syntax: The two bean fields have the value DISABLED
<c:set var="testval" value = "${bean.val}" />
<c:set var="testvalue" value ="${bean.value}" />
Ex: <c:when test="${testval eq 'DISABLED'} or ${testvalue eq 'DISABLED'}">
Ex: <c:when test="${(testval eq 'DISABLED') or (testvalue eq 'DISABLED')}">
Ex: <c:when test="${testval eq 'DISABLED' or testvalue eq 'DISABLED'}">
retrieving both these values from bean.
The following syntaxes did not work.
Please give me some pointers to resolve the issue.
Thanks,
Ravi
Edited by: user10977303 on Nov 17, 2010 9:05 AM
Edited by: user10977303 on Nov 17, 2010 9:10 AMThe entire expression including the 'or' has to be inside the ${}.
What this has to do with error handling beats me. -
How can i use JSTL inside custom tag attribute
Hi,
I have one button tag which displays the button with round corner. I will show the button like this:
<ep:button key="buttons.submit" name="submitBtn" styleClass="But"
onClick='submitPage(''<c:out value='${buttonName}' />)' />
I am getting the problem with the above code. how can i use JSTL inside the custom tags.
Thanks in Advance,
LALITHNo. The details are given below:
I have included the follwing line in web.xml file:
<taglib>
<taglib-uri>/tags/button</taglib-uri>
<taglib-location>/WEB-INF/button.tld</taglib-location>
</taglib>button.tld file
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>2.0</jspversion>
<shortname>button</shortname>
<tag>
<name>button</name>
<tagclass>com.ksi.ep.web.taglib.ButtonTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>key</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>onClick</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</taglib>ButtonTag.java :
public class ButtonTag extends TagSupport {
private static final long serialVersionUID = 6837146537426981407L;
* Initialise the logger for the class
protected final transient Log log = LogFactory.getLog(ButtonTag.class);
* holds the Value of the button tag
protected String onClick = null;
* holds message resources key
protected String key = null;
* The message resources for this package.
protected static MessageResources messages =
MessageResources.getMessageResources
("ApplicationResources");
* (non-Javadoc)
* @see javax.servlet.jsp.tagext.TagSupport#doStartTag()
public int doStartTag() throws JspException {
StringBuffer label = new StringBuffer();
HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
try {
log.debug("in doStartTag()");
Locale locale = pageContext.getRequest().getLocale();
if (locale == null) {
locale = Locale.getDefault();
log.info("");
label.append("<a border=\"0\" style=\"text-decoration:none;color:#FFFFFF\" href=\"JavaScript:");
label.append(onClick);
label.append("\" >");
label.append("<table onClick=\"");
label.append(onClick);
label.append("\" ");
if(onmouseout!=null && !"".equalsIgnoreCase(onmouseout))
label.append(" onmouseout=\"");
label.append(onmouseout);
label.append("\" ");
if(onmouseover!=null && !"".equalsIgnoreCase(onmouseover)){
label.append(" onmouseover=\"");
label.append(onmouseover);
label.append("\" ");
if(title!=null && !"".equalsIgnoreCase(title)){
label.append(" title=\"");
label.append(title);
label.append("\" ");
label.append("style=\"cursor:hand\" tabindex=\"1\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"");
label.append(request.getContextPath());
label.append(System.getProperty("file.separator"));
label.append("images");
label.append(System.getProperty("file.separator"));
label.append("background1.jpg\" > ");
label.append("<tr><td width=\"10\"><img border=\"0\" src=\"");
label.append(request.getContextPath());
label.append(System.getProperty("file.separator"));
label.append("images");
label.append(System.getProperty("file.separator"));
label.append("leftcorner.jpg\" ></td> ");
label.append("<td valign=\"middle\" style=\"padding-bottom:2px\"><font color=\"#FFFFFF\" style=\"");
label.append(styleClass);
label.append("\">");
label.append(messages.getMessage(key));
label.append("</font></td>");
label.append("<td width=\"10\" align=\"right\"><img src=\"");
label.append(request.getContextPath());
label.append(System.getProperty("file.separator"));
label.append("images");
label.append(System.getProperty("file.separator"));
label.append("rightcorner.jpg\" border=\"0\" ></td>");
label.append("</tr></table></a>");
pageContext.getOut().print(label.toString());
} catch (Exception e) {
log.error("Exception occured while rendering the button", e);
throw new JspException(e);
return (SKIP_BODY);
* Release all allocated resources.
public void release() {
this.name=null;
this.key=null;
this.onClick=null;
}In my JSP I have mentioned the taglib directive as
<%@ taglib uri="/tags/button" prefix="ep"%>and
<ep:button key="buttons.submit" name="submitBtn" styleClass="But"
onClick='overwritePreApprovals('<c:out value='${transactionalDetails['inPrepList']}' />')' />Servlet.service() for servlet action threw exception
org.apache.jasper.JasperException: /pages/pms/coordinator/Dashboard.jsp(325,48) Unterminated <ep:button tag
Thanks,
LALITH -
How can I use multiple row insert or update into DB in JSP?
Hi all,
pls help for my question.
"How can I use multiple rows insert or update into DB in JSP?"
I mean I will insert or update the multiple records like grid component. All the data I enter will go into the DB.
With thanks,That isn't true. Different SQL databases have
different capabilities and use different syntax, That's true - every database has its own quirks and extensions. No disagreement there. But they all follow ANSI SQL for CRUD operations. Since the OP said they wanted to do INSERTs and UPDATEs in batches, I assumed that ANSI SQL was sufficient.
I'd argue that it's best to use ANSI SQL as much as possible, especially if you want your JDBC code to be portable between databases.
and there are also a lot of different ways of talking to
SQL databases that are possible in JSP, from using
plain old java.sql.* in scriptlets to using the
jstlsql taglib. I've done maintenance on both, and
they are as different as night and day.Right, because you don't maintain JSP and Java classes the same way. No news there. Both java.sql and JSTL sql taglib are both based on SQL and JDBC. Same difference, except that one uses tags and the other doesn't. Both are Java JDBC code in the end.
Well, sure. As long as you only want to update rows
with the same value in column 2. I had the impression
he wanted to update a whole table. If he only meant
update all rows with the same value in a given column
with the same value, that's trivial. All updates do
that. But as far as I know there's know way to update
more than one row where the values are different.I used this as an example to demonstrate that it's possible to UPDATE more than one row at a time. If I have 1,000 rows, and each one is a separate UPDATE statement that's unique from all the others, I guess I'd have to write 1,000 UPDATE statements. It's possible to have them all either succeed or fail as a single unit of work. I'm pointing out transaction, because they weren't coming up in the discussion.
Unless you're using MySQL, for instance. I only have
experience with MySQL and M$ SQL Server, so I don't
know what PostgreSQL, Oracle, Sybase, DB2 and all the
rest are capable of, but I know for sure that MySQL
can insert multiple rows while SQL Server can't (or at
least I've never seen the syntax for doing it if it
does).Right, but this syntax seems to be specific to MySQL The moment you use it, you're locked into MySQL. There are other ways to accomplish the same thing with ANSI SQL.
Don't assume that all SQL databases are the same.
They're not, and it can really screw you up badly if
you assume you can deploy a project you've developed
with one database in an environment where you have to
use a different one. Even different versions of the
same database can have huge differences. I recommend
you get a copy of the O'Reilly book, SQL in a
Nutshell. It covers the most common DBMSes and does a
good job of pointing out the differences.Yes, I understand that.
It's funny that you're telling me not to assume that all SQL databases are the same. You're the one who's proposing that the OP use a MySQL-specific extension.
I haven't looked at the MySQL docs to find out how the syntax you're suggesting works. What if one value set INSERT succeeds and the next one fails? Does MySQL roll back the successful INSERT? Is the unit of work under the JDBC driver's control with autoCommit?
The OP is free to follow your suggestion. I'm pointing out that there are transactions for units of work and ANSI SQL ways to accomplish the same thing. -
Using Struts and JSTL together
I have
<html:form action="xy.do">
<c:set var="name" value="shalik"/>
<html:text property="name" value="<c:out value="${name}"/>"/>
</html:form>
How could I put data stored in ${name} to show in the text
Also, is there a shorter way to access java variables using jstl core
I would not want to do
<input type="text" name="name" value="<c:out value="${name}"/>"/>
which works, because I have to use strutsNo you can't include tags as attributes to other tags.
Yes, you can definitely use the Struts and JSTL together.
If you want to use EL expressions with the struts tags, it depends on your server.
If you have a JSP2.0 container (eg Tomcat 5) its no problem at all. You can use the EL expressions directly with the standard struts tags.
For a JSP1.2 container, there are specifically written struts-el tags. They let you use EL expressions instead of <%= %> expressions
<c:set var="name" value="shalik"/>
<html:text property="name" value="${name}"/>The struts-el tags only have a subset of the struts tags. It is intended for use with the JSTL. For instance the c:if tag easily replaces a lot of the logic conditional ones (equal, lessThan, etc etc)
The tags are available as part of the standard struts download in the contrib directory.
However for what you seem to be wanting to do, wouldn't it be more struts-like to have an action that specifically populates the action form, and just have
<html:text property="name"/>
The value would then be automagically populated from the form bean.
Hope this helps,
evnafets -
Using CallableStatement.wasNull() after getObject()
In our aplpication we are returning ResultSets from PL/SQL functions. We use CallableStatement.getObject()
to return the ResultSet. After calling getObject we call wasNull() to make sure
we did receive something.
Originally we were using the jcbd thin driver provided by Oracle and our code
ran fine. We had problems with that driver and switched to the OCI driver. The
OCI driver does not like our code calling wasNull after getObject(). It throws
and exception saying we have not called a getXXX method yet.
The specification is kind of vague on this, it says wasNull can be called after
any getXXX method. My question is, is there a problem with the OCI driver or
is or code wrong?
Below is a snippet of code that worked with the thin driver but not with the OCI
driver:
CallableStatement _stmt = null;
int _arg = 1;
try {
stmt = connection.prepareCall(GET_OTHER_PERFORMANCE_ASSETS_STMT);
stmt.registerOutParameter(arg++, sonymusic.util.JDBCHelper.SONYMUSIC_CURSOR);
if (inSiteId == null) {
stmt.setNull(arg++, java.sql.Types.BIGINT);
} else {
stmt.setLong(arg++, inSiteId.longValue());
if (inPerformanceId == null) {
stmt.setNull(arg++, java.sql.Types.BIGINT);
} else {
stmt.setLong(arg++, inPerformanceId.longValue());
if (authUserIdIn == null) {
stmt.setNull(arg++, java.sql.Types.BIGINT);
} else {
stmt.setLong(arg++, authUserIdIn.longValue());
_stmt.execute();
java.sql.ResultSet result = (java.sql.ResultSet)stmt.getObject(1);
if (_stmt.wasNull())
return null;
else
return _result;Hi Jeff,
as mentioned in the spec, refereing to the doc you refered to earlier:
You should be able to get the resultset first and then read the param on the
resultset and then make a call to CallableStatement.wasNull to discover if
the read returned a SQL "NULL". (if this value read from the resultset is a
SQL "NULL" the wasNull() call will return a true).
Hope this answers your questions here and clears up any confusion with the
java null and, the SQL NULL that the wasNull call detects.
getObject() is basically returning you what you asked it to return when you
registered the out parameter.
http://java.sun.com/j2se/1.3/docs/guide/jdbc/spec/jdbc-spec.frame7.html
7.3.2 Retrieving NULL values as OUT parameters
As with ResultSets, in order to determine if a given OUT parameter value is
SQL "NULL" you must first read the parameter and then use the
CallableStatement.wasNull method to discover if the read returned a SQL
"NULL".
When you read a SQL "NULL" value using one of the CallableStatement.getXXX
methods, you will receive a value of null, zero, or false, following the
same rules specified in section 7.1.2 for the ResultSet.getXXX methods.
sree
"J Drost" <[email protected]> wrote in message
news:[email protected]...
>
I am comfortable with a getXXX on available returning an empty result setif the
pl/sql function itself returned an empty result set (if you do 'where 1 =0');
Just as I am comfortable with a getInt invocation returning a 0 if thepl/sql
function itself returned a 0. Or Course.
I do however expect to be able to check wasNull on the CallableStatementafter
getting a ResultSet from an out parameter. If the pl/sql function itselfdid
not return a result set (it is possible in Oracle to simply not return avalue
from a function), then I expect wasNull to return true.
I would imaging that it is open to discussion what the getXXX shouldreturn if
the database doesn't return anything. I would expect a null (after all Iam calling
getObject, and you wouldn't expect the driver any other kind of emptyobject,
so why an empty result set) but you could argue that an empty result setwould
be acceptable. Regardless of that argument; if a function didn't returnthe result
set, after the getXXX the wasNull should return true. Otherwise thedriver is
hiding the actual results of the database call.
Jeff
"Sree Bodapati" <[email protected]> wrote:
And I would like to add this note from 'Joe' here :
"an empty result set is still a result set, not a null.
Applications may well run queries that return no rows, but the
application
may still want the result set metadata, which is only available from
the resultset. In fact some applications purposely execute queries
with a clause like 'where 1 = 0' to ensure no rows are returned, but
guarantee that they get the metadata."
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
If you read through the same doc an little furture, They talk about
resultsets,
7.3.2 Retrieving NULL values as OUT parameters
As with ResultSets, in order to determine if a given OUT parametervalue
is
SQL "NULL" you must first read the parameter and then use the
CallableStatement.wasNull method to discover if the read returned aSQL
"NULL".
When you read a SQL "NULL" value using one of the
CallableStatement.getXXX
methods, you will receive a value of null, zero, or false, followingthe
same rules specified in section 7.1.2 for the ResultSet.getXXX methods.
hth
sree
"J Drost" <[email protected]> wrote in message
news:[email protected]...
Is their any explanation as to why a default value (an empty result
set)
is returned
without setting the wasNull flag? This behavior seems to be
inconsistent
with
the way other out parameters work. For example, when a function
that is
expected
to return a number doesn't return a value, the default value (zero)
is
returned
from the CallableStatement.getInt() method, but the wasNull flag
is set
to
true.
I don't know, it just doesn't seem consistent to me.
Also, you are saying that if I have a pl/sql function that returns
a
REFCURSOR
(a weakly typed cursor), and that function doesn't return a value,
then
the driver
is going to create a ResultSet for me that contains no rows and has
a
ResultSetMetaData
with a columnCount of zero? I would expect to get a java null based
on
what the
spec, as well as they way other parameter types work.
http://java.sun.com/j2se/1.3/docs/guide/jdbc/spec/jdbc-spec.frame7.html
7.1.2 Null result values
* A Java "null" value for those getXXX methods that return Javaobjects.
* A zero value for getByte, getShort, getInt, getLong, getFloat,and
getDouble
* A false value for getBoolean.
"Sree Bodapati" <[email protected]> wrote:
wasNull() checks to see if the last OUT param value is SQL NULL.
if
you
have a CURSOR (ResultSet equivalent) as the OUT param then it willnot
be
SQL NULL if no results are returned.
The Weblogic oci driver returns an empty resultset object in sucha
case.
I
dont think it sets the wasNull() to return true in such a scenario.
HTH
Sree
"Robert DeWilder" <robert@[email protected]> wrote in message
news:[email protected]...
In our aplpication we are returning ResultSets from PL/SQL
functions.
We
use CallableStatement.getObject()
to return the ResultSet. After calling getObject we call
wasNull()
to
make sure
we did receive something.
Originally we were using the jcbd thin driver provided by Oracle
and
our
code
ran fine. We had problems with that driver and switched to the
OCI
driver. The
OCI driver does not like our code calling wasNull after
getObject().
It
throws
and exception saying we have not called a getXXX method yet.
The specification is kind of vague on this, it says wasNull can
be
called
after
any getXXX method. My question is, is there a problem with the
OCI
driver
or
is or code wrong?
Below is a snippet of code that worked with the thin driver but
not
with
the OCI
driver:
CallableStatement _stmt = null;
int _arg = 1;
try {
_stmt =
connection.prepareCall(GETOTHER_PERFORMANCE_ASSETS_STMT);
stmt.registerOutParameter(arg++,sonymusic.util.JDBCHelper.SONYMUSIC_CURSOR);
if (inSiteId == null) {
stmt.setNull(arg++, java.sql.Types.BIGINT);
} else {
stmt.setLong(arg++, inSiteId.longValue());
if (inPerformanceId == null) {
stmt.setNull(arg++, java.sql.Types.BIGINT);
} else {
stmt.setLong(arg++, inPerformanceId.longValue());
if (authUserIdIn == null) {
stmt.setNull(arg++, java.sql.Types.BIGINT);
} else {
stmt.setLong(arg++, authUserIdIn.longValue());
_stmt.execute();
java.sql.ResultSet _result =
(java.sql.ResultSet)_stmt.getObject(1);
if (_stmt.wasNull())
return null;
else
return _result; -
Can we use IF statement in PDF templates
Hi,
I developed a PDF template. I need to underline ang bold the records based on a specific condition. Can we use IF conditon in PDF templates. Please suggest.
Thanks...Billy Verreynne wrote:
The case syntax is a bit funny though as there's not a single condition evaluation (like a DECODE or case structs from some other languages).
This is what I would expect a typical case struct to look like - evaluating a single condition:
case <condition>
when <value-1> then return <result-1>
when <value-n> then return <result-n>
else
return <return-z>
end
?:| You mean like this...?
SQL> ed
Wrote file afiedt.buf
1 select empno, ename, deptno
2 ,case deptno
3 when 10 then 'This is Department 10'
4 when 20 then 'And department 20'
5 when 30 then 'And of course department 30'
6 else
7 'Blimey it is something else!'
8 end as dept_desc
9* from emp
SQL> /
EMPNO ENAME DEPTNO DEPT_DESC
7369 SMITH 20 And department 20
7499 ALLEN 30 And of course department 30
7521 WARD 30 And of course department 30
7566 JONES 20 And department 20
7654 MARTIN 30 And of course department 30
7698 BLAKE 30 And of course department 30
7782 CLARK 10 This is Department 10
7788 SCOTT 20 And department 20
7839 KING 10 This is Department 10
7844 TURNER 30 And of course department 30
7876 ADAMS 20 And department 20
7900 JAMES 30 And of course department 30
7902 FORD 20 And department 20
7934 MILLER 10 This is Department 10
14 rows selected. -
In alv report can i use control break events? if no .whay?
Hi all,
in alv report can i use control break events? if no .whay?hi,
you can use control break statements in ALV report.
for example: if one PO is having more than one line item, that time you need to display PO only once. -
I need to uninstall and reinstall iTunes (it won't let me update). I have IE 8 on Windows XP, and iTunes 10 something. In my Program files list I see iTunes and iTunes (2) and even iPod and iPod (2) where a tech had to back up and do this for me before. I'm just trying to fix it all. I keep getting the "The feature you are trying to use is on a network resource that is unavailable. Click OK to try again, or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below." I can even run a search and find the folder, but it gives me the same error message. I was planning on using the Microsoft Fix-It tool to help uninstall then Reinstall iTunes. But I need to backup my library. So, how do I copy or back up my iTunes library of over 1,500 songs? Can I copy the folder to desktop or can I use a Flash Drive to backup my music? I don't want to do anything until I know for sure how I can backup my songs, and then reinstall them into iTunes. Thanks for any help.
Ok, thanks that helps. I don't have an external hard drive though. What about backing up through 'the cloud'? I'm just wondering since my husband syncs his iPod to the PC through iTunes and he's worried that he will lose all the songs on his iPod if the library is lost from iTunes and he tries to 'sync' it up again. I'm not exactly sure how to 'copy the entire iTunes folder' either. I kinda suck at this unless I have step by step instructions, which I haven't found yet on iTunes help or other sources.
The only way I know how to back anything up is by going back to a restore point, etc. (as stated before, we don't have an external hard drive.)
Thanks for the info. -
How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes? I wanted my teenager's AppleID to be different from mine so that she couldn't charge stuff to my AppleID, therefore I created me another one. Now when I go to Sync either device, it tells me that this IOS device can only be synced with one AppleID. Then I get a message to erase it, not going to do that, lol. If I logout as one ID and login as the other, will it still retain all synced information on the PC from the first IOS device? If I can just log in out of the AppleID, then I have no problem doing that as long as the synced apps, music, etc stays there for both. I am not trying to copy from one to the other, just want to make sure I have a backup for the UhOh times. If logging in and out on the same PC of multiple AppleIDs is acceptible then I need to be able to authorize the PC for both devices. Thanks for the help. I am new to the iOS world.
"Method Three
Create a separate iTunes library for each device. Note:It is important that you make a new iTunes Library file. Do not justmake a copy of your existing iTunes Library file. If iTunes is open,quit it.
This one may work. I searched and searched on the website for something like this, I guess I just didn't search correctly, lol. I will give this a try later. My daughter is not be back for a few weekends, therefore I will have to try the Method 3 when she comes back for the weekend again. "
I forgot to mention that she has a PC at her house that she also syncs to. Would this cause a problem. I am already getting that pop up saying that the iPod is synced to another library (even though she is signed in with her Apple ID to iTunes) and gives the pop up to Cancel, Erase & Sync, or Transfer Purchases. My question arose because she clicked on "Erase & Sync" by mistake when she plugged the iPod to her PC the first time. When the iPod was purchased and setup, it was synced to my PC first. When she went home, she hooked it up to her PC and then she erased it by accident. I was able to restore all the missing stuff yesterday using my PC. However, even after doing that it still told me the next time I hooked it up last night that the iPod was currently synced with a different library. Hopefully, you can help me understand all this. She wants to sync her iPod and also backup her iPod at both places. Both PCs have been authorised. Thanks -
Can I Use iTunes Store without Storing Bank Accounts, etc, in my Profile?
Hi
Today a fraudulent charge of $89.99 appeared on my iTunes account. This suggests that a hacker has obtained my password, and hence access to all information in my iTunes account, including credit card or Paypal account information. I can deal with having to claim refunds for fraudulent iTunes purchases, but I cannot afford to risk ID Theft, or to have my back account information in the possession of hackers.
(1) Is it possible to maintain an iTunes account that does not store bank accounts, and ideally stores no personal information other than my email address?
(2) If I can do this, I assume I'd then have to enter that information for each purchase. Will this information be expunged once the ourchase is complete? Or would it remain on the system in some form, accessible to hackers?
(3) If (1) is not possible, how do I cancel my iTunes account? There does not seem to be such an option on the iTunes Account Management screens.
Thanks,
ChrisYou can remove your credit card from your account. Go into the account, click "Edit payment information" and you will see the option under credit card to click "None."
For purchasing, you can either enter the card info per transaction, or you can start using iTunes gift cards which are readily available. -
How can I use apps downloaded by different users on the same iPad?
I have a 'work' iPad so the apps on it have been downloaded using two different accounts. Which was fine until I did an update at the weekend and suddenly I can only use the one's I downloaded. Is there anyway of 'sharing' these apps so who logs in can use all the apps?
No, I don't think there is. As far as I know the iPad is meant to be a 'one per Apple ID' device...and isn't really meant to have multiple Apple ID's downloading apps to a singular device.
I think the simplest way around your issue is to use only one Apple ID to download everything. -
Can i use 2 ipad's on the same itunes account with different apple accounts?
Both me and partner have an ipad 4. Though we only have one computer, can we use the same itunes but with different apple acount without any issues? We use some of the same apps, but my partner plays fx Baldus Gate and is worries that save files will be corrupted.
Each iPad should be linked to its owner's personal, private and nonshared AppleID. In the Mac, each one should have a different login account so each has their own iTunes Library containing your iPad's details. When you use iTunes on the Mac, since each logs in with a different login and corresponding Home directory, iTunes picks up the correct AppleID.
-
how can i use my account without the billing info, as i do not have a credit card. and my shipping and billing info is under US. i'm in singapore. how do i change this?
If you are just visiting Singapore, then leave the account as it is. If you have moved there, then view your account using the iTunes app on a Mac or PC and change the country/region to your current location and address. If you do not have a bank card, you can fund your account using iTunes gift cards if available in Singapore.
Maybe you are looking for
-
Logic taking too much time to execute
Dear Friends, My i_bkpf internal table has approx. 3 lakh records another table i_del has 2 lakh records. I have to delete these 2 lakh records of i_del from i_bkpf. I'd written the following piece of code for the same but it takes hell lot of time a
-
Selection Variant in Std Report
Hi All, When I goto a report transaction (for example ME2N) some of the selection fields values in the seleciton screen defaults (from cache memory?). But when I select a Variant the defaulted values do NOT clear out. And the Variant does NOT have an
-
I have canceld my membership end I want my money back. My ordernumber is:
I have canceld my membership end I want my money back. G & A Ejendomme Aps.
-
Status shows AWAY when i am signed out on android
I have a htc one m8 with latest lollipop and also updated skype to its latest version.. When i sign out, i appear AWAY and to avoid my contacts being confused, i have to leave my status as INVISIBLE so i can correctly be shown as OFFLINE. This is a
-
Urgent!! how to find the recent committed record
how to find the recent commited record if the records are inserted at the same time?