Sharing data between a bean and a jsp

I have a bean that is being used as a helper class for a jsp page. I can call functions in the bean and display what is returned but I can't test the state of the bean in the jsp page. Is this possible?
my code is below:
jsp: a form posts info to this page
<HTML>
<BODY>
<jsp:useBean id='portal' class='portal.portal'/>
<%-- set the username and password --%>
<jsp:setProperty name="portal" property="*" />
<jsp:getProperty name="portal" property="dbconnection"/>
<Center>
<H1>Welcome to the Portal
<jsp:getProperty name="portal" property="firstName"/>
</H1>
<br>
<table border="0">
<%-- while loop grabs all the services --%>
<%-- case tests for special services (links) --%>
<%
String url = "";
int ServiceID = 0;
//I CAN'T PULL THE VALUES FOR THESE VARIABLES SO THE WHOLE WHILE LOOP IS SKIPPED!
while (url.length() != 0)
switch (ServiceID)
case 69:
%>
<tr valign="top" height="45">
<td>
<center>
" TARGET="new_window"><IMG SRC="images\MEDS TAPE LOG.gif" BORDER=white></A><br>
</center>
</td>
</tr>
<%
break;
case 41:
%>
<tr valign="top" height="45">
<td>
<center>
<A HREF="<jsp:getProperty name="portal" property="url"/>" TARGET="new_window"><IMG SRC="images\Lan Support Website.gif" BORDER=white></A><br>
</center>
</td>
</tr>
<%
break;
case 1:
%>
<tr valign="top">
<td>
<center>
<form name="loginfrm" action="http://204.104.185.139/pls/WLOG/login.ValidateUser" method="post" target=_parent>
<INPUT TYPE=hidden NAME=TXTUSERNAME VALUE="<jsp:getProperty name="portal" property="name"/>">
<INPUT TYPE=hidden NAME="TXTPASSWORD" VALUE="<jsp:getProperty name="portal" property="password"/>">
<input TYPE="submit" VALUE="<jsp:getProperty name="portal" property="serviceName"/>" style="width: 120px;" >
<input type="reset" name="reset" value="">
</Form>
</center>
</td>
</tr>
<%
break;
default:
%>
<tr valign="top">
<td>
<center>
<Form method='post' action='<jsp:getProperty name="portal" property="url"/>' name='loginfrm'>
<INPUT TYPE=hidden NAME="TXTPASSWORD" VALUE="<jsp:getProperty name="portal" property="password"/>">
<INPUT TYPE=hidden NAME="TXTUSERNAME" VALUE="<jsp:getProperty name="portal" property="name"/>">
<INPUT TYPE=hidden NAME="firstname" VALUE="<jsp:getProperty name="portal" property="firstName"/>">
<INPUT TYPE=hidden NAME="lastname" VALUE="<jsp:getProperty name="portal" property="lastName"/>">
<INPUT TYPE=hidden NAME="id" VALUE="<jsp:getProperty name="portal" property="userID"/>">
<INPUT TYPE=hidden NAME="role" VALUE="<jsp:getProperty name="portal" property="roleID"/>">
<input type='submit' name='submit' value='<jsp:getProperty name="portal" property="serviceName"/>'>
</Form>
</center>
</td>
</tr>
<%
break;
%>
<jsp:getProperty name="portal" property="nextForm"/>
<%
%>
</table>
</Center>
</Body>
</Html>
here is the bean:
//bean for portal
package portal;
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import javax.servlet.*;
import java.util.Enumeration;
import java.sql.*;
import java.util.*;
public class portal {
private ResultSet userInfo;
private Statement stmt;
private String pw;//password from the database
private String FirstName;
private String LastName;
private String UserName=""; //network login name
private String UserPassword="";//password supplied by the form
private int UserID; // temp variable while pulling the services from the databases
private int RoleID; // temp variable while pulling the services from the databases
private String ServiceName=""; //temp variable while pulling the services from the database
private int ServiceID;
private String url ="";
//String Message=""; //testing
private String Message2=""; //string that sends the correct html back to the jsp
public int getServiceID(){
return ServiceID;
public void setName(String Name){
UserName = Name;
public String getName(){
return UserName;
public void setPassword(String Password){
UserPassword = Password;
public String getPassword(){
return UserPassword;
public String getFirstName(){
return FirstName;
public String getLastName(){
return LastName;
public String getUrl(){
return url;
public int getUserID(){
return UserID;
public int getRoleID(){
return RoleID;
public String getServiceName(){
return ServiceName;
public String getDbconnection() {
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
DriverManager.setLoginTimeout(60);//time out after 1 min.
Connection con = DriverManager.getConnection("jdbc:odbc:Portal");
stmt = con.createStatement();
String query = "SELECT EMP_TABLE.EMP_PASS, MGR_SERVICES.SERVICE_ID,";
query = query +" MGR_SERVICES.DEFAULT_URL, EMP_TABLE.EMP_USER_ID, *";
query = query +"FROM (EMP_TABLE LEFT JOIN MGR_USER_SERVICES ON";
query = query +" EMP_TABLE.EMP_USER_ID = MGR_USER_SERVICES.USER_ID)";
query = query +" LEFT JOIN MGR_SERVICES ON MGR_USER_SERVICES.SERVICE_ID =";
query = query +" MGR_SERVICES.SERVICE_ID WHERE (((EMP_TABLE.EMP_LAN_ID)='" + UserName+ "'))";
//String query = "SELECT EMP_TABLE.EMP_PASS, MGR_SERVICES.SERVICE_ID,";
//query = query +" MGR_SERVICES.DEFAULT_URL, EMP_TABLE.EMP_USER_ID, *";
//query = query +"FROM (EMP_TABLE LEFT JOIN MGR_USER_SERVICES ON";
//query = query +" EMP_TABLE.EMP_USER_ID = MGR_USER_SERVICES.USER_ID)";
//query = query +" LEFT JOIN MGR_SERVICES ON MGR_USER_SERVICES.SERVICE_ID =";
//query = query +" MGR_SERVICES.SERVICE_ID WHERE (((EMP_TABLE.EMP_LAN_ID)='landwla'))";
//String query = "SELECT * FROM EMP_TABLE WHERE EMP_LAN_ID ='landwla'";
userInfo = stmt.executeQuery(query);
if(userInfo.next())
pw = userInfo.getString("EMP_PASS");
if (UserPassword.equals(pw))
//Message = "Your logged in";
//Message = Message + "Luke you sly devil";
FirstName = userInfo.getString("EMP_FIRST");
LastName = userInfo.getString("EMP_LAST");
UserID = userInfo.getInt("EMP_USER_ID");
RoleID = userInfo.getInt("ROLE_ID");
url=userInfo.getString("DEFAULT_URL");
ServiceName = userInfo.getString("SERVICE_NAME");
ServiceID = userInfo.getInt("Service_ID");
else
Message2 = "<Script Language=JavaScript>";
Message2 = Message2 + "alert('Your Password Information is incorrect');";
Message2 = Message2 + "window.location.href = 'Login.html'";
Message2 = Message2 + "</Script>";
else
Message2 = "<Script Language=JavaScript>";
Message2 = Message2 + "alert('Your Login Information is incorrect');";
Message2 = Message2 + "window.location.href = 'Login.html'";
Message2 = Message2 + "</Script>";
catch (InstantiationException i)
{return (i.toString());}
catch (ClassNotFoundException c)
{return (c.toString());}
catch (SQLException sql)
{return (sql.toString());}
catch (Exception e)
{return (e.toString());}
return Message2;
public String getNextForm() {
try
url="";
ServiceName="";
if(userInfo.next())
url=userInfo.getString("DEFAULT_URL");
ServiceName = userInfo.getString("SERVICE_NAME");
RoleID = userInfo.getInt("ROLE_ID");
ServiceID = userInfo.getInt("Service_ID");
catch (SQLException sql)
{return (sql.toString());}
return Message2;

Of course you can.
<%
String url = protal.getUrl();
%>

Similar Messages

  • Question about main difference between Java bean and Java class in JSP

    Hi All,
    I am new to Java Bean and wonder what is the main difference to use a Bean or an Object in the jsp. I have search on the forum and find some post also asking the question but still answer my doubt. Indeed, what is the real advantage of using bean in jsp.
    Let me give an example to illustrate my question:
    <code>
    <%@ page errorPage="errorpage.jsp" %>
    <%@ page import="ShoppingCart" %>
    <!-- Instantiate the Counter bean with an id of "counter" -->
    <jsp:useBean id="cart" scope="session" class="ShoppingCart" />
    <html>
    <head><title>Shopping Cart</title></head>
    <body bgcolor="#FFFFFF">
    Your cart's ID is: <%=cart.getId()%>.
    </body>
    <html>
    </code>
    In the above code, I can also create a object of ShoppingCart by new operator then get the id at the following way.
    <code>
    <%
    ShoppingCart cart = new ShoppingCart();
    out.println(cart.getId());
    %>
    </code>
    Now my question is what is the difference between the two method? As in my mind, a normal class can also have it setter and getter methods for its properties. But someone may say that, there is a scope="session", which can be declared in an normal object. It may be a point but it can be easily solved but putting the object in session by "session.setAttribute("cart", cart)".
    I have been searching on this issue on the internet for a long time and most of them just say someting like "persistance of state", "bean follow some conventions of naming", "bean must implement ser" and so on. All of above can be solved by other means, for example, a normal class can also follow the convention. I am really get confused with it, and really want to know what is the main point(s) of using the java bean.
    Any help will be highly apprecaited. Thanks!!!
    Best Regards,
    Alex

    Hi All,
    I am new to Java Bean and wonder what is the main
    difference to use a Bean or an Object in the jsp. The first thing to realize is that JavaBeans are just Plain Old Java Objects (POJOs) that follow a specific set of semantics (get/set methods, etc...). So what is the difference between a Bean and an Object? Nothing.
    <jsp:useBean id="cart" scope="session" class="ShoppingCart" />
    In the above code, I can also create a object of
    ShoppingCart by new operator then get the id at the
    following way.
    ShoppingCart cart = new ShoppingCart();
    out.println(cart.getId());
    ...Sure you could. And if the Cart was in a package (it has to be) you also need to put an import statement in. Oh, and to make sure the object is accessable in the same scope, you have to put it into the PageContext scope. And to totally equal, you first check to see if that object already exists in scope. So to get the equivalant of this:
    <jsp:useBean id="cart" class="my.pack.ShoppingCart"/>Then your scriptlet looks like this:
    <%@ page import="my.pack.ShoppingCart %>
    <%
      ShoppingCart cart = pageContext.getAttribute("cart");
      if (cart == null) {
        cart = new ShoppingCart();
        pageContext.setAttribute("cart", cart);
    %>So it is a lot more work.
    As in my mind, a normal class can also
    have it setter and getter methods for its properties.True ... See below.
    But someone may say that, there is a scope="session",
    which can be declared in an normal object.As long as the object is serializeable, yes.
    It may be
    a point but it can be easily solved but putting the
    object in session by "session.setAttribute("cart",
    cart)".Possible, but if the object isn't serializable it can be unsafe. As the point I mentioned above, the useBean tag allows you to check if the bean exists already, and use that, or make a new one if it does not yet exist in one line. A lot easier than the code you need to use otherwise.
    I have been searching on this issue on the internet
    for a long time and most of them just say someting
    like "persistance of state", "bean follow some
    conventions of naming", "bean must implement ser" and
    so on. Right, that would go along the lines of the definition of what a JavaBean is.
    All of above can be solved by other means, for
    example, a normal class can also follow the
    convention. And if it does - then it is a JavaBean! A JavaBean is any Object whose class definition would include all of the following:
    1) A public, no-argument constructor
    2) Implements Serializeable
    3) Properties are revealed through public mutator methods (void return type, start with 'set' have a single Object parameter list) and public accessor methods (Object return type, void parameter list, begin with 'get').
    4) Contain any necessary event handling methods. Depending on the purpose of the bean, you may include event handlers for when the properties change.
    I am really get confused with it, and
    really want to know what is the main point(s) of
    using the java bean.JavaBeans are normal objects that follow these conventions. Because they do, then you can access them through simplified means. For example, One way of having an object in session that contains data I want to print our might be:
    <%@ page import="my.pack.ShoppingCart %>
    <%
      ShoppingCart cart = session.getAttribute("cart");
      if (cart == null) {
        cart = new ShoppingCart();
        session.setAttribute("cart", cart);
    %>Then later where I want to print a total:
    <% out.print(cart.getTotal() %>Or, if the cart is a JavaBean I could do this:
    <jsp:useBean id="cart" class="my.pack.ShoppingCart" scope="session"/>
    Then later on:
    <jsp:getProperty name="cart" property="total"/>
    Or perhaps I want to set some properties on the object that I get off of the URL's parameter group. I could do this:
    <%
      ShoppingCart cart = session.getAttribute("cart");
      if (cart == null) {
        cart = new ShoppingCart();
        cart.setCreditCard(request.getParameter("creditCard"));
        cart.setFirstName(request.getParameter("firstName"));
        cart.setLastName(request.getParameter("lastName"));
        cart.setBillingAddress1(request.getParameter("billingAddress1"));
        cart.setBillingAddress2(request.getParameter("billingAddress2"));
        cart.setZipCode(request.getParameter("zipCode"));
        cart.setRegion(request.getParameter("region"));
        cart.setCountry(request.getParameter("country"));
        pageContext.setAttribute("cart", cart);
        session.setAttribute("cart", cart);
      }Or you could use:
    <jsp:useBean id="cart" class="my.pack.ShoppingCart" scope="session">
      <jsp:setProperty name="cart" property="*"/>
    </jsp:useBean>The second seems easier to me.
    It also allows you to use your objects in more varied cases - for example, JSTL (the standard tag libraries) and EL (expression language) only work with JavaBeans (objects that follow the JavaBeans conventions) because they expect objects to have the no-arg constuctor, and properties accessed/changed via getXXX and setXXX methods.
    >
    Any help will be highly apprecaited. Thanks!!!
    Best Regards,
    Alex

  • How do I share data between my MBP and iMac?

    I have two Genealogy programs on my iMac that I would like to share data between my MBP and the iMac.  I would like to gather the data on the MBP and then share new data to the iMac which is where I basically do all of the Genealogy work from, since it is much easier with the larger screen and better keyboard. 
    Can someone please explain or direct me to a tutorial or procedures if this is possible?  Thank You!

    Click Apple>System Preferences>Sharing
    Check File Sharing. In File Sharing add the folder you want to share with another computer. Then add users. Then proide access previledges such as Read & Write, Read Only, Write Only or No Access.
    Now in the System Preferences, Click iCloud, sign in to iCloud. It's free and you can access your Macs from anywhere.
    In iCloud, check Back to My Mac.
    Do the same to another computer. You're all set by now.

  • What is difference between Managed Bean and Backing Bean?

    What is difference between Managed Bean and Backing Bean? Please guide me how to create them and when to use them?
    Please post sample for both beans.

    Hi,
    managed beans and backing beans are quite the same in that the Java object is managed by the JavaServer Faces framework. Manage in this respect means instantiation. The difference is that backing beans contain component "binding" references, which managed beans usually don't. Do backing beans are page specific versions of managed beans.
    Managed beans are configured either in the faces-config.xml file, or using ADF Faces and ADFc, in the adfc-config.xml file
    Frank
    Edited by: Frank Nimphius on Jan 31, 2011 8:49 AM

  • Kernel Panic while transfering data between MAC HD and network drives

     Kernel Panic while transfering data between MAC HD and network drives. it's an iMAC 24" 2011. Snow Leopard 10.6.8. I can't seem to find the cause to this.Thank you guys !
    Here is the log fine  with error code:
    Error code: 0x0000000000000000
    Interval Since Last Panic Report:  5 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    3C5AA43F-D876-4F9D-A831-D8043218C6E0
    Tue Aug 16 14:54:46 2011
    panic(cpu 0 caller 0xffffff80002d1208): Kernel trap at 0xffffff7f815c6b54, type 14=page fault, registers:
    CR0: 0x000000008001003b, CR2: 0x0000000000000005, CR3: 0x0000000000100000, CR4: 0x0000000000040660
    RAX: 0x0000000000000000, RBX: 0xffffff8000000000, RCX: 0x0000000001000000, RDX: 0xffffff8013ae9200
    RSP: 0xffffff80de173ea0, RBP: 0xffffff80de173ed0, RSI: 0x0000000000000000, RDI: 0xffffff8013ae9200
    R8:  0x0000000000000001, R9:  0x0000000000000000, R10: 0x0000000000000000, R11: 0x0000000000000000
    R12: 0x0000000000000000, R13: 0xffffff8016207008, R14: 0xffffff8015a228f8, R15: 0x0000000000000000
    RFL: 0x0000000000010246, RIP: 0xffffff7f815c6b54, CS:  0x0000000000000008, SS:  0x0000000000000010
    Error code: 0x0000000000000000
    Backtrace (CPU 0), Frame : Return Address
    0xffffff80de173b40 : 0xffffff8000204d15
    0xffffff80de173c40 : 0xffffff80002d1208
    0xffffff80de173d90 : 0xffffff80002e3f4a
    0xffffff80de173da0 : 0xffffff7f815c6b54
    0xffffff80de173ed0 : 0xffffff80002524fe
    0xffffff80de173f00 : 0xffffff8000478c7f
    0xffffff80de173f40 : 0xffffff7f8159b158
    0xffffff80de173fa0 : 0xffffff80002c8527
          Kernel Extensions in backtrace (with dependencies):
             com.thursby.kext.cifs(5.1)@0xffffff7f815ae000->0xffffff7f815cffff
                dependency: com.thursby.kext.NetBIOS(5.1)@0xffffff7f8158b000
             com.thursby.kext.NetBIOS(5.1)@0xffffff7f8158b000->0xffffff7f815adfff
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    10K549
    Kernel version:
    Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64
    System model name: iMac12,1 (Mac-942B5BF58194151B)
    System uptime in nanoseconds: 105374280984
    unloaded kexts:
    (none)
    loaded kexts:
    com.vmware.kext.vmnet            3.1.3
    com.vmware.kext.vmioplug       3.1.3
    com.vmware.kext.vmci                3.1.3
    com.trendmicro.kext.KERedirect              1.0.0
    com.trendmicro.kext.filehook   1.5.0
    com.vmware.kext.vmx86            3.1.3
    com.thursby.kext.cifs    5.1
    com.thursby.kext.NetBIOS         5.1
    com.apple.filesystems.smbfs     1.6.7 - last loaded 60402747883
    com.apple.filesystems.autofs    2.1.0
    com.apple.driver.AppleTyMCEDriver      1.0.2d2
    com.apple.driver.AppleHWSensor           1.9.3d0
    com.apple.driver.AudioAUUC    1.57
    com.apple.driver.AppleUpstreamUserClient      3.5.7
    com.apple.driver.AppleMikeyHIDDriver                1.2.0
    com.apple.driver.AppleMCCSControl     1.0.20
    com.apple.driver.AppleIntelPenrynProfile           17
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AppleMikeyDriver       2.0.5f14
    com.apple.kext.ATIFramebuffer              6.3.6
    com.apple.driver.AppleBluetoothMultitouch     54.3
    com.apple.driver.AppleIntelHDGraphics               6.3.6
    com.apple.driver.AppleIntelNehalemProfile       11
    com.apple.driver.AudioIPCDriver             1.1.6
    com.apple.driver.AppleHDA       2.0.5f14
    com.apple.driver.AppleGraphicsControl               2.10.6
    com.apple.ATIRadeonX3000       6.3.6
    com.apple.iokit.AppleBCM5701Ethernet              3.0.5b8
    com.apple.driver.AppleIntelMeromProfile          19
    com.apple.driver.AirPort.Atheros9388   426.35.3
    com.apple.driver.ACPI_SMC_PlatformPlugin      4.7.0a1
    com.apple.driver.AppleLPC         1.5.1
    com.apple.driver.AppleBacklight              170.0.46
    com.apple.kext.AppleSMCLMU                1.5.2d10
    com.apple.driver.AppleIntelSNBGraphicsFB        6.3.6
    com.apple.driver.AppleUSBCardReader                2.6.1
    com.apple.driver.AppleIRController        303.8
    com.apple.iokit.SCSITaskUserClient        2.6.8
    com.apple.iokit.IOAHCIBlockStorage      1.6.4
    com.apple.driver.AppleUSBHub               4.2.4
    com.apple.driver.AppleFWOHCI               4.7.3
    com.apple.BootCache   31.1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib                1.0.0d1
    com.apple.driver.AppleEFINVRAM          1.4.0
    com.apple.driver.AppleAHCIPort             2.1.7
    com.apple.driver.AppleUSBEHCI              4.2.4
    com.apple.driver.AppleUSBUHCI             4.2.0
    com.apple.driver.AppleACPIButtons      1.3.6
    com.apple.driver.AppleRTC        1.3.1
    com.apple.driver.AppleHPET      1.5
    com.apple.driver.AppleSMBIOS                1.7
    com.apple.driver.AppleACPIEC 1.3.6
    com.apple.driver.AppleAPIC      1.4
    com.apple.driver.AppleIntelCPUPowerManagementClient         142.6.0
    com.apple.security.sandbox       1
    com.apple.security.quarantine  0
    com.apple.nke.applicationfirewall           2.1.12
    com.apple.driver.AppleIntelCPUPowerManagement     142.6.0
    com.apple.driver.AppleProfileReadCounterAction           17
    com.apple.driver.AppleProfileTimestampAction               10
    com.apple.driver.AppleProfileThreadInfoAction               14
    com.apple.driver.AppleProfileRegisterStateAction          10
    com.apple.driver.AppleProfileKEventAction       10
    com.apple.driver.AppleProfileCallstackAction    20
    com.apple.iokit.IOSurface           74.2
    com.apple.iokit.IOBluetoothSerialManager         2.4.5f3
    com.apple.iokit.IOSerialFamily   10.0.3
    com.apple.driver.AppleHDAHardwareConfigDriver          2.0.5f14
    com.apple.driver.IOBluetoothHIDDriver               2.4.5f3
    com.apple.driver.AppleMultitouchDriver             207.11
    com.apple.driver.DspFuncLib     2.0.5f14
    com.apple.iokit.IOAudioFamily  1.8.3fc2
    com.apple.kext.OSvKernDSPLib                1.3
    com.apple.driver.AppleSMBusController              1.0.10d0
    com.apple.iokit.IOFireWireIP     2.0.3
    com.apple.iokit.AppleProfileFamily         41
    com.apple.driver.AppleHDAController   2.0.5f14
    com.apple.iokit.IOHDAFamily     2.0.5f14
    com.apple.iokit.IO80211Family  320.1
    com.apple.iokit.IONetworkingFamily      1.10
    com.apple.driver.IOPlatformPluginFamily            4.7.0a1
    com.apple.driver.AppleSMBusPCI           1.0.10d0
    com.apple.driver.AppleBacklightExpert 1.0.1
    com.apple.iokit.IONDRVSupport              2.2
    com.apple.driver.AppleSMC       3.1.0d5
    com.apple.driver.AppleThunderboltEDMSink     1.1.1
    com.apple.driver.AppleThunderboltEDMSource               1.1.1
    com.apple.kext.ATI6000Controller           6.3.6
    com.apple.kext.ATISupport        6.3.6
    com.apple.iokit.IOGraphicsFamily            2.2
    com.apple.driver.AppleThunderboltDPOutAdapter         1.3.2
    com.apple.driver.AppleThunderboltDPInAdapter            1.3.2
    com.apple.driver.AppleThunderboltDPAdapterFamily   1.3.2
    com.apple.driver.AppleThunderboltPCIDownAdapter   1.1.6
    com.apple.driver.AppleUSBHIDKeyboard             141.5
    com.apple.driver.AppleHIDKeyboard     141.5
    com.apple.driver.BroadcomUSBBluetoothHCIController               2.4.5f3
    com.apple.driver.AppleUSBBluetoothHCIController        2.4.5f3
    com.apple.iokit.IOBluetoothFamily         2.4.5f3
    com.apple.iokit.IOUSBMassStorageClass              2.6.7
    com.apple.iokit.IOSCSIBlockCommandsDevice   2.6.8
    com.apple.iokit.IOUSBHIDDriver               4.2.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice      2.6.8
    com.apple.iokit.IOBDStorageFamily        1.6
    com.apple.iokit.IODVDStorageFamily     1.6
    com.apple.iokit.IOCDStorageFamily        1.6.1
    com.apple.driver.AppleUSBMergeNub 4.2.4
    com.apple.driver.AppleUSBComposite  3.9.0
    com.apple.driver.XsanFilter        402.1
    com.apple.iokit.IOAHCISerialATAPI         1.2.6
    com.apple.iokit.IOSCSIArchitectureModelFamily              2.6.8
    com.apple.driver.AppleThunderboltNHI               1.2.6
    com.apple.iokit.IOThunderboltFamily    1.4.9
    com.apple.iokit.IOFireWireFamily            4.2.6
    com.apple.iokit.IOUSBUserClient             4.2.4
    com.apple.driver.AppleFileSystemDriver              2.0
    com.apple.iokit.IOAHCIFamily    2.0.6
    com.apple.iokit.IOUSBFamily     4.2.4
    com.apple.driver.AppleEFIRuntime         1.4.0
    com.apple.iokit.IOHIDFamily      1.6.6
    com.apple.iokit.IOSMBusFamily                1.1
    com.apple.security.TMSafetyNet             6
    com.apple.kext.AppleMatch      1.0.0d1
    com.apple.driver.DiskImages     289
    com.apple.iokit.IOStorageFamily              1.6.3
    com.apple.driver.AppleACPIPlatform     1.3.6
    com.apple.iokit.IOPCIFamily       2.6.5
    com.apple.iokit.IOACPIFamily    1.3.0
    System Profile:
    Model: iMac12,1, BootROM IM121.0047.B0A, 4 processors, Intel Core i5, 2.7 GHz, 8 GB, SMC 1.71f22
    Graphics: AMD Radeon HD 6770M, AMD Radeon HD 6770M, PCIe, 512 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x9A), Atheros 9380: 4.0.35.3
    Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: Hitachi HDS722020ALA330, 1.82 TB
    Serial ATA Device: OPTIARC DVD RW AD-5690H
    USB Device: Hub, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
    USB Device: Officejet Pro 8000 A809, 0x03f0  (Hewlett Packard), 0x3612, 0xfd140000 / 5
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0xfd110000 / 4
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0xfd120000 / 3
    USB Device: FaceTime HD Camera (Built-in), 0x05ac  (Apple Inc.), 0x850b, 0xfa200000 / 3
    USB Device: Hub, 0x0424  (SMSC), 0x2514, 0xfa100000 / 2
    USB Device: Keyboard Hub, 0x05ac  (Apple Inc.), 0x1006, 0xfa130000 / 5
    USB Device: Apple Keyboard, 0x05ac  (Apple Inc.), 0x0220, 0xfa132000 / 8
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0xfa111000 / 6

    There is something incompatible would be my guess. Did you disconnect all your peripherals in safe mode just to check?
    You might now create a new temporary user account. Log into the new account. Do the panics still occur?
    I would also visit The XLab FAQs and read the FAQ on diagnosing kernel panics. Sometimes they can be difficult to track down. Looking at each new panic log would help determine if it's cause is associated with the same extensions.

  • Sharing resources between parent FDO and children PDO

    Hello,
    I 'm developping a WDM driver for a FPGA that embeds several uarts and a CAN controler in one PCI slot.
    I use the DDK Toaster sample as a basis.
    Has someone already shared resources between  parent FDO and children PDO ?
    One way will be to export a direct-call interface between tha parent and the children. Is there something better to get the interrupt trigger in the child and the memory as a direct access ?
    Thanks
    Marco

    Hi Doron,
    here is the full debug output................
    ADDITIONAL_DEBUG_TEXT:  
    You can run '.symfix; .reload' to try to fix the symbol path and load symbols.
    MODULE_NAME: Nitin
    FAULTING_MODULE: fffff8000324a000 nt
    DEBUG_FLR_IMAGE_TIMESTAMP:  549ced55
    EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
    FAULTING_IP:
    +501cfc0
    00000000`00000000 ??              ???
    EXCEPTION_RECORD:  fffff88003b9a9c8 -- (.exr 0xfffff88003b9a9c8)
    ExceptionAddress: 0000000000000000
       ExceptionCode: c0000005 (Access violation)
      ExceptionFlags: 00000000
    NumberParameters: 2
       Parameter[0]: 0000000000000008
       Parameter[1]: 0000000000000000
    Attempt to execute non-executable address 0000000000000000
    CONTEXT:  fffff88003b9a220 -- (.cxr 0xfffff88003b9a220;r)
    rax=fffffa8022124c40 rbx=0000000000000000 rcx=0000000000000000
    rdx=fffff88003b9ac58 rsi=fffff88000fc60c0 rdi=fffff88003b9acf8
    rip=0000000000000000 rsp=fffff88003b9ac08 rbp=000000000000000c
     r8=0000000000000065  r9=0000000000000003 r10=4679726575516f64
    r11=000000000000000c r12=fffff88000fc92c0 r13=0000000000000312
    r14=0000000000000000 r15=0000000000000000
    iopl=0         nv up ei ng nz na pe nc
    cs=0010  ss=0018  ds=002b  es=002b  fs=0053  gs=002b             efl=00010282
    00000000`00000000 ??              ???
    Last set context:
    rax=fffffa8022124c40 rbx=0000000000000000 rcx=0000000000000000
    rdx=fffff88003b9ac58 rsi=fffff88000fc60c0 rdi=fffff88003b9acf8
    rip=0000000000000000 rsp=fffff88003b9ac08 rbp=000000000000000c
     r8=0000000000000065  r9=0000000000000003 r10=4679726575516f64
    r11=000000000000000c r12=fffff88000fc92c0 r13=0000000000000312
    r14=0000000000000000 r15=0000000000000000
    iopl=0         nv up ei ng nz na pe nc
    cs=0010  ss=0018  ds=002b  es=002b  fs=0053  gs=002b             efl=00010282
    00000000`00000000 ??              ???
    Resetting default scope
    CUSTOMER_CRASH_COUNT:  1
    DEFAULT_BUCKET_ID:  WIN7_DRIVER_FAULT
    BUGCHECK_STR:  0x7E
    CURRENT_IRQL:  0
    ANALYSIS_VERSION: 6.3.9600.17029 (debuggers(dbg).140219-1702) amd64fre
    LAST_CONTROL_TRANSFER:  from fffff8800b9eb091 to 0000000000000000
    STACK_TEXT:  
    fffff880`03b9ac08 fffff880`0b9eb091 : fffff880`0b9ec9a0 00000000`00000001 00000000`00000000 fffff880`009cf180 : 0x0
    fffff880`03b9ac10 fffff880`0b9ec9a0 : 00000000`00000001 00000000`00000000 fffff880`009cf180 00000000`00000001 : Nitin+0x4091
    fffff880`03b9ac18 00000000`00000001 : 00000000`00000000 fffff880`009cf180 00000000`00000001 00000000`00000000 : Nitin+0x59a0
    fffff880`03b9ac20 00000000`00000000 : fffff880`009cf180 00000000`00000001 00000000`00000000 00000000`03060001 : 0x1
    FOLLOWUP_IP:
    Nitin+4091
    fffff880`0b9eb091 ??              ???
    SYMBOL_STACK_INDEX:  1
    SYMBOL_NAME:  Nitin+4091
    FOLLOWUP_NAME:  MachineOwner
    IMAGE_NAME:  Nitin.sys
    STACK_COMMAND:  .cxr 0xfffff88003b9a220 ; kb
    BUCKET_ID:  WRONG_SYMBOLS
    FAILURE_BUCKET_ID:  WRONG_SYMBOLS
    ANALYSIS_SOURCE:  KM
    FAILURE_ID_HASH_STRING:  km:wrong_symbols
    FAILURE_ID_HASH:  {70b057e8-2462-896f-28e7-ac72d4d365f8}
    Followup: MachineOwner

  • How can I share data between WinXP Pro and Mac OS 10.8.3 via wifi

    How can I share data between WinXP Pro and Mac OS 10.8.3 via home wifi. 

    MartyP wrote:
    Or is there a problem with both OS's writing stuff to the
    ~/Home/Library folder that may be incompatible?
    Yes, big time.  Mail, for sure, has a different file/folder structure, and would not be happy.
    Plus, a number of apps (Apple and 3rd-party) are "Sandboxed."  That's a security feature, to prevent malware or bad coding from affecting things it shouldn't.  Some of their files, including the preferences files, aren't even stored in the same places!
    Or to other places I'm not aware of?
    Probably.  If you have two versions of the same app, they may or may not expect the same data setup.
    To have one User folder for both OS's would save a lot of drive space
    Not if you use some or all of woodmeister50's suggestions. 
    But I'm also not sure how I'd use Time machine with such a set up.
    Just as you do now.  By default, Time Machine backs-up everything (except things like system work files, most caches and logs, trash) for all users and all internal drives & partitions.  By default, it excludes external drives.
    You can change those defaults, of course, via TM Preferences > Options.
    See Time Machine - Frequently Asked Question #32 for details and considerations of multiple drives.
    Presently I backup with . . . clones to other HD's
    Good.   Yes, clones are different.  You need multiple "tasks" to back up multiple drives/partitions.  But once set up, that shouldn't be a big deal.

  • Distinguishing between bookmark page and ordinary jsp

    If I bookmark a page in my project and close the browser , and again on restarting the browser
    viewing the same bookmark page without logging in,
    All the links should work.
    It is working , but problem arises here
    how to
    distinguish between bookmark page and ordinary jsp
    which is viewed with login

    The problem is not the bookmark.
    Review your JSP, you may find it does not check the session id.
    In this case, everyone can access the page without login.

  • Replicating data between oracle9i(source) and 10g database

    sucessfully replicated data between source and target in 10g
    Now I have to replicate the data between oracle9i(source) and 10g database(Target) please help me to solve this issue

    sucessfully replicated data between source and target in 10g What sort of Replication you talking about ? Is it Object level , Schema level or DB Level ?
    Now I have to replicate the data between oracle9i(source) and 10g database (Target) please help me to solve this issue
    http://www.freelists.org/archives/oracle-l/08-2005/msg01260.html
    Hare Krishna
    Alok

  • Replicating data between oracle9i(source) and 10g database(Target)

    sucessfully replicated data between source and target in 10g
    Now I have to replicate the data between oracle9i(source) and 10g database(Target)
    please help me to solve this issue

    sucessfully replicated data between source and target in 10g What sort of Replication you talking about ? Is it Object level , Schema level or DB Level ?
    Now I have to replicate the data between oracle9i(source) and 10g database (Target) please help me to solve this issue
    http://www.freelists.org/archives/oracle-l/08-2005/msg01260.html
    Hare Krishna
    Alok

  • Is there a way to stop sharing apps between my iphone and my daughters ipad. We share the same email and itunes account.

    is there a way to stop sharing apps between my iphone and my daughters ipad...we share the same email and itunes account.

    You can keep the same Apple ID for purchases, but set up her own iCloud account for email and syncing.
    You can easily and effectively use the same ID for purchases.
    What you do is use the apple ID you have been using for app/book/movie/music purchases. In Settings > Store, make sure you are using your usual apple ID.
    Then, set up an icloud (@me.com) account for you on your phone, and one for your daughter on her phone. In Settings > iCloud, make sure each of you are using your new iCloud accounts, and not your Apple ID.
    Also, in Settings > Messages > Receive At, make sure you are using your iCloud accounts
    This way, all of your purchases are using one account, and you can effectively use iCloud.

  • Hello, may I change data between iPad Air and other devices by cable connection (USB), (not using cloud) ?

    Hello, may I change data between iPad Air and other devices by cable connection (USB), (not using cloud) ?

    Do you mean you want to sync or transfer data using a cable? Between and iPad Air and what "other device"?

  • Synchronize Calendar Data Between MacBook Pro and MacPro WITHOUT iSync?

    I can't think of the best discussion under which to post this question.
    Sorry if it's OT.
    I want to synchronize iCal data between my MacPro and my MacBook Pro.
    I would prefer to be able to do this wirelessly [either via bluetooth or via both computers Airport Extreme cards] rather than subscribe to iSync and pay for disk space and services that I don't want.
    Is this possible?
    Is there a better forum on which to post this question?
    Thank you for your time and any advice you can give me.

    Actually, there is a better place to post it, here in the .Mac Sync forum:
    http://discussions.apple.com/forum.jspa?forumID=957
    That said, alternatives to .Mac Sync include MySync, and the yet-to-be-released SyncTogether:
    http://www.mildmanneredindustries.com/mysync
    http://www.markspace.com/synctogether.php

  • Is it possible to synchronize all my data between my macbook and my imac

    Is it possible to synchronize all my data between my macbook and my imac automatically ? By icould or any thing esle ?

    Depends what OS each has, but Migration Assistant is one way.

  • Sharing information between tiled view and view bean

    I have come across one more problem. I have a search result
    page. This search result page has a static text field and a repeated group
    (I simplified the page description, for explanation purpose). In the NetD
    implementation they are maintaining a page level attribute (say boolean
    haveSenisitiveCustomers) and setting this attribute in the
    afterDataObjectExecute event. (This data object is associated with the
    repeated). In end display event of static text field, they are displaying
    message say " due to Registration type, not all customers meeting the
    criteria are listed") if the haveSensitiveCustomers flag is set.
    After Migration, the boolean flag and static Text Field movedto
    SearchResultViewBean and afterDataObjectExecuteEvent has moved to
    TiledViewBean. Actual processing done is more complicated than this
    explanation. However, it boils down to sharing information between
    tiledViewBean and its parent bean. How do we achieve this in the Migrated
    Application?
    One way is to add getter methods in the child tiled view bean( to
    access in parent view bean, call getRepeated1 and cast to the actual type
    and invoke the get methods)Probably the typical solution (I say typical because I don't yet know) will
    be to do what you suggest: provide methods between views that can be used to
    determine the state needed for processing like this.
    However, let me alert you to something that's different than ND, and which
    may cause you some trouble. In ND, all retrieving DataObjects associated
    with a page executed at one time, and the afterDataObjectExcecuteEvent fired
    before any display processing began. However, in JATO, tiled views are
    independent objects, and any models associated with them only execute when
    the tiled view is first displayed.
    Therefore, if the static test field you refer to appears in the page before
    the tiled view, then the tiled view will not have executed its associated
    model before the static text field is rendered. You will never see the
    static text field display the text you want because you won't have the
    information at display time. (If the text field appears after the repeated,
    then it's not problem, as the display of the tiled view will have executed
    the associate model before the field displays.)
    The solution is to manually reference the tiled view and its associate model
    before they would normally execute. You would execute the model and set the
    tiled view's setAutoRetrieveEnabled() to false to prevent it from executing
    the model a second time. Perhaps the easiest thing to do would be this:
    beforeStaticTextDisplay(...)
    // Force the tiled view to execute the associated model
    Repeated1TiledView tiledView=
    (Repeated1TiledView)getChild("Repeated1");
    tiledView.beginDisplay();
    tiledView.setAutoRetrieveEnabled(false);
    Although the beginDisplay() method will be executed twice in this case (once
    deliberately, above, and later during actual display), there should be no
    overhead. The beginDisplay() method doesn't do anything anyway except
    execute associated auto-retrieving models and fire the
    afterAllModelsExecute() event.
    Mike, do you concur or have any comments?
    This explanation rests on the understanding of a number of other subjects,
    some of which you may not be fully familiar with. Feel free to ask further
    questions about this explanation.
    Todd
    Todd Fast
    Senior Engineer
    Sun/Netscape Alliance
    todd.fast@e...

    I have come across one more problem. I have a search result
    page. This search result page has a static text field and a repeated group
    (I simplified the page description, for explanation purpose). In the NetD
    implementation they are maintaining a page level attribute (say boolean
    haveSenisitiveCustomers) and setting this attribute in the
    afterDataObjectExecute event. (This data object is associated with the
    repeated). In end display event of static text field, they are displaying
    message say " due to Registration type, not all customers meeting the
    criteria are listed") if the haveSensitiveCustomers flag is set.
    After Migration, the boolean flag and static Text Field movedto
    SearchResultViewBean and afterDataObjectExecuteEvent has moved to
    TiledViewBean. Actual processing done is more complicated than this
    explanation. However, it boils down to sharing information between
    tiledViewBean and its parent bean. How do we achieve this in the Migrated
    Application?
    One way is to add getter methods in the child tiled view bean( to
    access in parent view bean, call getRepeated1 and cast to the actual type
    and invoke the get methods)Probably the typical solution (I say typical because I don't yet know) will
    be to do what you suggest: provide methods between views that can be used to
    determine the state needed for processing like this.
    However, let me alert you to something that's different than ND, and which
    may cause you some trouble. In ND, all retrieving DataObjects associated
    with a page executed at one time, and the afterDataObjectExcecuteEvent fired
    before any display processing began. However, in JATO, tiled views are
    independent objects, and any models associated with them only execute when
    the tiled view is first displayed.
    Therefore, if the static test field you refer to appears in the page before
    the tiled view, then the tiled view will not have executed its associated
    model before the static text field is rendered. You will never see the
    static text field display the text you want because you won't have the
    information at display time. (If the text field appears after the repeated,
    then it's not problem, as the display of the tiled view will have executed
    the associate model before the field displays.)
    The solution is to manually reference the tiled view and its associate model
    before they would normally execute. You would execute the model and set the
    tiled view's setAutoRetrieveEnabled() to false to prevent it from executing
    the model a second time. Perhaps the easiest thing to do would be this:
    beforeStaticTextDisplay(...)
    // Force the tiled view to execute the associated model
    Repeated1TiledView tiledView=
    (Repeated1TiledView)getChild("Repeated1");
    tiledView.beginDisplay();
    tiledView.setAutoRetrieveEnabled(false);
    Although the beginDisplay() method will be executed twice in this case (once
    deliberately, above, and later during actual display), there should be no
    overhead. The beginDisplay() method doesn't do anything anyway except
    execute associated auto-retrieving models and fire the
    afterAllModelsExecute() event.
    Mike, do you concur or have any comments?
    This explanation rests on the understanding of a number of other subjects,
    some of which you may not be fully familiar with. Feel free to ask further
    questions about this explanation.
    Todd
    Todd Fast
    Senior Engineer
    Sun/Netscape Alliance
    todd.fast@e...

Maybe you are looking for

  • How to display the Quantity and Rate fields in PO Report

    I am trying to get a Purchase Order report that has the following fields in it. 1. Ordering Date 2. Purchase Order ID 3. Supplier 4. Product 5 Quantity 6. Rate 7. Amount (Quantity x Amount) The reports under the Purchase Order WoC do not display Quan

  • First Consolidation  purchase method subsequent consoli.. in Equity method

    I have a scenario where the business wants to eliminate investments and equity postings. So investment should be offset against equity.(like in Purchase method). After the client also wants the Net income from the investee to be rolled into parent .(

  • Daughter got a hold of keyboard please help

    well command n used to open up a new safari window, now it just takes me to: Searching "This Mac". i don't know what happened. Even if safari is the main app. it will still take me to Searching "This Mac" each and every time. went to best buy to get

  • Issue Connecting

    Hello, Hi all, I really hope someone can help me with this. I've downloaded the Oracle Database XE and the 11g Oracle Data Access Components (ODAC) 11.2.0.2.30 locally. I'm trying to connect to a local application called Orcl which I created. I get t

  • Error while using hr_asg_budget_value_api.CREATE_ASG_BUDGET_VALUE API

    Hi gurus, i am using hr_asg_budget_value_api.CREATE_ASG_BUDGET_VALUE api for contingent workers. Iam getting below error. please help on this. Cause: FDPSTP failed due to ORA-20001: HR_289367_ABV_DUPLICATE_UNIT ORA-06512: at "APPS.HR_ASG_BUDGET_VALUE