FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

see my code for transfer data from jsp to vwp page

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
mfa
Posted via mailing list.





PostPosted: Mon Jun 23, 2008 10:54 am    Post subject: see my code for transfer data from jsp to vwp page Reply with quote

sir i have one textField1 in vwp page and one botton
textField1 bound with sessionBean variable mfa

throug button i call jsp page

but that show me null

and in jsp page i have link and use setproperty and getproperty

but when i go to vwp page that no show page data


see my both files

this is my SessionBean1.java

package jspvwp;
import com.sun.rave.web.ui.appbase.AbstractSessionBean;
import javax.annotation.Resource;
import javax.faces.FacesException;
import javax.sql.DataSource;
public class SessionBean1 extends AbstractSessionBean {
@Resource(name = "mfaf")
private DataSource mfaf;
// <editor-fold defaultstate="collapsed" desc="Managed Component
Definition">

/**
* <p>Automatically managed component initialization.
<strong>WARNING:</strong>
* This method is automatically generated, so any user-specified code
inserted
* here is subject to being replaced.</p>
*/
private void _init() throws Exception {
}
// </editor-fold>

public String mfa;

public SessionBean1() {
}
@Override
public void init() {
super.init();
// <editor-fold defaultstate="collapsed" desc="Managed Component
Initialization">
// Initialize automatically managed components
// *Note* - this logic should NOT be modified
try {
_init();
} catch (Exception e) {
log("SessionBean1 Initialization Failure", e);
throw e instanceof FacesException ? (FacesException) e: new
FacesException(e);
}

// </editor-fold>
}
@Override
public void passivate() {
}
@Override
public void activate() {
}
@Override
public void destroy() {
}
protected ApplicationBean1 getApplicationBean1() {
return (ApplicationBean1) getBean("ApplicationBean1");
}
public // </editor-fold>
String getMfa() {
return mfa;
}
public void setMfa(String mfa) {
this.mfa = mfa;
}
}





==============================

this is my normal jsp page

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html> <head> <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
</head>
<body> <h2>Hellohhhhh World!</h2>
<h2><jsp:useBean id="mfa1" class="jspvwp.SessionBean1"/></h2>
<h2><jsp:getProperty name="mfa1" property="mfa"/></h2>
<h2><jsp:setProperty name="mfa1" property="mfa" value="this is test"/></h2>
Page1.jsp kkk

</body> </html>


please give me idea

thank you

aamir




--
View this message in context: http://www.nabble.com/see-my-code-for-transfer-data-from-jsp-to-vwp-page-tp18066760p18066760.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB