ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Passing Parm From JSP to JavaBean?

Post new topic  Reply to topic
 Passing Parm From JSP to JavaBean? « View previous topic :: View next topic » 
Author Message
72dolfan
PostPosted: Fri Feb 22, 2008 11:46 am    Post subject: Passing Parm From JSP to JavaBean? Reply with quote

Acolyte

Joined: 02 May 2006
Posts: 53

Hi All,

I'm trying to pass a parm to my java bean to tell it what environment I'm going after. If the user clicks the view history button for test, I want to pass a parm name of historyEnv with a value of TST. I have it set up in the JSP to do that. In the java bean, I have

private String historyEnv;

public String getHistoryEnv()
{
return historyEnv;
}

public void setHistoryEnv(String historyEnv)
{
this.historyEnv = historyEnv;
}

The I code the following to see if the value is passed and accessable;

String envChk = historyEnv;
System.out.println("HistoryEnv = " + envChk);

It shows up as null. Any ideas what I need to do to be able to use the value passed?

Thanks,
Bill
Back to top
View user's profile Send private message
72dolfan
PostPosted: Fri Feb 22, 2008 11:49 am    Post subject: Reply with quote

Acolyte

Joined: 02 May 2006
Posts: 53

Thought I should provide the code int he JSP;


<hx:commandExButton type="submit" value="VIEW HISTORY - SPECIAL"
styleClass="continuebutton"
action="#{requestType.histRequestType}" immediate="true"
id="btnHistSpec" rendered="#{requestType.view}">
<f:param name="historyEnv" value="TST"></f:param>
</hx:commandExButton>

requestType points to my bean, and histRequestType is the method where I try to display the env value.
Back to top
View user's profile Send private message
JLRowe
PostPosted: Mon Feb 25, 2008 6:04 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

This is a JSF issue, you are unlikely to get help here. I would ask in a JSF forum.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Passing Parm From JSP to JavaBean?
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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.