Passing Jaas form parameters
Hello,
I develop web application with authentication with this form :
<html>
<body>
<form action='j_security_check' method='post'>
<table align='center' style='font-size:12px' width='100%'>
<tr>
<td><img src='./images/logo.gif' style='border:0px'/></td>
<td>Test Management System</td>
</tr>
<tr>
<td>Username</td>
<td style='padding:5'><input type='text' style='width:270px;height:22px' name='j_username'/>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Password</td>
<td style='padding:5'><input type='password' style='width:270px;height:22px' name='j_password'/>
</td>
</tr>
<tr>
<td>Language</td>
<td style='padding:5'>
<select name="codes[]" style='width:270px;height:22px'>
<option>English</option>
<option>French</option>
</select>
</td>
</tr>
<tr>
<td></td>
<td style='padding-top:5'><input type='submit' value='Log in' style='width:90px'/></td>
</tr>
</table>
</form>
</body>
</html>
and everything works fine,but i need to get <select> value(language parameter) on server side, but how? is there any good way to do this?
Troll???
So you have a string reprsenting name and a string representing value and you want to pass into a method that takes 2 strings?? Are you serious?
What about useParameter(paramName, paramValue[0]);Ted.
Similar Messages
-
considering this jsp code that processes a form redirect
java.util.Enumeration params = request.getParameterNames();
String parameters="";
while (params.hasMoreElements())
// Get the next parameter name.
String paramName = (String) params.nextElement();
// Use getParameterValues in case there are multiple values.
String paramValues[] =request.getParameterValues(paramName);
String roomNo="";
if (paramName.indexOf("room_no")>-1){
roomNo=paramValues[0];
// If there is only one value, print it out.
//session.setAttribute(paramName, paramValues[0]);
if (paramName.indexOf(roomNo)>-1){
out.println(paramName+"="+paramValues[0]+"<br>");
}What is the best/efficient way to pass these parameters to my method
e.g
public volid useparameter(String roomname, String roomvalue){
//I need it here to insert in my database
Any samples codes will really help
Thanks in advance.Troll???
So you have a string reprsenting name and a string representing value and you want to pass into a method that takes 2 strings?? Are you serious?
What about useParameter(paramName, paramValue[0]);Ted. -
To pass the page parameters to a form in portal
Hi,
I am trying to develope a simple page using portal which contains
1. Simple parameter form.
2. Form that accepts the data from the simple parameter form.
I want to pass 2 page parameters to this form(no.2)
Is it possible to pass the page parameters to a form in portal?You can see a simple example of setting parameters here:
http://www.patrickhaston.co.uk/Portal/parameters.html
And to use them in a form:
http://www.patrickhaston.co.uk/Portal/webplsqlapp1.html
Hope this helps.
Patrick -
i want to pass form parameters to a servlet for processing i.e. i have a username and password here is my form code. does the action clause have to append the username and password or does it do it automatically?
<form name="form1" method="post" action="<%= response.encodeURL("/bookstore/controller?action=login&username=username&password=password") %>">
<p>Username:</p>
<input type="text" name="username">
<p>Password:</p>
<p>
<input type="text" name="password">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>The form does it automatically.
Your action only has to be "/bookstore/controller?action=login" -
Forms 6i - Types of parameters, which can be passed from forms to reports?
Hello all,
Can somebody tell me about
Types of parameters, which can be passed from forms to reports?
plzzPlease ask this question in the appropriate forum for [url http://forums.oracle.com/forums/forum.jspa?forumID=82]Oracle Forms.
Regards,
Rob. -
Passing FORM parameters when opening form from a JSP
Hi,
is it possible to pass form parameters when opening the form from a JSP as a URL. If yes then what should be the way in which parameters has to be passed.
thanks.Hi,
Sorry there was some confusion.
I want to pass parameters to a (D2K) form from a JSP. I'm able to open the D2K form but unable to pass the parameters into that form.
Is it possible to pass parameters to D2k FORM from a JSP...
Thanks -
Passing form parameters to another form in another frame
I want to have a frameset with the form entries in the top frame and the submit button in the bottom frame. I think the weay to do it is to use javascript to copy the top form parameters over to hidden variables in the bottom form (the one with the submit button). Can someone help me with the javascript (or general approach)
I'm tryuing something like the following: The javescript has errors, though...
<!-- iframe.jsp -->
<frameset rows="*,100">
<frame name="frame1" src="frame1.jsp">
<frame name="frame2" src="frame2.jsp">
</frameset>
<!-- frame1.jsp -->
<form name="form1" method="post">
<input type="text" name="param1"><br>
<input type="text" name="param2">
</form>
<!-- frame2.jsp -->
<html>
<HEAD>
<ScRiPt>
function getValues()
document.frame1.form[mainform].param2 = document.frame1.form[form1].param1;
document.frame2.form[mainform].param2 = document.frame1.form[form1].param2;
</SCRIPT>
</HEAD>
<body>
<form method=post name="mainform" onsubmit="getValues()" action="process.jsp" target="_parent">
<input type="hidden" name="param1">
<input type="hidden" name="param2">
<input type=submit name=submit value=submit>
</form>
</body>
</html>
<!-- process.jsp -->
param1 = <%=request.getParameter("param1")%><br>
param2 = <%=request.getParameter("param2")%><br><br>
click here to go backI figured it out. The following worked.
ifram.jsp and process.jsp unchanged...
<!-- frame1.jsp -->
<form name="form1" method="post" action="process.jsp" target="_parent">
<input type="text" name="param1"><br>
<input type="text" name="param2">
</form>
<!-- frame2.jsp -->
<html>
<HEAD>
<ScRiPt>
function frame2()
parent.frames.frame1.document.form1.submit();
</SCRIPT>
</HEAD>
<body>
<form method=post name="mainform" >
<input type=submit name=submit value=submit onclick="frame2()">
</form>
</body>
</html> -
How to pass the report parameters through java not by using URL
Hello...
I have an oracle App. Server 10g with report service
I can the report using the URL :
http://host:Port/rwservlet/report=....
and passing the report parameters ...
But is there any way to call the report by pdf format and passing the parameters from java without using the url ???thank you shahcsanjay for your reply
but I think that web.showDocument can not be used by ordinary java web application ..
I think it can be used only with with "oracle forms" Am I right ?
If no can you please tell me where can I find a useful document about how to use web.showDocument ...
thanks again
Saleem -
Passing 2 date parameters in report
I have to create a report in such a way that ...i have to pass 2 date parameters to get the report..
For example..
I get report parameter pagein reports and then I enter the parameter
Parameter1: 27-MAY-10
Parameter2: 30_JUN-10
and then i click RUN REPORT
can any1 help me out how to pass this parameter in report... i am stuck at this point
NOTE: I want to use the parameter form feature in report builder....@ Sarah
what you do is to call a refort from a form. i think it is not what Suhail want.
@ Suhail
if i understand, you want to pass the parameters from the parameterform your report to the report.
i think you must create a parameterform and save it als html like this:
To create a simple Parameter Form in HTML:
1. In a text editor or HTML editor, create an HTML page that contains a form. The
form should contain a list of values, a field, and a button. The code for this form
can look something like the following:
<form name="form1" method="post" action="*NAME_form.jsp*">
<h2>Parameter Form</h2>
<input id="connect" type="hidden" name="userid" value="*hr/hr@db-connect*">
<input type="hidden" name="destype" value="*cache*">
<input type="hidden" name="desformat" value="*html*">
<br> Date_beginn: <input type="text" name="Date Beginn" value="">
<br> Date_end: <input type="text" name="Date end" value="">
<input type="submit" name="Submit" value="Run Report">
</form>
you can save this code als .html.
Now you can open the code in the report builder and save it als .jsp.
you can yet start with the copilation of the report.
i hope this code will help you. -
Generate PDF file using form parameters
how to generate output file like PDF while parameters pass thru form builder. i dont want output on screen.
i just want to pass parameters thru form builder and report builder will automatically generate output file like PDF onto my hard drive.Dear all,am new to oracle report and oracle forms and i know the
basics how to generate the report and to create the form, Now my doubt is, like generating report
from oracle report how to generate the report from oracle from,should i add any command button? and where
to add the coding and what coding ? when i click that command button the report should be generated like oracle
report,what should i do?Please help me to learn.
my table name is 'student' and it has the following columns,
sid,sname,grade,result.
Am using oracle from 10.1.2.0.2 version and
oracle report version is 10.1.2.0.2.
Please give step by step procss.
Thank you. -
Syntax error in form parameters
HI,
In ECC 6.0, LIKE is obsolete , so I want to change it to TYPE. I replaced all LIKE to TYPE. In my code I call a form subroutine and in the changing parameter i have two internal tables passed. Earlier the statement was
PERFORM zz_routine USING I_VBAK
CHANGING T_VBUK[]
T_VBAP[].
where I_VBAK TYPE VBAK and
T_VBUK TYPE STANDARD TABLE OF VBUKVB.
T_VBAP TYPE STANDARD TABLE OF VBAPVB.
Now in the recieving paramters how do I mention these using TYPE
I did as follows
Form zz_routine USING value(ss_vbak) TYPE VBAK
CHANGING xt_vbuk TYPE STAnDARD TABLE OF VBUKVB
xt_vbap TYPE STAnDARD TABLE OF VBAPVB
Now, I get the syntax error
"OF" has already been declared.
What does that mean ? what is the correct way to say that I need to receive a table type data in the form ?
thnksDeclare a Table Type which you can use to reference in your Form Parameters.
Like:
types: ty_t_vbap type standard table of VBAPVB.
data: t_vbap type ty_t_vbap.
PERFORM zz_routine using ia_vbak
changing t_vbap.
Form zz_routine USING value(ss_vbak) TYPE VBAK
CHANGING xt_vbap type ty_t_vbap.
ENDFORM.
Regards,
Naimesh Patel -
How to pass the FORM Fields value by Form Personalization
Hi ALL,
I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
can any one suggest what to do???
i tried with these syntax
TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
Regards
RaviHi,
Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
Regards,,
Anil. -
How to specify the type of table in the form parameters
How to specify the type of table in the form parameters. for example, how to specify the type of table "vacancies".
FORM getcertainday
USING
vacancies TYPE STANDARD TABLE
efirstday LIKE hrp9200-zfirst_day
lfristday LIKE hrp9200-zfirst_day.Hi
Are you asking about subroutine program to declare a variable for perform statement etc
if it so check this coding
DATA: NUM1 TYPE I,
NUM2 TYPE I,
SUM TYPE I.
NUM1 = 2. NUM2 = 4.
PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
NUM1 = 7. NUM2 = 11.
PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
FORM ADDIT
USING ADD_NUM1
ADD_NUM2
CHANGING ADD_SUM.
ADD_SUM = ADD_NUM1 + ADD_NUM2.
PERFORM OUT USING ADD_NUM1 ADD_NUM2 ADD_SUM.
ENDFORM.
FORM OUT
USING OUT_NUM1
OUT_NUM2
OUT_SUM.
WRITE: / 'Sum of', OUT_NUM1, 'and', OUT_NUM2, 'is', OUT_SUM.
ENDFORM.
If your issue is some other can u explain me clearly
Regards
Pavan -
How to pass Applet form variables without showing it on top ?
I am running one applet with some form variables. After submit I want to pass those to .asp file to store into database.
If I use URL method then all are getting displayed on URL location of browser which I do not want. I want to pass many form variables to another .asp file, so it may not be good also.
What is the best way of doing it ? Need urgent help about it.Well If you create a POST request instead as a GET request the variables will not show up in the URL.
On tips how to do that you can either check out this thread:
http://forums.java.sun.com/thread.jsp?forum=31&thread=56388
or one of these:
http://search.java.sun.com/Search/java?qt=applet+GET+POST+variables&col=javafrm&rf=0
Sjur -
How do I pass a form value to Google Analytics
I would like to pass a form value to Google Analytics. ie. if the user enters a value and submits the form, on the confirmation page I'd like to read the value and other form fields and pass those populate the Google Analytics tracking code ie. populate this withthe form values:
_gaq.push(['_addItem',
'1234', // order ID - necessary to associate item with transaction
'DD44', // SKU/code - required
'T-Shirt', // product name - necessary to associate revenue with product
'Olive Medium', // category or variation
'11.99', // unit price - required
'1' // quantity - requiredHow about this - bind an ajax call to google analytics to the form submit button (change the type from submit to button or suppress the default event), having the form itself only submit after the ajax call is successful? No need to even worry about the confirmation page then.
Maybe you are looking for
-
Problem with import tag in xsl files and include in xsd files
Hello, I've been developing an application using JBoss as server. Then, i created an especific path for xsd and another path for xsl files. In both cases, i created a main file that include (xsd) or import (xsl) the other files. My problem is that i
-
My iMovie is not responding any suggestions
My Imovie is not responding...any suggestions
-
How to access a file using Applet?
Dear all, I would like to use an applet to read and display information on server side, but there still a fileaccess permission denied, what can i do? The idea of the web service is like that:: 1.User connected to a webpage, than they can choose the
-
Hi, wanted to ask if internationalization of EP is same as internationalization of webDynpro NWDS. Is the following link the correct path for implementing multi-language feature in portal's existing features,and portal applications? the link: http://
-
Mac book air 11 inches go in stand by when moved suddenly
i noticed it happens especially when is taken form down to up or up to down lik for instance form my lap to the desk, which is about 10cm change of hights. the screen goes black, and when I touch the track pad it goes on again and ask me for the logi