Help pls whats wrong
import java.awt.*;
import java.awt.event.*;
// Java extension packages
import javax.swing.*;
public class Main extends JFrame {//implements ActionListener {
JLabel DepositCurrentLable;
JTextField DepositCurrentField;
// set up GUI
public Main() {
super( "Mustafa Al-Ani" );
GridBagLayout layout = new GridBagLayout();
Container container = getContentPane();;
GridBagConstraints constraints = new GridBagConstraints();
container.setLayout( layout );
// set up GUI
DepositCurrentLable = new JLabel( "Deposit" );
DepositCurrentField = new JTextField( "Deposit",2 );
setBackground(Color.lightGray);
constraints.fill = GridBagConstraints.HORIZONTAL;
addComponent (DepositCurrentLable, 0,0,2,1);
addComponent (DepositCurrentField, 0,1,2,1);
setSize( 675, 150 );
setVisible(true);
private void addComponent ( Component component, int row, int column, int width, int hight )
constraints.gridx = column;
constraints.gridy = row;
constraints.gridwight = width;
constraints.gridhight = hight;
layout.setConstraints( component, constraints );
container.add ( component );
public static void main( String args[] )
Main application = new Main();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
and when i compilit it gave me this erar
--------------------Configuration: JDK version 1.3.1_05 <Default>--------------------
C:\Program Files\Xinox Software\JCreator LE\MyProjects\semster2\assignment2\Main.java:127: cannot resolve symbol
symbol : variable constraints
location: class Main
constraints.gridx = column;
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\semster2\assignment2\Main.java:128: cannot resolve symbol
symbol : variable constraints
location: class Main
constraints.gridy = row;
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\semster2\assignment2\Main.java:130: cannot resolve symbol
symbol : variable constraints
location: class Main
constraints.gridwight = width;
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\semster2\assignment2\Main.java:131: cannot resolve symbol
symbol : variable constraints
location: class Main
constraints.gridhight = hight;
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\semster2\assignment2\Main.java:133: cannot resolve symbol
symbol : variable constraints
location: class Main
layout.setConstraints( component, constraints );
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\semster2\assignment2\Main.java:133: cannot resolve symbol
symbol : variable layout
location: class Main
layout.setConstraints( component, constraints );
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\semster2\assignment2\Main.java:134: cannot resolve symbol
symbol : variable container
location: class Main
container.add ( component );
^
7 errors
Process completed.
no thanks i know what u mean i did it and it worked fine
but now the problim is compiled fine but when i run it it give me som error on the dos window
this the code
// Java core packages
import java.awt.*;
import java.awt.event.*;
// Java extension packages
import javax.swing.*;
public class Main extends JFrame {//implements ActionListener {
JLabel DepositCurrentLable, BalanceCurrentLable, CashOverDraftCurrentLable,
TransferCurrentLable, IntrestOverDraftCurrentLable, ChargOverDraftCurrentLable;
JTextField DepositCurrentField, BalanceCurrentField, CashOverDraftCurrentField,
TransferCurrentField, IntrestOverDraftCurrentField, ChargOverDraftCurrentField;
JLabel CreditBalanceCreditLable, CardPaymentCreditLable, CreditLimitCreditLable,
TransferCreditLable, InterestRateCreditLable, ChargeOverdraftCreditLable;
JTextField CreditBalanceCreditField, CardPaymentCreditField, CreditLimitCreditField,
TransferCreditField, InterestRateCreditField, ChargeOverdraftCreditField;
JLabel AmountSavingLable, YearSavingLable, MonthSavingLable, InterstSavingLable, GetSavingLable;
JTextField AmountSavingField, YearSavingField, MonthSavingField, InterstSavingField, GetSavingField;
JButton EnterCurrentButton, EnterCreditButton, EnterSavingButton;
JButton ExitButton;
Container container;
GridBagLayout layout;
GridBagConstraints constraints;
// set up GUI
public Main() {
super( "Mustafa Al-Ani" );
container = getContentPane();
layout = new GridBagLayout();
container.setLayout( layout );
constraints = new GridBagConstraints();
// set up GUI
DepositCurrentLable = new JLabel( "Deposit" );
DepositCurrentField = new JTextField( "Deposit",8 );
BalanceCurrentLable = new JLabel( "Balane" );
BalanceCurrentField = new JTextField( "Balane",8 );
CashOverDraftCurrentLable = new JLabel( "Cash Over Draft" );
CashOverDraftCurrentField = new JTextField( "Cash Over Draft",8 );
TransferCurrentLable = new JLabel( "Transfer To Credit Account" );
TransferCurrentField = new JTextField( "Transfer To Credit Account",8 );
IntrestOverDraftCurrentLable = new JLabel( "Intrest Over Draft" );
IntrestOverDraftCurrentField = new JTextField( "Intrest Over Draft",8 );
ChargOverDraftCurrentLable = new JLabel( "Charg Over Draft" );
ChargOverDraftCurrentField = new JTextField( "Charg Over Draft",8 );
EnterCurrentButton = new JButton( " Enter " );
ExitButton = new JButton( "Exit" );
CreditBalanceCreditLable = new JLabel( "Credit Balance" );
CreditBalanceCreditField = new JTextField( "CreditBalance",8 );
CardPaymentCreditLable = new JLabel( "Card Payment" );
CardPaymentCreditField = new JTextField( "Card Payment",8 );
CreditLimitCreditLable = new JLabel( "Credit Limit" );
CreditLimitCreditField = new JTextField( "CreditLimit",8 );
TransferCreditLable = new JLabel( "Transfer To Current Account" );
TransferCreditField = new JTextField( "Transfer To Current Account",8 );
InterestRateCreditLable = new JLabel( "Interest Rate" );
InterestRateCreditField = new JTextField( "Interest Rate",8 );
ChargeOverdraftCreditLable = new JLabel( "Charge Overdraft" );
ChargeOverdraftCreditField = new JTextField( "Charge Overdraft",8 );
EnterCreditButton = new JButton( " Enter " );
AmountSavingLable = new JLabel( "SAVING AMOUNT" );
AmountSavingField = new JTextField( "SAVING AMOUNT",8 );
YearSavingLable = new JLabel( "Year" );
YearSavingField = new JTextField( "Year",8 );
MonthSavingLable = new JLabel( "Month" );
MonthSavingField = new JTextField( "Month",8 );
InterstSavingLable = new JLabel( "Interst Saving" );
InterstSavingField = new JTextField( "InterstSaving",8 );
GetSavingLable = new JLabel( "Get Interst" );
GetSavingField = new JTextField( "Get Interst",8 );
setBackground(Color.lightGray);
constraints.fill = GridBagConstraints.BOTH;
addComponent (DepositCurrentLable, 0,0,1,1);
addComponent (DepositCurrentField, 0,1,1,1);
addComponent (BalanceCurrentLable, 0,2,1,1);
addComponent (BalanceCurrentField, 0,3,1,1);
addComponent (CashOverDraftCurrentLable, 1,0,1,1);
addComponent (CashOverDraftCurrentField, 1,1,1,1);
addComponent (TransferCurrentLable, 1,2,1,1);
addComponent (TransferCurrentField, 1,3,1,1);
addComponent (IntrestOverDraftCurrentLable, 2,0,1,1);
addComponent (IntrestOverDraftCurrentField, 2,1,1,1);
addComponent (ChargOverDraftCurrentLable, 2,2,1,1);
addComponent (ChargOverDraftCurrentField, 2,3,1,1);
addComponent (EnterCurrentButton, 3,2,1,1);
addComponent (CreditBalanceCreditLable, 4,0,1,1);
addComponent (CreditBalanceCreditField, 4,1,1,1);
addComponent (CardPaymentCreditLable, 4,2,1,1);
addComponent (CardPaymentCreditField, 4,3,1,1);
addComponent (CreditLimitCreditLable, 5,0,1,1);
addComponent (CreditLimitCreditField, 5,1,1,1);
addComponent (TransferCreditLable, 5,2,1,1);
addComponent (TransferCreditField, 5,3,1,1);
addComponent (InterestRateCreditLable, 6,0,1,1);
addComponent (InterestRateCreditField, 6,1,1,1);
addComponent (ChargeOverdraftCreditLable, 6,2,1,1);
addComponent (ChargeOverdraftCreditField, 6,3,1,1);
addComponent (EnterCreditButton, 7,2,1,1);
addComponent (AmountSavingLable, 8,0,1,1);
addComponent (AmountSavingField, 8,1,1,1);
addComponent (YearSavingLable, 9,0,1,1);
addComponent (YearSavingField, 9,1,1,1);
addComponent (MonthSavingLable, 9,2,1,1);
addComponent (MonthSavingField, 9,3,1,1);
addComponent (InterstSavingLable, 10,0,1,1);
addComponent (InterstSavingField, 10,1,1,1);
addComponent (GetSavingLable, 10,2,1,1);
addComponent (GetSavingField, 10,3,1,1);
addComponent (EnterSavingButton, 11,2,1,1);
addComponent (ExitButton, 12,2,1,1);
setSize( 550, 300 );
setVisible(true);
private void addComponent ( Component component, int row,
int column, int width, int height )
constraints.gridx = column;
constraints.gridy = row;
constraints.gridwidth = width;
constraints.gridheight = height;
layout.setConstraints( component, constraints );
container.add ( component );
public static void main( String args[] )
Main application = new Main();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
the code run fine if i dont put this 2 line
addComponent (EnterSavingButton, 11,2,1,1);
addComponent (ExitButton, 12,2,1,1);
thanks in adva
Similar Messages
-
HELP PLEASE - WHATS WRONG WITH THIS CODE
Hi. I get this message coming up when I try to compile the code,
run:
java.lang.NullPointerException
at sumcalculator.SumNumbers.<init>(SumNumbers.java:34)
at sumcalculator.SumNumbers.main(SumNumbers.java:93)
Exception in thread "main"
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)
I am not sure whats wrong with the code. Any assistance would be nice. The code is below.
package sumcalculator;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class SumNumbers extends JFrame implements FocusListener {
JTextField value1;
JTextField value2;
JLabel equals;
JTextField sum;
JButton add;
JButton minus;
JButton divide;
JButton multiply;
JLabel operation;
public SumNumbers() {
SumNumbersLayout customLayout = new SumNumbersLayout();
getContentPane().setFont(new Font("Helvetica", Font.PLAIN, 12));
getContentPane().setLayout(customLayout);
value1.addFocusListener(this);
value2.addFocusListener(this);
sum.setEditable(true);
value1 = new JTextField("");
getContentPane().add(value1);
value2 = new JTextField("");
getContentPane().add(value2);
equals = new JLabel("label_1");
getContentPane().add(equals);
sum = new JTextField("");
getContentPane().add(sum);
add = new JButton("+");
getContentPane().add(add);
minus = new JButton("-");
getContentPane().add(minus);
divide = new JButton("/");
getContentPane().add(divide);
multiply = new JButton("*");
getContentPane().add(multiply);
operation = new JLabel();
getContentPane().add(operation);
setSize(getPreferredSize());
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
public void focusGained(FocusEvent event){
try {
float total = Float.parseFloat(value1.getText()) +
Float.parseFloat(value2.getText());
sum.setText("" + total);
} catch (NumberFormatException nfe) {
value1.setText("0");
value2.setText("0");
sum.setText("0");
public void focusLost(FocusEvent event){
focusGained(event);
public static void main(String args[]) {
SumNumbers window = new SumNumbers();
window.setTitle("SumNumbers");
window.pack();
window.show();
class SumNumbersLayout implements LayoutManager {
public SumNumbersLayout() {
public void addLayoutComponent(String name, Component comp) {
public void removeLayoutComponent(Component comp) {
public Dimension preferredLayoutSize(Container parent) {
Dimension dim = new Dimension(0, 0);
Insets insets = parent.getInsets();
dim.width = 711 + insets.left + insets.right;
dim.height = 240 + insets.top + insets.bottom;
return dim;
public Dimension minimumLayoutSize(Container parent) {
Dimension dim = new Dimension(0, 0);
return dim;
public void layoutContainer(Container parent) {
Insets insets = parent.getInsets();
Component c;
c = parent.getComponent(0);
if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+48,128,40);}
c = parent.getComponent(1);
if (c.isVisible()) {c.setBounds(insets.left+256,insets.top+48,128,40);}
c = parent.getComponent(2);
if (c.isVisible()) {c.setBounds(insets.left+408,insets.top+48,56,40);}
c = parent.getComponent(3);
if (c.isVisible()) {c.setBounds(insets.left+488,insets.top+48,152,40);}
c = parent.getComponent(4);
if (c.isVisible()) {c.setBounds(insets.left+128,insets.top+136,72,40);}
c = parent.getComponent(5);
if (c.isVisible()) {c.setBounds(insets.left+248,insets.top+136,72,40);}
c = parent.getComponent(6);
if (c.isVisible()) {c.setBounds(insets.left+368,insets.top+136,72,40);}
c = parent.getComponent(7);
if (c.isVisible()) {c.setBounds(insets.left+488,insets.top+136,72,40);}
c = parent.getComponent(8);
if (c.isVisible()) {c.setBounds(insets.left+176,insets.top+48,56,40);}
}Thank you. How do i amend this? I have defined value1though.Yes, you did - but after the call to addFocusListener(...). It needs to be before it.
BTW, you did the same thing with "value2.addFocusListener(this)" and "sum.setEditable(true)" on the next two lines. You're attempting to call a method on an object that doesn't exist yet (i.e., you haven't called new yet). -
Need help understanding whats wrong with ASP checking for empty fields.
Can anyone tell me whats wrong with these if statements: If i
sumbit the
form providing everything except the dream_inscript field it
gives me this
error:
=================================================
Microsoft OLE DB Provider for ODBC Drivers error '80040e57'
[Microsoft][ODBC Microsoft Access Driver]Invalid string or
buffer length
/purch_confirm_mail.asp, line 67
=================================================
If i submit the form and provide just that field along with
the first 4
which are automatically passed from the DB the form submits
fine and no
problem.. I know it has something to do with my If
Statements..
Basically i want to check the 4 fields:
dream_inscript If this one is -1 then pass N/A to the db
dream_price If dream_inscript <> -1 then pass 45 to the
db
dream_comm if dream_comm is empty then pass N/A to the db
custom_inscript if custom_inscript is empty then pass N/A to
the db
custom_wanted if this is Y then pass 45 to the db
custom_comm if this is empty then pass N/A to the db
MM_editCmd.CommandText = "INSERT INTO tbMailOrders
(item_number,
item_summary, item_price, shipping_cost, dream_price,
dream_inscript,
dream_comm, custom_comm, custom_price, video_wanted,
video_price,
grandtotal, cs_name, pp_email, c_email) VALUES (?, ?, ?, ?,
MM_editCmd.Prepared = true
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param1", 202,
1, 10, Request.Form("item_number")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param2", 202,
1, 255, Request.Form("item_summary")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param3", 202,
1, 10, Request.Form("itemprice")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param4", 202,
1, 10, Request.Form("shippingcost")) ' adVarWChar
If cStr(Request.Form("dream_inscript"))<> "-1" Then
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param5", 202, 1,
10, "45") ' adVarWChar
Else
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param5", 202,
1, 10, "0.00") ' adVarWChar
End If
If cStr(Request.Form("dream_inscript"))<> "-1" Then
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param6", 203, 1,
1073741823, Request.Form("dream_inscript")) ' adLongVarWChar
Else
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param6", 203,
1, 1073741823, "N/A") ' adLongVarWChar
End If
If Len(cStr(Request.Form("dream_comm")))= "0" Then
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param7", 203,
1, 1073741823, "N/A") ' adLongVarWChar
Else
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param7", 203,
1, 1073741823, Request.Form("dream_comm")) ' adLongVarWChar
End If
If Len(cStr(Request.Form("custom_inscript")))= "0" Then
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param8", 203,
1, 1073741823, "N/A") ' adLongVarWChar
Else
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param8", 203, 1,
1073741823, Request.Form("custom_inscript")) ' adLongVarWChar
End If
If Request.Form("custom_wanted")= "Y" Then
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param9", 202,
1, 10, "45") ' adVarWChar
Else
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param9", 202,
1, 10, "0.00") ' adVarWChar
End If
If Request.Form("video_wanted")= "Y" Then
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param10", 202,
1, 10, "Yes") ' adVarWChar
Else
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param10", 202,
1, 10, "No") ' adVarWChar
End If
If Request.Form("video_wanted")= "Y" Then
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param11", 202, 1,
10, "15") ' adVarWChar
Else
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param11", 202,
1, 10, 0.00) ' adVarWChar
End If
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param12", 202,
1, 10, Request.Form("grand")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param13", 202,
1, 255, Request.Form("name")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param14", 202,
1, 255, Request.Form("email")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param15", 202,
1, 255, Request.Form("email2")) ' adVarWChar
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
ASP, SQL2005, DW8 VBScript, Accessissue corrected.
ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio
2008
"Daniel" <[email protected]> wrote in message
news:[email protected]...
> Can anyone tell me whats wrong with these if statements:
If i sumbit the
> form providing everything except the dream_inscript
field it gives me this
> error:
> =================================================
> Microsoft OLE DB Provider for ODBC Drivers error
'80040e57'
> [Microsoft][ODBC Microsoft Access Driver]Invalid string
or buffer length
>
> /purch_confirm_mail.asp, line 67
> =================================================
> If i submit the form and provide just that field along
with the first 4
> which are automatically passed from the DB the form
submits fine and no
> problem.. I know it has something to do with my If
Statements..
>
> Basically i want to check the 4 fields:
>
> dream_inscript If this one is -1 then pass N/A to the db
> dream_price If dream_inscript <> -1 then pass 45
to the db
> dream_comm if dream_comm is empty then pass N/A to the
db
>
> custom_inscript if custom_inscript is empty then pass
N/A to the db
> custom_wanted if this is Y then pass 45 to the db
> custom_comm if this is empty then pass N/A to the db
>
>
>
>
> MM_editCmd.CommandText = "INSERT INTO tbMailOrders
(item_number,
> item_summary, item_price, shipping_cost, dream_price,
dream_inscript,
> dream_comm, custom_comm, custom_price, video_wanted,
video_price,
> grandtotal, cs_name, pp_email, c_email) VALUES (?, ?, ?,
> ?, ?, ?, ?, ?, ?)"
> MM_editCmd.Prepared = true
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param1", 202,
> 1, 10, Request.Form("item_number")) ' adVarWChar
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param2", 202,
> 1, 255, Request.Form("item_summary")) ' adVarWChar
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param3", 202,
> 1, 10, Request.Form("itemprice")) ' adVarWChar
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param4", 202,
> 1, 10, Request.Form("shippingcost")) ' adVarWChar
> If cStr(Request.Form("dream_inscript"))<> "-1"
Then
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param5", 202, 1,
> 10, "45") ' adVarWChar
> Else
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param5", 202,
> 1, 10, "0.00") ' adVarWChar
> End If
> If cStr(Request.Form("dream_inscript"))<> "-1"
Then
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param6", 203, 1,
> 1073741823, Request.Form("dream_inscript")) '
adLongVarWChar
> Else
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param6", 203,
> 1, 1073741823, "N/A") ' adLongVarWChar
> End If
> If Len(cStr(Request.Form("dream_comm")))= "0" Then
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param7", 203,
> 1, 1073741823, "N/A") ' adLongVarWChar
> Else
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param7", 203,
> 1, 1073741823, Request.Form("dream_comm")) '
adLongVarWChar
> End If
> If Len(cStr(Request.Form("custom_inscript")))= "0" Then
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param8", 203,
> 1, 1073741823, "N/A") ' adLongVarWChar
> Else
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param8", 203, 1,
> 1073741823, Request.Form("custom_inscript")) '
adLongVarWChar
> End If
> If Request.Form("custom_wanted")= "Y" Then
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param9", 202,
> 1, 10, "45") ' adVarWChar
> Else
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param9", 202,
> 1, 10, "0.00") ' adVarWChar
> End If
> If Request.Form("video_wanted")= "Y" Then
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param10", 202,
> 1, 10, "Yes") ' adVarWChar
> Else
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param10", 202,
> 1, 10, "No") ' adVarWChar
> End If
> If Request.Form("video_wanted")= "Y" Then
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param11", 202, 1,
> 10, "15") ' adVarWChar
> Else
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param11", 202,
> 1, 10, 0.00) ' adVarWChar
> End If
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param12", 202,
> 1, 10, Request.Form("grand")) ' adVarWChar
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param13", 202,
> 1, 255, Request.Form("name")) ' adVarWChar
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param14", 202,
> 1, 255, Request.Form("email")) ' adVarWChar
> MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param15", 202,
> 1, 255, Request.Form("email2")) ' adVarWChar
> MM_editCmd.Execute
> MM_editCmd.ActiveConnection.Close
>
> --
> ************************************************
> ASP, SQL2005, DW8 VBScript, Access
> -
Need help finding whats wrong with my servlet
I've been trying to create a simple login page following the tutorial found http://www.roseindia.net/mysql/loginauthentication.shtml
There is a single JSP (AuthenticateLogin.jsp) and a servlet (LoginAuthentication.java). Basically what has to happen is the user enters the login information in the JSP which sends these info to the servlet. The servlet checks whether the username and password exist in the table and if they do it displays the user if not it says to that the username and/or password is invalid. I'm using IntelliJ IDEA as the IDE, Tomcat as the application server and MySQL 5.0.18 for the database. I'm also using Ant as a build tool.
The following are my code:
AuthenticateLogin.jsp
<head>
<title>Login Page</title>
<script type="text/javascript">
function validate() {
var user = document.frm.user
var pass = document.frm.pass
if ((user == null) || (user == "")) {
alert("Please enter a username")
user.focus()
return false
if ((pass == null) || (pass == "")) {
alert("Please enter a password")
pass.focus()
return false
</script>
</head>
<body>
<form name="frm" action="LoginAuthentication" method="post" onsubmit="return validate()">
Name: <input type="text" name="user"/>
<br/>
Password: <input type="text" name="pass" />
<br />
<input type="submit" value="Sign in"/>
<input type="reset" value="Reset"/>
</form>
</body>
</html>{code}
LoginAuthentication.java
{code:java}import java.io.*;*
*import java.sql.*;
import javax.servlet.*;*
*import javax.servlet.http.*;
public class LoginAuthentication extends HttpServlet {
private ServletConfig config;
public void init (ServletConfig config) throws ServletException {
this.config = config;
public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
PrintWriter out = response.getWriter();
String connectionUrl = "jdbc:mysql://192.168.0.95:3306/loginTester";
Connection connection = null;
ResultSet rs;
String userName = new String("");
String passwrd = new String("");
response.setContentType("text/html");
try {
Class.forName("com.mysql.jdbc.Driver");
connection = DriverManager.getConnection(connectionUrl, "root", "");
String sql = "select user, password from user";
Statement s = connection.createStatement();
s.executeQuery(sql);
rs = s.getResultSet();
while (rs.next()) {
userName = rs.getString("user");
passwrd = rs.getString("password");
rs.close();
s.close();
} catch (Exception e){
System.out.println("Exception thrown: ["+e+"}");
if (userName.equals(request.getParameter("user")) && passwrd.equals(request.getParameter("pass"))) {
// response.sendRedirect("http://localhost:8080/xplanner_reports/");
out.println("Hello"+userName);
} else {
out.println("Please enter a valid username and password");
out.println("<a href='AuthenticateLogin.jsp'><br/>Login again</a>");
}{code}
web.xml
{code:java}<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<welcome-file-list>
<welcome-file>AuthenticateLogin.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>LoginAuthentication</servlet-name>
<servlet-class>LoginAuthentication</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LoginAuthentication</servlet-name>
<url-pattern>/LoginAuthentication</url-pattern>
</servlet-mapping>
</web-app>
</web-app>{code}
The problem I'm facing is the validation (checking whether the username and password match to those in the database) isn't working properly. No matter what I enter as the username and password (even if it is the correct pair) it always shows as my username and/or password is invalid. When I check the tomcat (catalina) log the following entry was found:
{code:java}Exception thrown: [java.lang.ClassNotFoundException: com.mysql.jdbc.Driver}{code}
Could someone please show me what I could be doing wrong here? It would be a great help. Spent a day trying to figure this out :no:How could I add it to my classpath from Idea?
By the way the following is my build.xml (ant build file)
<project name="LoginForm" basedir=".">
<property name="app.name" value="LoginForm"/>
<property name="src.dir" location="src"/>
<property name="build.dir" location="build"/>
<property name="build.webinf.classes.dir" location="${build.dir}/WEB-INF/classes"/>
<property name="web.dir" location="web"/>
<property name="dist.dir" location="dist"/>
<property name="lib.dir" location="lib"/>
<property name="tomcat.home" location="/home/ruzaik/software/tomcat/apache-tomcat-5.5.20"/>
<property name="tomcat.url" value="http://localhost:8080/manager"></property>
<property name="tomcat.username" value="tomcat"/>
<property name="tomcat.passward" value="tomcat"/>
<property name="appserver.deploy.dir" location="${tomcat.url}/webapps"></property>
<property name="war.file" value="${app.name}.war"/>
<import file="${tomcat.home}/bin/catalina-tasks.xml"/>
<path id="project.classpath">
<dirset dir="${build.dir}"/>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean" description="Cleans directories">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="init" depends="clean" description="Creates directories">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.webinf.classes.dir}"/>
<mkdir dir="${dist.dir}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${src.dir}" destdir="${build.webinf.classes.dir}">
<classpath refid="project.classpath"/>
</javac>
</target>
<target name="copy" description=" : Copy the content of web in to build directoy">
<copy todir="${build.dir}" preservelastmodified="yes" overwrite="yes">
<fileset dir="${web.dir}">
<include name="**/*"/>
<exclude name="**/*.bak"/>
</fileset>
</copy>
</target>
<target name="war" depends="compile, copy" description=" : Create a war file for deploying">
<jar destfile="${dist.dir}/${app.name}.war" update="false" compress="true">
<fileset dir="${build.dir}">
<include name="**/*"/>
</fileset>
</jar>
</target>
<target name="install">
<deploy url="${tomcat.url}" username="tomcat" password="tomcat" path="/LoginForm"
war="${dist.dir}/${war.file}">
</deploy>
</target>
<target name="uninstall">
<undeploy url="${tomcat.url}" username="tomcat" password="tomcat" path="/LoginForm">
</undeploy>
</target>
</project>and my directory structure could be found here http://img407.imageshack.us/img407/1594/tempf.png
I think I"ve added it to the classpath. -
Help pls i cant use the secondary camera of my nok...
pls help me i cant use the secondary camera of my nokia n96.. i dont what happened pls help...just when i updated in 20.050 and when i use the secondary camera it says " unexpected error occured." help pls what will i do?
first of all, remove your battery and leave it out for five minutes then replace it. see if this solves the problem. if it does not, backp all your data to memory card or the mass storage (16gb) in the phone, or as a backup file .nbu in Nokia PC Suite. then perform a hard reset (*#7370 and *#7780#) to clear the phone to default factory settings. if this still does not work, then try the three-finger hard reset. if this still does not work, you will have to take your phone to your local Nokia Care Centre for them to look at.
remember to do appropriate backup of all your files first. let us know how it goes.
If you found this or someone's comments helpful or like what that person has to say, please give some Kudos to their post! -
Whats wrong with skype?????????
Im online on skype. Suddenly it logs out. Then i cant log in again. That happened in three accounts. Im really angry with this situation. Anyone qcan help? Whats wrong with ur service? Jesus! Please help its unacceptable
yes they just **bleep** stoped working with skype 5. and 3.8 versions. they just closed those servers > what **bleep** why did u disabled 3.8 version. how about skypeME option ? how about old computers that doesnt able to install 6.x versions ?
im actualy thinking to change this piece of **bleep** software and find somting else.
Use of profanity in posts does not conform conform with the Community Guidelines or Skype's Etiquette Policy. -
Pls, help me , my ipad is disabled as a reult of constant inputing wrong security code by my child on my ipad, i was asked to connect to itunes. The ipad is disabled and cannot do anything to allow me connect to itunes. Pls, What do I do???
This should solve your issue:
http://support.apple.com/kb/HT1212 -
Pl. help debug - PLS-00306: wrong number or types of arguments in call
Hi,
I am trying to create a wrapper function to all a procedure in Oracle EBusiness Suite 11i.
When I compile the following code
==========
CREATE OR REPLACE PROCEDURE gme.KIL_ProcessAlloc IS
vFileName VARCHAR2(30) := '1006251.csv';
vLoc VARCHAR2(20) := '/u041/applmgr/opm/opmappl/utllog';
v_InHandle utl_file.file_type;
vNewLine VARCHAR2(1000);
vLineNo PLS_INTEGER;
c1 PLS_INTEGER;
c2 PLS_INTEGER;
c3 PLS_INTEGER;
c4 PLS_INTEGER;
c5 PLS_INTEGER;
c6 PLS_INTEGER;
c7 PLS_INTEGER;
c8 PLS_INTEGER;
c9 PLS_INTEGER;
c10 PLS_INTEGER;
c11 PLS_INTEGER;
c12 PLS_INTEGER;
c13 PLS_INTEGER;
c14 PLS_INTEGER;
c15 PLS_INTEGER;
c16 PLS_INTEGER;
c17 PLS_INTEGER;
c18 PLS_INTEGER;
c19 PLS_INTEGER;
c20 PLS_INTEGER;
c21 PLS_INTEGER;
c22 PLS_INTEGER;
c23 PLS_INTEGER;
c24 PLS_INTEGER;
c25 PLS_INTEGER;
c26 PLS_INTEGER;
c27 PLS_INTEGER;
c28 PLS_INTEGER;
c29 PLS_INTEGER;
c30 PLS_INTEGER;
c31 PLS_INTEGER;
c32 PLS_INTEGER;
c33 PLS_INTEGER;
c34 PLS_INTEGER;
TYPE AllocArray IS TABLE OF GME_INVENTORY_TXNS_GTMP%ROWTYPE
INDEX BY BINARY_INTEGER;
l_Allocdata AllocArray;
TYPE MtlDetailArray IS TABLE OF gme_material_details%ROWTYPE
INDEX BY BINARY_INTEGER;
l_MtlDetaildata MtlDetailArray;
TYPE xTranArray IS TABLE OF GME_INVENTORY_TXNS_GTMP%ROWTYPE
INDEX BY BINARY_INTEGER;
l_xtrandata xTranArray;
TYPE defTranArray IS TABLE OF GME_INVENTORY_TXNS_GTMP%ROWTYPE
INDEX BY BINARY_INTEGER;
l_deftrandata defTranArray;
t_messagecount number;
t_messagelist varchar2(10000);
t_returnstatus varchar2(1);
BEGIN
v_InHandle := utl_file.fopen(vLoc, vFileName, 'r');
vLineNo := 1;
LOOP
BEGIN
utl_file.get_line(v_InHandle, vNewLine);
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXIT;
END;
vNewLine := TRANSLATE(vNewLine, 'A''', 'A');
c1 := INSTR(vNewLine, ',', 1,1);
c2 := INSTR(vNewLine, ',', 1,2);
c3 := INSTR(vNewLine, ',', 1,3);
c4 := INSTR(vNewLine, ',', 1,4);
c5 := INSTR(vNewLine, ',', 1,5);
c6 := INSTR(vNewLine, ',', 1,6);
c7 := INSTR(vNewLine, ',', 1,7);
c8 := INSTR(vNewLine, ',', 1,8);
c9 := INSTR(vNewLine, ',', 1,9);
c10 := INSTR(vNewLine, ',', 1,10);
c11 := INSTR(vNewLine, ',', 1,11);
c12 := INSTR(vNewLine, ',', 1,12);
c13 := INSTR(vNewLine, ',', 1,13);
c14 := INSTR(vNewLine, ',', 1,14);
c15 := INSTR(vNewLine, ',', 1,15);
c16 := INSTR(vNewLine, ',', 1,16);
c17 := INSTR(vNewLine, ',', 1,17);
c18 := INSTR(vNewLine, ',', 1,18);
c19 := INSTR(vNewLine, ',', 1,19);
c20 := INSTR(vNewLine, ',', 1,20);
c21 := INSTR(vNewLine, ',', 1,21);
c22 := INSTR(vNewLine, ',', 1,22);
c23 := INSTR(vNewLine, ',', 1,23);
c24 := INSTR(vNewLine, ',', 1,24);
c25 := INSTR(vNewLine, ',', 1,25);
c26 := INSTR(vNewLine, ',', 1,26);
c27 := INSTR(vNewLine, ',', 1,27);
c28 := INSTR(vNewLine, ',', 1,28);
c29 := INSTR(vNewLine, ',', 1,29);
c30 := INSTR(vNewLine, ',', 1,30);
c31 := INSTR(vNewLine, ',', 1,31);
c32 := INSTR(vNewLine, ',', 1,32);
c33 := INSTR(vNewLine, ',', 1,33);
c34 := INSTR(vNewLine, ',', 1,34);
-- l_allocdata(vLineNo).sourceno := SUBSTR(vNewLine,1,c1-1);
-- l_allocdata(vLineNo).sizeno := SUBSTR(vNewLine,c1+1,c2-c1-1);
-- l_allocdata(vLineNo).status := SUBSTR(vNewLine,c2+1,c3-c2-1);
-- l_allocdata(vLineNo).latitude := SUBSTR(vNewLine,c3+1,c4-c3-1);
-- l_allocdata(vLineNo).longitude := SUBSTR(vNewLine,c4+1,c5-c4-1);
-- l_allocdata(vLineNo).testfor := SUBSTR(vNewLine,c5+1);
l_allocdata(vLineNo).trans_id := SUBSTR(vNewLine,1,c1-1);
l_allocdata(vLineNo).item_id := SUBSTR(vNewLine,c1+1,c2-c1-1);
l_allocdata(vLineNo).co_code := SUBSTR(vNewLine,c2+1,c3-c2-1);
l_allocdata(vLineNo).orgn_code := SUBSTR(vNewLine,c3+1,c4-c3-1);
l_allocdata(vLineNo).whse_code := SUBSTR(vNewLine,c4+1,c5-c4-1);
l_allocdata(vLineNo).lot_id := SUBSTR(vNewLine,c5+1,c6-c5-1);
l_allocdata(vLineNo).location := SUBSTR(vNewLine,c6+1,c7-c6-1);
l_allocdata(vLineNo).doc_id := SUBSTR(vNewLine,c7+1,c8-c7-1);
l_allocdata(vLineNo).doc_type := SUBSTR(vNewLine,c8+1,c9-c8-1);
l_allocdata(vLineNo).doc_line := SUBSTR(vNewLine,c9+1,c10-c9-1);
l_allocdata(vLineNo).line_type := SUBSTR(vNewLine,c10+1,c11-c10-1);
l_allocdata(vLineNo).reason_code := SUBSTR(vNewLine,c11+1,c12-c11-1);
l_allocdata(vLineNo).trans_date := SUBSTR(vNewLine,c12+1,c13-c12-1);
l_allocdata(vLineNo).trans_qty := SUBSTR(vNewLine,c13+1,c14-c13-1);
l_allocdata(vLineNo).trans_qty2 := SUBSTR(vNewLine,c14+1,c15-c14-1);
l_allocdata(vLineNo).qc_grade := SUBSTR(vNewLine,c15+1,c16-c15-1);
l_allocdata(vLineNo).lot_status := SUBSTR(vNewLine,c16+1,c17-c16-1);
l_allocdata(vLineNo).trans_stat := SUBSTR(vNewLine,c17+1,c18-c17-1);
l_allocdata(vLineNo).trans_um := SUBSTR(vNewLine,c18+1,c19-c18-1);
l_allocdata(vLineNo).trans_um2 := SUBSTR(vNewLine,c19+1,c20-c19-1);
l_allocdata(vLineNo).completed_ind := SUBSTR(vNewLine,c20+1,c21-c20-1);
l_allocdata(vLineNo).staged_ind := SUBSTR(vNewLine,c21+1,c22-c21-1);
l_allocdata(vLineNo).gl_posted_ind := SUBSTR(vNewLine,c22+1,c23-c22-1);
l_allocdata(vLineNo).event_id := SUBSTR(vNewLine,c23+1,c24-c23-1);
l_allocdata(vLineNo).text_code := SUBSTR(vNewLine,c24+1,c25-c24-1);
l_allocdata(vLineNo).transaction_no := SUBSTR(vNewLine,c25+1,c26-c25-1);
l_allocdata(vLineNo).action_code := SUBSTR(vNewLine,c26+1,c27-c26-1);
l_allocdata(vLineNo).material_detail_id := SUBSTR(vNewLine,c27+1,c28-c27-1);
l_allocdata(vLineNo).organization_id := SUBSTR(vNewLine,c28+1,c29-c28-1);
l_allocdata(vLineNo).locator_id := SUBSTR(vNewLine,c29+1,c30-c29-1);
l_allocdata(vLineNo).subinventory := SUBSTR(vNewLine,c30+1,c31-c30-1);
l_allocdata(vLineNo).alloc_um := SUBSTR(vNewLine,c31+1,c32-c31-1);
l_allocdata(vLineNo).alloc_qty := SUBSTR(vNewLine,c32+1,c33-c32-1);
l_allocdata(vLineNo).def_trans_ind := SUBSTR(vNewLine,c33+1,c34-c33-1);
vLineNo := vLineNo+1;
END LOOP;
utl_file.fclose(v_InHandle);
FOR i IN 1..vLineNo-1 loop
GME_API_PUB.insert_line_allocation (
1,
100,
FALSE,
True,
l_allocdata(i),
null,
null,
false,
false,
false,
l_MtlDetailData,
l_xtrandata,
l_deftrandata,
t_messagecount,
t_messagelist,
t_returnstatus);
end loop;
IF (t_returnstatus <> 'S') THEN
for i IN 1 .. t_messagecount LOOP
dbms_output.put_line('The text is '||FND_MSG_PUB.get(i,t_messagelist));
END LOOP;
END IF;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END KIL_ProcessAlloc;
===============
I get this
Warning: Procedure created with compilation errors.
SQL> sho err
Errors for PROCEDURE GME.KIL_PROCESSALLOC:
LINE/COL ERROR
145/8 PLS-00306: wrong number or types of arguments in call to
'INSERT_LINE_ALLOCATION'
145/8 PL/SQL: Statement ignored
=================
The package specs of GME_API_PU is under:
===============
PROCEDURE insert_line_allocation (
p_api_version IN NUMBER := gme_api_pub.api_version
,p_validation_level IN NUMBER := gme_api_pub.max_errors
,p_init_msg_list IN BOOLEAN := FALSE
,p_commit IN BOOLEAN := FALSE
,p_tran_row IN gme_inventory_txns_gtmp%ROWTYPE
,p_lot_no IN VARCHAR2 DEFAULT NULL
,p_sublot_no IN VARCHAR2 DEFAULT NULL
,p_create_lot IN BOOLEAN DEFAULT FALSE
,p_ignore_shortage IN BOOLEAN DEFAULT FALSE
,p_scale_phantom IN BOOLEAN DEFAULT FALSE
,x_material_detail OUT gme_material_details%ROWTYPE
,x_tran_row OUT gme_inventory_txns_gtmp%ROWTYPE
,x_def_tran_row OUT gme_inventory_txns_gtmp%ROWTYPE
,x_message_count OUT NUMBER
,x_message_list OUT VARCHAR2
,x_return_status OUT VARCHAR2);
GME_API_PUB.insert_line_allocation
===========
What am I doing wrong...why am I getting PLS-00306.
Can someone help?
Thank you
Sundar
[email protected]Hi John,
Thanks a ton - a nice Christmas gift. Thank you for being a Santa :-).
I used the same subscript as the one used for in parameter and the procedure compiled without errors.
A corollary: If (any of the) Out parameter is null (all columns of the row/array), will the array row element still be stored ? May be I cross the bridge when I come to it.
Merry Christmas.
Sundar -
PLS-00306: wrong number or types of arguments help!!!
Hi,
I am new to pl/sql programming I am stuck into oracle error for my code. Plz help me with this issue my code is as follow:
CREATE OR REPLACE PROCEDURE raise_salary
(emp_id IN employee.employee_nb%TYPE,
amount IN employee.salary%TYPE,
emp_name OUT employee.employee_name%TYPE)
IS
BEGIN
UPDATE employee SET salary= salary+amount WHERE employee_nb = emp_id;
SELECT employee_name INTO emp_name FROM employee WHERE employee_nb=emp_id;
DBMS_OUTPUT.PUT_LINE('SALARY HAS BEEN UPDATED FOR ' || emp_name);
END;
errror:
Error report:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'RAISE_SALARY'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:There is a problem with emp_name OUT employee.employee_name%TYPE parameter. OUT means WRITE ONLY, IN means READ ONLY. So you can not read from an OUT parameter and you are trying to do that in the line
DBMS_OUTPUT.PUT_LINE('SALARY HAS BEEN UPDATED FOR ' || emp_name);
CREATE OR REPLACE PROCEDURE raise_salary(emp_id IN employee.employee_nb%TYPE,
amount IN employee.salary%TYPE,
emp_name OUT employee.employee_name%TYPE) IS
BEGIN
UPDATE employee SET salary = salary + amount WHERE employee_nb = emp_id;
SELECT employee_name
INTO emp_name
FROM employee
WHERE employee_nb = emp_id;
/*** DBMS_OUTPUT.PUT_LINE('SALARY HAS BEEN UPDATED FOR ' || emp_name); ***/
--Problem in in the above line. emp_name IS Declared AS OUT
--So it is WRITE ONLY. You can not read from it within the procedure.
END;What you can do is to declare that parameter as IN OUT like
CREATE OR REPLACE PROCEDURE raise_salary(emp_id IN employee.employee_nb%TYPE,
amount IN employee.salary%TYPE,
emp_name IN OUT employee.employee_name%TYPE)but there is some other more elegant and better way to do this without hitting the table twice (one for update and one for selecting the name) using RETURNING clause.
SQL> CREATE OR REPLACE PROCEDURE raise_salary(emp_id IN emp.empno%TYPE,
2 amount IN emp.sal%TYPE,
3 emp_name IN OUT emp.ename%TYPE) IS
4 BEGIN
5 UPDATE emp
6 SET sal = sal + amount
7 WHERE empno = emp_id RETURNING ename INTO emp_name;
8 DBMS_OUTPUT.PUT_LINE('SALARY HAS BEEN UPDATED FOR ' || emp_name);
9 END raise_salary;
10 /
Procedure created.
SQL> set serverout on
SQL> DECLARE
2 v_name emp.ename%TYPE;
3 BEGIN
4 raise_salary(7369,100,v_name);
5 END;
6 /
SALARY HAS BEEN UPDATED FOR SMITH
PL/SQL procedure successfully completed.
SQL> NOTE: There is no commit or rollback in this (as in your original example). So you have to issue implicit commit or rollback.
Edited by: Saubhik on Oct 29, 2010 11:44 PM
Edited by: Saubhik on Oct 29, 2010 11:50 PM -
i deleted some songs from my iphone 4. now when i try to re-add them to my phones itunes, they wont add. whats wrong? new songs add. but not the old ones! help please
Hey renie1515,
Thanks for using Apple Support Communities.
When you download past purchases on an iOS device or computer, that device or computer becomes associated with your Apple ID. This article describes how to manage these associations.
iTunes Store: Associating a device or computer to your Apple ID
http://support.apple.com/kb/ht4627
Once a device or computer is associated with your Apple ID, you cannot associate that device or computer with another Apple ID for 90 days.
Note: Removing a device from your Apple ID does not override the 90-day timer. You must wait 90 days from the day the device was first associated with your Apple ID before it can be associated with another Apple ID.
Have a nice day,
Mario -
my mac book was refused by the apple service center as the mother board was crashed , pls help me what to do
If you live in a big city, then I would recommend an independent computer store that fixes Macs. There are many mom and pop computer stores that fix your computer. Just Google it.
-
My iPhone 4S won't turn on it's been off for two days now. I tried charging it but it makes a noise every 8 seconds,holding the buttons down and also plugging it to a computer. I need help on what to do or if anybody can tell me what's wrong with my phone
Yes ive tried a different charger and it also nothing shows when i plug it in just makes a noise
-
i made a mistake. i installed windows using boot camp without os x lion dvd. what should i do? help pls
Re: can i install windows for pc on my mac or do i need the windows for mac?There is no Lion DVD. Start Boot Camp Assistant and select the menu item to download the Windows Support Software.
Read and follow the Boot Camp Installation Guide. http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf -
When I go for restrictions my iPad mini want my pass code I fill it's recurarment it's say wrong please help me what I do....?
Hey there Ajjusingh,
It sounds like the passcode you are entering for your Restrictions is not working for you. According to the following article you will need to perform a factory restore to reset that passcode:
iOS: Understanding Restrictions (parental controls)
http://support.apple.com/kb/ht4213
Note: If you lose or forget a restriction passcode, you will need to perform a factory restore to remove it.
Thank you for using Apple Support Communities.
All the very best,
Sterling -
i dont know whats wrong with my n900.... a couple of weeks before i tried to install nitroid gingerbread on my n900.... i did exactly what it said it was almost complete but the last step didnt complete so i left it like that..... i was using my mobile fine until one day i restarted my phone... when it started it showed me 2 options (dont remember what the options were) although the 2nd one was power kernel something like that.... i chose 1st option after that it turned off when i startit again only nokia logo comes and it turns off by himself.... i thinki bricked my fone... but y didnt it happen when i was trying to install nitroid... plz help any way to fix it....
P.S. I cant flash it either.. it doesnt go to usb mode anymore neither does it charge....
Solved!
Go to Solution.you could try to do the commands in flasher, connect the device while it is off and holding the U button down and see if the flasher will see it.
Maybe you are looking for
-
i replaced my old iphone to a new one.. i want to get my photos from icloud,,,, i had almost 3 gb of photos backed up on icloud,,, how can i transfer all those photos to my new phone,, i tried but i only got 90 photos. those are the recent one. i had
-
Processing JMS messages one at a time
Hi, I'm on a project where we're trying to synch Siebel and EBS Customer information. However there are certain events that can trigger Customer data being sent twice simultaneously; this produces problematic racing conditions when the Customer data
-
Displaying Japaneese character in SaveAs Dialog box
Hi, I have a problem with displaying japanese file name in 'save as' dialog box. I have a page that lets user to download a file. On downloading a file , the 'save as' dialog box opens up with the file name. The file name is passed to the dialog box
-
Downloads not working in Firefox 4.0
When I try to download a manual from this link, my screen goes blank... http://www.vizio.com/vm230xvt.html#support If I transfer the link to IE 8, it works fine.
-
Can anyone tell me, very specifically and with technical detail, what the "Automatic" settings do (in Compressor 4.1.1) for the following setting attributes: (1) Frame size and (2) Frame rate Thank you!