JSP and JavaBean simple question, pls help
Hello,
I am new to JSP. I just installed Sun Java Studio Enterprise 8 to create a JSP project. I created a jsp file and java class file in the same project. the class file is in default package. I use <jsp:useBean id="date" class="DateFormatBean"/> in jsp file to call the java class. When I run the jsp page I got the error:
cannot resolve symbol
symbol : class DateFormateBean
if I add a package in the class file, I got the error: package com.mycom.projsp does not exist.
Also I tried to add a jar file into the library and tried to import it in my jsp page, I also got package doesn't exist error.
I know I need to set the classpath and I did it, but still got the error. Could someone help me out? Do I miss some settings? I am using Tomcat.
Thanks in advance!
i'm not familiar with Java Studio Enterprise 8 so i'm not sure how it is organizing its project. However, i know tomcat...and if for test purposes you take your jsp file and put it in $TOMCAT_HOME/webapps/ROOT and your class file and put it in $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes, things should work out. perhaps the web app isn't being organized properly in your tool.
hope that helps.
Similar Messages
-
Very simple question pls help me
I just want to use oracle sql and pl/sql workshop isqp*plus web site, so which product or software shouuld i download??? pls help me.
thanks.Pl see your other 2 threads on the same topic (posting the same question multiple times does not make the issue go away ;-) )
Oracle install error 10g 64 bit windows
which product should i install??
HTH
Srini -
Help with jsp and javaBean in eclipse/Tomcat
Hi,
I am new to JSP and JavaBean. I am going through tutorial for a jsp page that uses a javaBean. I am using eclipse to create jsp page and the java bean.
My eclipse project "Date" has five package as under:-
1. Deployment Descriptor
2. Java Resources: src
3. build
4. WebContent
I have my data.jsp page in WebContent/WEB-INF/ folder. When I just run date.jsp in a browser as: http://localhost:8080/Date/date.jsp, it gets launched into the browser correctly. But when I add a JavaBean "TimeFormatterBean.java" in the Java Resources:src folder and use it in date.jsp page, I get errors as under:-
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 5 in the jsp file: /date.jsp
TimeFormatterBean cannot be resolved to a type
2: pageEncoding="ISO-8859-1"%>
3: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4:
5: <jsp:useBean id="formatter" class="TimeFormatterBean"/>
6:
7: <html>
8: <head>
The data.jsp page is as under:-
<jsp:useBean id="formatter" class="TimeFormatterBean"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1> Date JSP </h1>
<p> The current time is:
<%= new java.util.Date() %>
<jsp:getProperty name="formatter" property="name"/>
</p>
</body>
</html>I can see "TimeFormatterBean.class" in build/classes folder.
If anyone could please help me out with this, it would be very helpful
Thanks a lot!You probably should place TimeFormatterBean inside a package, or maybe you could try importing it , even if it�s in the default package, with something like this <%@ page import="TimeFormatterBean" %> at the top
-
Hi All,
I need UR help
Problem:
I have a javaBean and a jsp page say test.class and test.jsp respectively.
Now the problem is when i run my jsp in web browser with path
http://localhost:8080/mypackage/test.jsp and use test.class in it. It give me an error Class test.class Not Found but when i give the path http://localhost:8080/examples/jsp/parentpackage/mypackage/test.jsp
it works fine.
I am using Tomcat 3.2 and i have already made changes in server.xml for my jsp files thats why i can run my programs with the earlier path but dont know why its giving the error when i use javabean,
Also i have put my javabean class in---parentpackage/mypackage/test.class
Thanks
Amithi there,
Thanks for you time, here i have placed the source for jsp and javabean
Please excuse me if you find the code unproper
Code for JSP:
<%
response.setHeader("Pragma","No-cache");
response.setDateHeader("Expires",0);
response.setHeader("Cache-control","No-cache");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Internal Clarification-Agent View</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body background="images/c.jpg" bgproperties="fixed">
<%@ page language="java" import="java.sql.*" %>
<%@ page import="javax.servlet.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" session="true"%>
<%@ page import="java.util.Date" %>
<%@ page import="java.sql.Timestamp" %>
<%@ page import="java.text.*" %>
<%@ page import="java.lang.*" %>
<%@ page import="javax.servlet.http.*"%>
<jsp:useBean id="navi" class="arvato.interclarification.rqchunk" scope="session" />
<%
try{
Connection con = null;
PreparedStatement ps = null;
PreparedStatement ps1 = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:interdsn","","");
String qrno = request.getParameter("qrno");
String rdb = request.getParameter("rb");
String key = request.getParameter("key");
String cname = request.getParameter("cname");
//out.print(key);
//if(st.equals("All")){
String sql="";
if(rdb!=null){
if(rdb.equals("1")){
if(qrno==null||qrno.equals("")){
sql = "SELECT * FROM crequired ORDER BY adate DESC";
else if(qrno!=null){
sql = "SELECT * FROM crequired WHERE queryno LIKE '"+qrno+"%'";
}else if(rdb.equals("2")){
if(key==null||key.equals("")){
sql = "SELECT * FROM crequired ORDER BY adate DESC";
else if(key!=null){
sql = "SELECT * FROM crequired WHERE clarification LIKE '"+key+"%'";
else if(rdb.equals("3")){
if(cname==null||cname.equals("")){
sql = "SELECT * FROM crequired ORDER BY adate DESC";
else if(cname!=null){
sql = "SELECT * FROM crequired WHERE fname LIKE '"+cname+"%'";
if(rdb==null)
sql = "SELECT * FROM crequired ORDER BY adate DESC";
ps = con.prepareStatement(sql,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
//ps.setString(1,space);
/*}else{
sql = "SELECT * FROM crequired WHERE status=? AND space=?";
ps = con.prepareStatement(sql);
ps.setString(1,st);
ps.setString(2,space);
ResultSet rs = ps.executeQuery();
%>
<table width="100%" border="0" cellspacing="0">
<tr>
<td width="50%"><strong><img src="images/microsoftlogo1.jpg" width="288" height="94"></strong></td>
<td width="50%"><div align="right"><strong><img src="images/logo2.jpg" width="177" height="77"></strong></div></td>
</tr>
</table><br>
<hr noshade color="#000000">
<div align="center"><font color="#990000" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>CSR
VIEW</strong></font>
</div>
<form name="form" method="post" action="agentview1.jsp">
<table width="59%" border="1" align="center" cellpadding="2" cellspacing="0">
<tr>
<td width="49%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>
<input name="rb" type="radio" value="1" <%if(rdb!=null){if(rdb.equals("1")){out.print("checked");}}%>>
<font size="1">SEARCH BY QUERY NUMBER:</font></strong></font></td>
<td width="51%"><input name="qrno" type="text" id="qrno"></td>
</tr>
<tr>
<td><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type="radio" name="rb" value="2" <%if(rdb!=null){if(rdb.equals("2")){out.print("checked");}}%>>
<font size="1"> SEARCH BY KEY WORD:</font></font></strong></td>
<td><input name="key" type="text" id="key"></td>
</tr>
<tr>
<td><input type="radio" name="rb" value="3" <%if(rdb!=null){if(rdb.equals("3")){out.print("checked");}}%>>
<strong><font size="1" face="Verdana, Arial, Helvetica, sans-serif">SEARCH
BY CSR NAME:</font></strong></td>
<td><input name="cname" type="text" id="cname"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
</form><br>
Back
<%
navi.setchunk(10);
navi.setRS(rs);
String v="";
String vv=request.getParameter("off");
if(vv==null){v="1";}
else{
v=vv;
int i=Integer.parseInt(v);
navi.setcursor(i);
ResultSet rs2=navi.getRS();
int h1=1;
if(request.getParameter("off")!=null) h1=Integer.parseInt(request.getParameter("off"));
int h2= navi.getchunk();
int h3= navi.getcount();
int offset=(h3-h1)<h2?h3:(h1+h2-1);
%>
<table width=100%><tr><td width=33%> </td><td align=center width=34%><font face="verdana, arial" size=2 color=#000000>Displaying <%=h1%> to <%=offset%> of <font size=4><%=h3 %></font></font></td><td width=33%> </td></tr></table>
<%
int c1=navi.getcount(),c2=navi.getchunk();
int c3=navi.getcursor();
int c4=c3+c2;
int c5=c3-c2;
%>
<table width=100% ><tr><td align=left width=100% >
<%
if(c3>c2 && c3<=c1){
out.print("<a href=\"agentview1.jsp?n=y&off="+c5+"\">Previous</a>");
%></td><td align=right width=100%>
<%
if(c1>c2 && (c1-c3)>=c2){
out.print("<a href=\"agentview1.jsp?n=y&off="+c4+"\">Next</a>");}
%>
</td></tr></table>
<table width="1359" border="0" cellspacing="1">
<tr bgcolor="#3C6C84">
<th width="2%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">S.No.</font></th>
<th width="5%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Query No</font></th>
<th width="5%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Clarification
Posting Date & Time</font></th>
<th width="3%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Posted
By</font></th>
<th width="6%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Received
By</font></th>
<th width="3%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Sub
Process </font></th>
<th width="4%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Region</font></th>
<th width="5%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Status</font></th>
<th width="15%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Clarification
Required OnQuery </font></th>
<th width="18%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Solution</font></th>
<th width="8%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Date
& Time Visited On</font></th>
<th width="7%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Date
& Time Closed On</font></th>
<th width="5%"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Remarks</font></th>
</tr>
<%
int m = 0;
for(int l=0;l<c2 && i<=c1;l++,i++){
//while(rs.next()){
m = m+1;
String queryno = rs.getString("queryno");
//out.print(queryno);
%>
<tr>
<td bgcolor="#FFFFCC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b><%=m%></b></font></td>
<td width="5%" bgcolor="#FFE4CA"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b><%=queryno%></b></font></td>
<td bgcolor="#FFFFCC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">
<%Date d1 = rs.getDate("adate");
String dd1="";
SimpleDateFormat sddf = new SimpleDateFormat("MM/dd/yyyy");
dd1 = sddf.format(d1);
Date t1 = rs.getTime("atime");
String tt1="";
SimpleDateFormat stdf = new SimpleDateFormat("HH:mm");
tt1 = stdf.format(t1);
String ttm = dd1+" "+tt1;
out.print(ttm);
%></font>
</td>
<td bgcolor="#FFE4CA"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">
<b><%String fnm = rs.getString("fname");
String lnm = rs.getString("lname");
String nm = fnm+" "+lnm;
out.print(nm);
%></b></font></td>
<td width="6%" bgcolor="#FFFFCC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%
String tnm = rs.getString("tname");
if(tnm.equals("null")||tnm.equals("-")){}else{out.print(tnm);}
%></font></td>
<td bgcolor="#FFE4CA"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b><%=rs.getString("space")%></b></font></td>
<td bgcolor="#FFFFCC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b><%String rg = rs.getString("region");
if(rg==null||rg.equals("null")){}else{out.print(rg);}%></b></font></td>
<%String status = rs.getString("status");
if(status.equalsIgnoreCase("New")){%><td bgcolor="#FF0000"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><b><%=status%></b></font></td>
<%}else if(status.equalsIgnoreCase("Open")||status.equalsIgnoreCase("Awaiting MS Reply")){%><td bgcolor="#FFCC33"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><b><%=status%></b></font></td><%}else{%><td bgcolor="#00CC00"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><b><%=status%></b></font></td><%}%>
<td bgcolor="#FFE4CA"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#0000CC"><%=rs.getString("clarification")%></font></td>
<%
//String queryno = rs.getString("queryno");
String qry1 = "select * from csolution where queryno=?";
ps1 = con.prepareStatement(qry1);
ps1.setString(1,queryno);
ResultSet rs1 = ps1.executeQuery();
while(rs1.next()){%>
<td bgcolor="#FFFFCC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%=rs1.getString("solution")%></font></td>
<td bgcolor="#FFE4CA"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%
Date dp = rs1.getDate("dateofopen");
String dp1="";
SimpleDateFormat spdf = new SimpleDateFormat("MM/dd/yyyy");
dp1 = spdf.format(dp);
Date tp = rs1.getTime("timeofopen");
String tp1="";
SimpleDateFormat stpf = new SimpleDateFormat("HH:mm");
tp1 = stpf.format(tp);
String tpm = dp1+" "+tp1;
out.print(tpm);
%></font>
</td>
<td width="5%" bgcolor="#FFFFCC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%
Date dc = rs1.getDate("dateofclose");
String dc1="";
SimpleDateFormat scdf = new SimpleDateFormat("MM/dd/yyyy");
dc1 = scdf.format(dc);
Date tc = rs1.getTime("timeofclose");
String tc1="";
SimpleDateFormat stcf = new SimpleDateFormat("HH:mm");
tc1 = stcf.format(tc);
String tcm = dc1+" "+tc1;
out.print(tcm);
%></font>
</td>
<td width="16%" bgcolor="#FFE4CA"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%String remarks = rs1.getString("remarks");
if(remarks==null){}else{out.print(remarks);}
%></font></td>
<%}navi.setcursor();
}con.close();}catch(Exception e){out.print(e);}%>
</tr>
</table><br>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">Back to
Main Menu</font>
</body>
</html>
Code for javaBean:
package arvato.interclarification;
import javax.servlet.http.*;
import java.sql.*;
public class rqchunk
ResultSet rs=null;
int chunk=5;
int count=0;
int cursor=1;
public rqchunk(){}
public void setRS(ResultSet rset) throws SQLException
rs = rset;
int cnt=0;
while(rs.next())
cnt++;
rs.absolute(1);
count=cnt;
public void setcursor()throws SQLException
cursor++;
rs.absolute(cursor);
public void setcursor(int i)throws SQLException
cursor=i;
rs.absolute(cursor);
public int getcursor()
return cursor;
public int getchunk()
return chunk;
public void setchunk(int i)
chunk=i;
public void setcount(int j)
count=j;
public int getcount()
return count;
public ResultSet getRS()
return rs;
public void clearRS()
cursor=0;
rs=null;
Please excuse me if my codes are not understandable enough
Thanks
Amit -
Any CASE tools for Java, JSP, and JavaBeans?
For Java, JSP, and JavaBeans can we find something that can help us automate certain tasks?
For example, CASE tools is an acronym for Computer Aided Software Engineering tools. I have a colleague use software to generate robust code for the database layer and with a few clicks of a button after the database is designed he can generate code that would otherwise take an hour or even hours to write and debug and test.
Thanks for your time and help in advance!
CeciliaThe ones I know are MVCase (from Brazil) and Jude (from Japan). Both are free and I haven't fully tested them yet. It may help you.
-
I cant reset my security question pls help me
I cant find the reset your security question pls help me
If you mean that you're aren't getting the reset link as described in the steps half-way down this page : http://support.apple.com/kb/HT5312, then that will only show if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account.
If you aren't getting the link then you don't have a rescue email address, and you won't be able to add one until you can answer your questions - you will need to contact iTunes Support / Apple in your country to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset you can then use the steps half-way down the above HT5312 page to add a rescue email address for potential future use -
HT3702 i want 2 cancel my visa from my account and us itune card pls help me
i want 2 cancel my visa from my account and us itune card pls help me
In order to take the credit card off of the account, you will need to open the iTunes program on your computer, pick the option for store from the left, and then pick account from the right under quick links. In the account you should be able to change credit card type to 'none' and/or add a gift card.
If you are doing this from iphone, ipad, or ipod touch, it will be under settings > store
if you continue having problems, you can contact itunes directly by filling out the form below. they will follow up via email to make sure your account issue is resolved
http://www.apple.com/lae/support/itunes/contact.html -
My ipohn 4 died last night and wont turn on pls help me
my ipohn 4 died last night and wont turn on pls help me
Hi Punkermama,
If the screen on your iPhone is dark but the phone otherwise seems to be responding (sounds, etc), an Accessability feature known as Screen Curtain may have inadvertently been activated. You may find the following section of the iOS 7 for iPhone manual helpful (Apendix A - Accessability, in the Voiceover section on pg 126):
Turn the screen curtain on or off. Triple-tap with three fingers. When the screen curtain is on, the screen contents are active even though the display is turned off.
iPhone User Guide For iOS 7
http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
Regards,
- Brenden -
Simple Servlet question, pls help
This is my form submission part in my jsp page
<form name="updateForm" method="POST" action="/Update"> This is my web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>/Update</servlet-name>
<servlet-class>UpdateMap</servlet-class>
</servlet>
</web-app>This is my UpdateMap.java
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
public class UpdateMap extends HttpServlet
public UpdateMap()
}I put my UpdateMap.class in WEB-INF/classes/ directory but when I clicked the submit button in my jsp page, I got The requested resource (/Update) is not available errorFound my own error. The jsp submission code should be
<form name="updateForm" method="POST" action="Update"> But I still got error when submit
The specified HTTP method is not allowed for the requested resource ( POST method of HTTP is not supported by this URL.)Pls help.
Thanks -
html:select and html:options simple question - please help
Hi Friends,
I am having a problem, please help me .I want to run a query and display all the lastnames of all the users in my database.Here are my files:
UserForm.java
public class UserForm extends ActionForm{
private name firstName;
private name lastName;
//all getter and setters
viewuser.jsp
<html:select property="lastName">
<html:options collection="users" property="lastName" labelProperty="lastName" />
</html:select>
and my Java Utility class method
public ArrayList getusers() throws Exception {
ArrayList aList = new ArrayList();
Connection con = ConnectionUtil.getConnection();
PreparedStatement stmt = null;
try {
stmt = con.prepareStatement("select last_name from USERS);
ResultSet rs = stmt.executeQuery();
if (rs.next()) {
aList.add(rs.getString(1));
}else {
return null;
rs.close();
return aList;
} catch (SQLException e) {
e.printStackTrace();
throw new ServiceProcessingException(e.getMessage());
} finally {
ConnectionUtil.closeStatement(stmt);
ConnectionUtil.closeConnection(con);
}My problem is what i need to do in my Action class,so that it sets the "users" variable
properly and i would be able to read that variable in my jsp and display the lastname
of all the users.I am tryin this but failing badly:
public class UserAction extends Action{
ArrayList userssList = Utility_class_obj.getUsers();
request.getSession().getServletContext().setAttribute("users", usersList);Please Please help,I would really appreciate your help.
ThanksThanks a lot friend...this time i made it work my style,next time i will use tha mehod.But I think I am not doing it the right way,please correct me:
This is the method in my utility class where i run the query and I doubt I am not doing it right here:
PreparedStatement stmt = null;
ViewForm vForm = null;
try {
stmt = con.prepareStatement("SELECT LAST_NAME FROM USERS_ADD"); \
ResultSet rs = stmt.executeQuery();
while(rs.next()) {
vForm = new ViewForm(rs.getString(1));
aList.add(vForm);
rs.close();
return aList; }
}And I made this constructor in my viewForm class:
public ViewForm(String lastName){ this.setLastName(lastName); }I do this in my Action class then:
ArrayList pList = csDAO.getUsers();
if(pList != null){
request.getSession().getServletContext().setAttribute("plist", pList);
}And finally this in my jsp:
<html:select property="lastName">
<html: options collection="plist" property="lastName" labelProperty="lastName" /> And it works,but i don't think I can keep adding constructors to my form class like that,and moreoever if I want to search by first name ,there would be a conflict between 2 constructors,so can someone please tell me the right way to do this.
Thanks
Mick -
pls help us.. just try to transfer a one movie on ipad2 ,sync it thru itunes and when i finished i cant open any more my games or all
applications,, standard apps is ok except to all games we purchase like smurf and hd race..screen flicker and crash and it wont continue ..pls help us
tnx in advanceTry downloading another app - any app - pick a free app and download it. See if that helps reset the iPad.
If that doesn't work, then reboot the iPad. Hold down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple logo appears - ignore the red slider - let go of the buttons. -
Servlet question, pls help
We have a jsp page with servlet works well in a server. Now we need to move it to another server (server2). I copied jsp page and a jar file that compiles all the class files (servlet) into the server2 and modified web.xml file in server2 too for servlet definition and URL mappings. When I run the servlet - http://www.company.com/myservlet, I got the error of "The server encountered an unexpected condition which prevented it from fulfilling the request".
I am just wondering if I need to recompile the jar file in server2 or I missed some procedure to deploy the application? What should I do to make a servlet works in a new server?
Thanks for your help in advance?hopefully, when you say server1 and server2 we are not saying these servers support different versions of JSP and Servlet.
make sure they do support the same thing, otherwise if server1 supports new versions and your servlets/jsp use those, server2 will complain.
you can go ahead and grab those dirty stack trace and let me know what you found out. -
Hi I wanted to ask a question, pls do reply to help me out.
Can I include a method call to another class, within the same transaction, that performs a
database statement or must the actual select statement appear within the
setAutoCommit(false) .....commit()?Please elaborate. I believe the answer is yes, but it's not entirely clear what you mean.
- Phil -
A simple question please help.
Hi
I have 2 textfields and a button. I want to input a number( diameter) in the first textfield ( inputField) and by clicking on the button (myButton), I want to get the result (circonference) in the second textfield ( inputField1). diameter*3.14. I know it is a simple question, but it comes from a very simple mind. So have mercy on me.
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.events.MouseEvent;
var inputField:TextField = new TextField();
var myFormat:TextFormat = new TextFormat();
myFormat.size = 44;
inputField.defaultTextFormat = myFormat;
inputField.restrict = "0-9";
inputField.maxChars = 6;
inputField.multiline = false;
inputField.textColor = 0x000000;
inputField.border = true;
inputField.width = 150;
inputField.height = 50;
inputField.x = 75;
inputField.y = 50;
inputField.borderColor = 0xFF0000;
inputField.type = "input";
addChild(inputField);
var inputField1:TextField = new TextField();
var myFormat1:TextFormat = new TextFormat();
myFormat1.size = 44;
inputField1.defaultTextFormat = myFormat;
inputField1.maxChars = 1;
inputField1.multiline = false;
inputField1.textColor = 0x000000;
inputField1.border = true;
inputField1.width = 150;
inputField1.height = 50;
inputField1.x = 275;
inputField1.y = 50;
inputField1.borderColor = 0xFF0000;
addChild(inputField1);
myButton.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
function fl_MouseClickHandler_2(event:MouseEvent):void
trace("Mouse clicked");use:
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.events.MouseEvent;
var inputField:TextField = new TextField();
var myFormat:TextFormat = new TextFormat();
myFormat.size = 44;
inputField.defaultTextFormat = myFormat;
inputField.restrict = "0-9";
inputField.maxChars = 6;
inputField.multiline = false;
inputField.textColor = 0x000000;
inputField.border = true;
inputField.width = 150;
inputField.height = 50;
inputField.x = 75;
inputField.y = 50;
inputField.borderColor = 0xFF0000;
inputField.type = "input";
addChild(inputField);
var inputField1:TextField = new TextField();
var myFormat1:TextFormat = new TextFormat();
myFormat1.size = 44;
inputField1.defaultTextFormat = myFormat;
inputField1.maxChars = 1;
inputField1.multiline = false;
inputField1.textColor = 0x000000;
inputField1.border = true;
inputField1.width = 150;
inputField1.height = 50;
inputField1.x = 275;
inputField1.y = 50;
inputField1.borderColor = 0xFF0000;
addChild(inputField1);
myButton.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
function fl_MouseClickHandler_2(event:MouseEvent):void
inputField1.text=String(Math.PI*Number(inputField.text)); -
i used to use call through face time to my macbook, iphone, and ipad vice versa using my primary cell number on my iphone, and the macbook and ipad with my 2 other email add but after updating i0s 7 on ipad and iphone, everytime someone calls me through facetime, all iphone, ipad and macbook would ring at the same time. can someone pls help me,thanks.
I have a very similar network set as you describe.
N devices go to 5 GHZ N router a TC connected by ethernet and N+B/G devices go to the secondary "bridged" router an Extreme connected by ethernet. I also have one more Extreme set also in bridge mode and connected by ethernet. the first two routers are also set to create their own wireless network. You set all this configuration using Airport Utility. I have a HP usb Bonjour shared laserjet connected to the first Extreme. ATV by ethernet to the TC. Xbox360 connected to the first Extreme wirelessly. I've since departed both my Express routers, did not need anymore but I used to have them set in bridge mode and create their own wireless network. Just point each computer device depending upon their speed of wireless card to which ever network you created, keeping the N separate from the B/G.
Maybe you are looking for
-
EJB 3.0 Web Services - Custom Request/Response Wrappers
Hi All, I'm having an issue using Document Literal Wrapped web services with EJB 3.0. I have declared a service endpoint interface(SEI) in one jar file, along with custom wrapper classes for the requests and responses. The wrappers have the XML conte
-
Facetime and iMessage on Macbook Pro Retina display slow after Yosemite 10.10.3 Update
Hi I recently updated my Macbook Pro Retina display to Yosemite 10.10.3 update. I see that the Facetime and iMessage has become relatively very slow. Like for example when someone calls on my phone it takes like more than 15 seconds + to show up on m
-
Creating an 3D array and exporting it to excel
I'm trying to create a spreadsheet file that will have three columns of data. So far, I've been only successful in getting two columns. I tried to look for examples but I could only find examples that had single-floating point numbers, not strings. I
-
Update the Payment Currency and Invoice Currency for all suppliers
Dears; I have a requirement to update the Invoice Currency and Payment Currency for the all defined suppliers in Oracle Apps R12. Any help regards this? Regards;
-
I've loaded a Print Selection service (either Shubert's or Chin's, no way to identify) and it works in Safari, but in Firefox the Services menu for it is grayed-out. Why? As a second question, how do I remove a service if I decide I no longer want it