SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAP Portal

Similar Threads
Thread Thread Starter Forum Replies Last Post
communication between jsp and abstractportalcomponent Rima SAP Portal 2 10-24-2010 02:40 PM
How to do Ajax communication with jsp and AbstractPortalComponent Ramma SAP Portal 0 10-24-2010 01:33 PM
REG:: JSP Errors Lala SAP Portal 2 10-05-2010 02:45 PM
Unable to set environment variable REMOTE_USER from JSP and SHTML SAPMM SAP Portal 0 10-04-2010 02:41 PM
JSP post back in a iView Lala SAP Portal 2 08-10-2010 02:00 PM

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2010, 12:22 AM
Rima Rima is offline
Senior Member
 
Join Date: May 2010
Location: Kansas
Posts: 280
Default dataexchange JSP , AbstractPortalComponent using HTMLB

Hi all,

Can someone tell me how can I retrieve the value of my inputfield in my AbstractPortalComponent?

Code:
<%@taglib uri="tagLib" prefix="hbj"%>
<hbj:content 
id="myContext">
<hbj:page>
<hbj:form 
id="myFormId">
<jsp:useBean 
id="myBean" 
scope="application" 
class="bean.MyBean" 
/>
<hbj:inputField id = "myInputField1"
value = "hallo"
size = "30"
type = "string"
disabled = "true" />
 
</hbj:form>
</hbj:page>
</hbj:content>
Thanks in advance.

Regards,
Rima
Reply With Quote
Sponsors
  #2  
Old 11-01-2010, 12:39 AM
Golfi Golfi is offline
Senior Member
 
Join Date: May 2010
Location: Delaware
Posts: 824
Default Re: dataexchange JSP , AbstractPortalComponent using HTMLB

Rima,

have you tried the SAP examples at: http://help.sap.com/saphelp_nw04/hel...06/content.htm ?

In the JSP:

Code:
<hbj:inputField id="user_name_input" type="STRING" design="STANDARD" width="250" maxlength="30" />
And in the Java class:

Code:
InputField myInputField = (InputField) getComponentByName("user_name_input");  if (myInputField != null) {    this.name = myInputField.getValueAsDataType().toString();  }
You can also try something like:
Code:
public class ABC extends AbstractPortalComponent {	public void doContent(IPortalComponentRequest request, IPortalComponentResponse response) {		String input = request.getParameter("myInputField1");
Regards,
Golfi
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:38 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno