You can not pass parameters from VF to methods in your controller, as VF can only provide action, get and set methods. Please refer following help document for better understanding on how to call controller methods in VF:
when clicking submit it should call 1 more method in apex. that should have the parameters username, password , auth. Is this possible help me with code.
You can not pass parameters from VF to methods in your controller, as VF can only provide action, get and set methods. Please refer following help document for better understanding on how to call controller methods in VF:
Refer: http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_methods.htm
<apex:page controller="Xmlretrive">
<apex:form >
<apex:pageBlock >
<apex:pageBlockButtons location="top">
<apex:commandButton value="Click here to submit" action="{!submit}" reRender="output,resoutput" />
</apex:pageBlockButtons>
<apex:pageBlockSection columns="1">
<Apex:pageBlockSectionItem >
<apex:outputLabel >Enter the username :</apex:outputLabel>
<apex:inputText id="s1" value="{!userName}" />
</Apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel >Password :</apex:outputLabel>
<apex:inputSecret id="s2" value="{!password}" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel >Oauth URL</apex:outputLabel>
<apex:inputText id="s3" value="{!auth}" />
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
when clicking submit it should call 1 more method in apex. that should have the parameters username, password , auth. Is this possible help me with code.
Yes, it is possible. Please refer code sample provided in following wiki doc:
http://wiki.developerforce.com/page/Authenticating_Users_on_Force.com_Sites