In a jsp page one name button that corresponding 5 TextField how to insert
hi,
In a jsp page one name button that corresponding 5 TextField how to insert values inthe database that 5 textfield values
Hi use
String s=request.getParameter("Text Filed Name");
do this for all the Text Field..... Then use preparedSatatment for inserting that data inside the database.
Similar Messages
-
Upgraded 2 FFv.4. Used 2 type a utility's name in2 url field & it would usually take me 2 that utility's website w/out knowing the url. Now takes me 2 crap search page. Why is that feature gone & how do I get it back?
Typing into url field used to send me to google search, now it's a total crap generic search. wtf? What happened? I pretty much hate v.4 right now and wish I never upgraded :P
-
2 forms on page -- one submit button?
Using Dreamweaver CS3 I've created a page that basically has
2 forms on it. Each form is connected to its own recordsource /
database (but display information regarding the same customer).
Right now there's a "submit" button underneath each form.
I'd really like to be able to set this up so that there is
only one "submit" button and it updates both databases from the
form data once it is pushed.
Is this possible? If so, could someone please point me to
some directions on how to do it?
Any help would be greatly appreciated.
Thank you.It is possible, but the easiest way would be to combine the
two forms into a
single one. Why not do it that way?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"GlennC02108" <[email protected]> wrote in
message
news:g9ejc0$rge$[email protected]..
> Using Dreamweaver CS3 I've created a page that basically
has 2 forms on
> it.
> Each form is connected to its own recordsource /
database (but display
> information regarding the same customer).
>
> Right now there's a "submit" button underneath each
form.
>
> I'd really like to be able to set this up so that there
is only one
> "submit"
> button and it updates both databases from the form data
once it is pushed.
>
> Is this possible? If so, could someone please point me
to some directions
> on
> how to do it?
>
> Any help would be greatly appreciated.
>
> Thank you.
> -
Welcome page, one start button, two outcomes
hi,
I have a welcome page with a Start button which is the first page after authentication. If the user is logged in as roleA then next page after start button is pressed should be pageA and if user is logged in as roleB then next page should be pageB. User data are bound to userInfo managed bean in session scope which has methods isRoleA(), isRoleB() and getUserRole(). How can I bind this start button to achieve this (if possible with code sample)Can't you just code the method for the button to ask for the value of the role and based on the result return one of two navigation cases that you use in your faces-config.xml flow?
-
PDF form with one submit button that prints form and sanves PDF with data with a unique file name
We have a long medical form that patients can fill out at kiosks as they wait to see a doctor. We want one button so that the patient can print out the form with one click (and finish filling it out by hand if it's not finished already) and the same button click will save the form with a unique file name (using last name, first name, date, and/or email address so that the identity of the person who filled out the form will be readily apparent to anyone who wants to grab the user's responses later). Is Acrobat capable of doing something like this? LiveCycle Designer maybe? And if we continue with the PDF form and add a submit button, is there a way to program the button click to print and to save?
Thank you in advance of any suggestions that might accomplish this task.I am not sure about the print, but it can probably be done -- possibly with a bit of JavaScript. As to the saving of the form, that is not reasonable at a kiosk. You would want the data submitted to a server (particularly with patient data), no e-mail or accessible drive. You can collect the data and put it in a database or import it to the form for printing yourself.
-
This is happening with an ASP page. Not sure when it started, but the page used to work fine. The Java script is listed in the troubleshooting section. The button calls nextPic() which calls showPic(). After nextPic processes the page is reloaded.
A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.
See http://forums.mozillazine.org/viewforum.php?f=25 -
''duplicate of https://support.mozilla.org/en-US/questions/1048541''
This is irritating.A new tab will always open at the end of the current open tabs. In order to load a tab in the background try to right click and select "Open in new tab"
(Note you may need to turn off the Tab preference that switches to it immediately) -
History problem in jsp page,internet explorer back button
hi everyone
i have a jsp page suppose a.jsp.in which i am using dropdown menu to displays:list of data from database,one submit button i am using name select and click here.after selecting the value from dropdown menu ,again some other data will be displayed from some other table in same a.jsp page.
my problem is:
when user selects one value from drop down menu ,it is diplaying the value in same page .upto here is ok
and i click back button from I.E only one page back it is showing
but when user select the value form drop down menu 2nd time ,and after data get dipalyed in same apge a.jsp.then
whne i click back button ,now it is showing two a.jsp page .history is not going .
this is the problem.i dont want to this morw than one page get displayed in back button.only one page a.jsp
if anyone has understood my problem ,please help.
thankuthanks java2006
but it is not working .i will try to explain once again
1. one page called a.jsp.this page contains one drop drown menu list box ,and one submit button.
2.data in drop dropdown is coming from db.as the user select value from drop down box .relalted value is diplayed on same a.jsp page.
3.again user select the 2ndvalue from drop down box ,related value is displayed.
this i explained about my a.jsp page.
problem is
4.when user select the 1st value and clcik on submit button related value is displaying.upto here its ok.and in back button of Internet explorer it is showing only one a.jsp page
5.but whenever i am trying to see 2nd or 3rd or more value from drop down after related value is being diplayed in same a.jsp page.
the back button of internet exlorer showing two a.jsp page after clcicking submit button
.as u have told the code aso but it is not working
i have added ur code indisde html tags . -
How do I create multiple TEBs with one submit button on one page in Captivate 7
I've read other posts on this topic (which refer primarily to earlier versions of Captivate) and am still at a loss as to how to put multiple text entry boxes on a page with one submit button. Here's my scenario:
I am creating test questions.
Each test question has multiple text entry boxes (for numbers only).
Student should be able to enter numbers into the textboxes in any order.
Then there is one Submit button that should initiate validating all the text entries, and move to a scoring page (so I can test it). (What would be best is if this button not only did the above, but also submitted scores to the LMS. But that is not my question at this time.)
I'd like this question to be set up as a template so that I can duplicate it, be able to add or delete text boxes and change the values required in the text boxes.
Here is an image of a sample question page with multiple TEBs. The yellow boxes tell the student where they need to enter text:
Any help or direction to help is appreciated!!I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz. Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it. But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
You can learn more about the Master widget here:
http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
http://www.infosemantics.com.au/interactivemaster/help
You can download a free trial version of the widget here:
http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
One caveat you should be aware of is that this widget is not HTML5 compatible. -
How do you fire a button click event on apex page from fancybox iframe that was created by page
I am trying to fire off the button click event from fancybox iframe. The apex page has a button that launches a fancybox iframe which is loaded with an APEX form. On close of that fancy box, I am trying to fire a click event on the parent page which will refresh a div with html that is created with plsql. The button on the page works as expected when clicked from the page. It will show a debug alert message to prove it was called and then load the div with the correct data. I am unable to fire off this button click from the fancybox iframe when it closes.
A couple of points:
I using Plug-in: Execute PL/SQL Code and Return Content ("PLUGIN_MULEDEV.SERVER_REGION_REFRESH") to place the create fancybox statement. It is used to populate a div using plsql.
The name of the button on the main page is P2020_REFRESH_SECTION_BUILDER_BTN.
The click dynamic action on the button is calling the plugin to replace the html in the div.
The data in the form in the fancybox is being saved to the database. On close of the fancybox box I want to refresh the div so the new record is included in the div html.
Can anyone help. Here is the fancybox code:
function customProcessOnReadyState4(){
for (var i=0;i<11;i++){
$( "#tabs"+i ).tabs();
$("#createNewExerciseLink"+i).fancybox({
''width'' : ''60%'',
''height'' : ''70%'',
''autoScale'' : true,
''transitionIn'' : 200,
''transitionOut'' : 200,
''type'' : ''iframe'',
''onClosed'' : function() {
window.parent.$(''#P2020_REFRESH_SECTION_BUILDER_BTN'').click();
Here are the dynamic actions assigned to the button:
5 - Execute JavaScript Code
alert("Starting refresh");
10 - Execute PL/SQL Code and Return Content [Plug-in]
begin
SCTUI.create_sct_tabs2(:P2020_CREATE_SECTION_LOV, '1');
end;user setActionListener...
<af:setActionListener from="#{bindings.XXX.inputValue" to="#{backingbean.variable}"
<af:inputText value="#{bindings.Email.inputValue}"
label="#{bindings.Email.hints.label}"
binding="#{backingBeanScope.backing_ShuttlePage.it2}"
id="it2">
<f:validator binding="#{bindings.Email.validator}"/>
</af:inputText>
<af:commandButton text="commandButton 2"
binding="#{backingBeanScope.backing_ShuttlePage.cb2}"
id="cb2" action="passing">
<af:setActionListener from="#{bindings.Email.inputValue}"
to="#{processScope.detail}"/>
</af:commandButton>next jsf page:
<af:outputText value="#{processScope.detail}"
binding="#{backingBeanScope.backing_ProcessScope.ot1}"
id="ot1"/>setPropertyListener also should work
<af:setPropertyListener from="#{bindings.Email.inputValue}" to="#{processScope.detail}" type="action"/> -
How to retrieve the parameter names from a JSP page ? Urgent Please
Hello,
Can anybody tell me how to retrieve the parameter names from the JSP
page. (without using getParameterNames() method.)
The problem with the getParameterNames() method is I get the Jumbled output.
I need it very badly
With regards
Ananth R
email:[email protected]
[email protected]Dear duffymo,
My primary intention is to convert the JSP form information into a XML file.
If I do not get the Parameter names in the correct order how can I maintain
tag order in XML file.
For ex: (JSP PAGE VIEW)
Name--
FirstName
MiddleName
LastName
Address--
Street1
Street2
City
Country
&so on
(XML File to be generated)
<Name>
<FirstName>Value</FirstName>
</Name>
<Address>
<street1>value</street1>
</Address>
& so on
If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
order means: Order of entry on the page, from top to bottom
That's it
Waiting for your responses -
Insert from button in jsp page
hi, im new o jso and needto make an insert frim a jsp page with a button,
what should i do?
i made a javascript function but i really dont know if am i right and then i tried to call this function from the html tag
beside this i execute de query from java and it was success!!, but i dont know what is wrong when i try from the jsp page with de button, please help!
thx!
here it's my code:
<script type="text/javascript">
import java.sql.*;
function Agregar()
return
StringBuffer sb = new StringBuffer();
try{
Class.forName("org.postgresql.Driver");
Connection conn = DriverManager.getConnection("jdbc:postgresql://localhost:5432/Prueba","postgres","hola");
Statement stmt = conn.createStatement();
stmt.executeUpdate("INSERT INTO tbl_responsable (cedula,nombre,direccion) VALUES (14021752,'carlos','caracas')");
}catch(Exception e){
System.out.println("EXPLOTO");
</script>
ahora en el html que debo hacer??, o si tengo q hacer otra cosa???
html del boton:
<input type="submit" value="Agregar" action="Agregar()">
what should i do, what its wrong??
thx again!try this
<input type="submit" onclick=" return Agregar();">
or
<input type="submit" onclick=" Agregar();"> -
Browse for folder button in JSP Page
Trying to create a browse for folder button in a JSP page. Anybody with some ideas on how to do this? Applet, Bean, some other way? Has anybody done this before? Is it even possible?
Thanks in advance!We have done it with Struts before. Also seen it done with javascript.
-
How to retrieve multiple data from table and represent it in jsp page
Hi
The below JavaScript code is used to add row in the table when I want to add multiple row data into table for single entry no field.
<html> function addRow()
i++;
var newRow = document.all("tblGrid").insertRow();
var oCell = newRow.insertCell();
oCell.innerHTML = "<input name='srno"+i+"' type='text' id='srno"+i+"' size=10>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='itmcd"+i+"' type='text' id='itmcd"+i+"' size='10'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='itmnm"+i+"' type='text' id='itmnm"+i+"' size='15'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='indentqty"+i+"' type='text' id='indentqty"+i+"' size='10'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='uom"+i+"' type='text' id='uom"+i+"' size='10'><input type='hidden' name='mcode"+i+"'id='mcode"+i+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='packqty"+i+"' type='text' id='packqty"+i+"' size='10'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='packuom"+i+"' type='text' id='packuom"+i+"' size='10'><input type='hidden' name='pack"+i+"' id='pack"+i+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='rate"+i+"' type='text' id='rate"+i+"' size='10'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='dor"+i+"' type='text' id='dor"+i+"' size='0' onClick='"+putdate(this.name)+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='bccode"+i+"' type='text' id='bccode"+i+"' size='10'></td><input type='hidden' name='bcc"+i+"' id='bcc"+i+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='cccode"+i+"' type='text' id='cccode"+i+"' size='10'></td><input type='hidden' name='ccc"+i+"' id='ccc"+i+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='remark2"+i+"' type='text' id='remark2"+i+"' size='20'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input type='button' value='Delete' onclick='removeRow(this);' />";
// oCell = newRow.insertCell();
// oCell.innerHTML = "<input type='button' value='Clear' onclick='clearRow(this);' />";
}<html> Then this data are send to the next Servlet for adding into two table.
My header portion data are added into one table which added only one row in table. while footer section data are added into the no of rows in another table dependent on No. of
Rows added into jsp page.
Here is an code for that logic.
<html>
ArrayList<String> mucode = new ArrayList<String>();
ArrayList<Integer> serials = new ArrayList<Integer>();
ArrayList<Integer> apxrate = new ArrayList<Integer>();
ArrayList<Integer> srname = new ArrayList<Integer>();
ArrayList<String> itcode = new ArrayList<String>();
ArrayList<String> itname = new ArrayList<String>();
ArrayList<Integer> iqnty = new ArrayList<Integer>();
ArrayList<String> iuom = new ArrayList<String>();
ArrayList<Integer> pqnty = new ArrayList<Integer>();
ArrayList<String> puom1 = new ArrayList<String>();
ArrayList<Integer> arate = new ArrayList<Integer>();
ArrayList<String> rdate = new ArrayList<String>();
ArrayList<String> bcs = new ArrayList<String>();
ArrayList<String> ccs = new ArrayList<String>();
ArrayList<String> remarkss = new ArrayList<String>();
//ArrayList<Integer> qtyrecs = new ArrayList<Integer>();
//ArrayList<String> dors = new ArrayList<String>();
//ArrayList<String> remarks = new ArrayList<String>();
String entryn = request.getParameter("entryno");
String rows = request.getParameter("rows");
out.println(rows);
//String Entryno = request.getParameter("entryno");
// out.println(Entryno);
int entryno = 0,reqqty = 0,srno = 0,deprequest = 0,rowcount = 0;
if(!Entryno.equals("")){
entryno = Integer.valueOf(Entryno);
if(!rows.equals("")){
rowcount = Integer.valueOf(rows);
for(int i=1;i<=rowcount;i++){
if(request.getParameter("srno"+i)!=null){
serials.add(Integer.valueOf(request.getParameter("srno"+i).trim()));
out.println(serials.size());
for(int i=1;i<=rowcount;i++){
if(request.getParameter("srno"+i)!=null){
srname.add(Integer.valueOf(request.getParameter("srno"+i).trim()));
out.println(srname.get(0));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("itmcd"+i)!=null){
itcode.add(request.getParameter("itmcd"+i).trim());
} //out.println(itcode.get(i));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("itmnm"+i)!=null){
itname.add(request.getParameter("itmnm"+i).trim());
}//out.println(itname.get(i));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("indentqty"+i)!=null){
iqnty.add(Integer.valueOf(request.getParameter("indentqty"+i).trim()));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("uom"+i)!=null){
iuom.add(request.getParameter("uom"+i).trim());
}//out.println(iuom.get(i));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("mcode"+i)!=null){
mucode.add(request.getParameter("mcode"+i).trim());
for(int i=1;i<=rowcount;i++){
if(request.getParameter("packqty"+i).equals("")){
pqnty.add(0);
}else
pqnty.add(Integer.valueOf(request.getParameter("packqty"+i).trim()));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("pack"+i)!=null){
puom1.add(request.getParameter("pack"+i).trim());
}else
puom1.add("");
for(int i=1;i<=rowcount;i++){
if(request.getParameter("rate"+i).equals("")){
arate.add(0);
}else
arate.add(Integer.valueOf(request.getParameter("rate"+i).trim()));
/* for(int i=1;i<=rowcount;i++){
if(request.getParameter("rate"+i)!=null){
arate.add(Integer.valueOf(request.getParameter("rate"+i).trim()));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("dor"+i)!=null){
try{
rdate.add(dashdate.format(slashdate.parse(request.getParameter("dor"+i).trim())));
}catch(ParseException p){p.printStackTrace();}
}else
{ rdate.add("");}
for(int i=1;i<=rowcount;i++){
if(request.getParameter("bcc"+i)!=null){
bcs.add(request.getParameter("bcc"+i).trim());
}out.println(bcs.get(0));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("ccc"+i)!=null){
ccs.add(request.getParameter("ccc"+i).trim());
}out.println(ccs.get(0));
for(int i=1;i<=rowcount;i++){
out.println("remark2");
if(request.getParameter("remark2"+i)!=null){
remarkss.add(request.getParameter("remark2"+i).trim());
}out.println(remarkss.get(0));
ArrayList<String> Idate = new ArrayList<String>();
for(int i=1;i<=rowcount;i++){
if(request.getParameter("dateindent"+i)!=null){
try{
Idate.add(dashdate.format(dashdate.parse(request.getParameter("dateindent"+i).trim())));
}catch(ParseException p){p.printStackTrace();}
String Rdate = dashdate.format(new java.util.Date());
String tdate = dashdate.format(new java.util.Date());
// String Indentdate = dashdate.format(new java.util.Date());
// String ApprovedT1 = dashdate.format(new java.util.Date());
// String ApprovedT2 = dashdate.format(new java.util.Date());
// String ApprovedT1=" ";
//String ApprovedT2="";*/
String ApprovedT1= dashdate.format(new java.util.Date());
out.println (ApprovedT1);
String ApprovedT2=dashdate.format(new java.util.Date());
out.println(ApprovedT2);
String Indentdate=(dashdate.format(slashdate.parse(request.getParameter("dateindent").trim())));
out.println(Indentdate);
String Cocode ="BML001";
out.println(Cocode);
String Deptcode = request.getParameter("dept1");
out.println(Deptcode);
String Empcode = request.getParameter("emp");
out.println(Empcode);
String Refno =request.getParameter("rtype");
out.println(Refno);
String Divcode = request.getParameter("todiv1");
out.println(Divcode);
String Usercode = "CIRIUS";
String Whcode = request.getParameter("stor");
out.println(Whcode);
// String Itemgroupcode = request.getParameter("");
String Itemgroupcode ="120000";
out.println(Itemgroupcode);
String Supplytypecode = request.getParameter("stype");
out.println(Supplytypecode);
String Delcode = request.getParameter("deliverycode");
out.println(Delcode);
String Itemclass="WS";
out.println(Itemclass);
// String Itemclass = request.getParameter("iclass");
// out.println(Itemclass);
String unitcode = request.getParameter("uni");
out.println(unitcode);
String Todivcode = request.getParameter("todiv1");
out.println(Todivcode);
String Appxrate = request.getParameter("rate");
out.println(Appxrate);
String Srno = request.getParameter("srno");
out.println(Srno);
/* String Indqty = request.getParameter("indentqty");
out.println(Indqty);*/
String Itemcode = request.getParameter("itmcd");
out.println(Itemcode);
String Othersp = request.getParameter("remark1");
out.println(Othersp);
String Reqdt = request.getParameter("dor");
out.println(Reqdt);
String Munitcode = request.getParameter("mcode");
out.println(Munitcode);
String Packqty = request.getParameter("packqty");
out.println(Packqty);
String Packuom = request.getParameter("pack");
out.println(Packuom);
String Remark2 = request.getParameter("remark2");
out.println(Remark2);
String BC = request.getParameter("bcc");
out.println(BC);
String CC = request.getParameter("ccc");
out.println(CC);
try{
st=connection.createStatement();
connection.setAutoCommit(false);
String sql="INSERT INTO PTXNINDHDR(COCODE,DEPTCODE,EMPCODE,APPROVEDT1,APPROVEDT2,INDDT,ENTRYNO,REFNO,REMARKS,DIVCODE,USERCODE,WHCODE,ITEMGROUPCODE,SUPTYPECODE,DELCODE,UNITCODE,TODIVCODE,ITEMCLASS)VALUES('"+Cocode+"','"+Deptcode+"','"+Empcode+"','"+ApprovedT1+"','"+ApprovedT2+"','"+Indentdate+"',"+Entryno+",'"+Refno+"','"+Othersp+"','"+Divcode+"','"+Usercode+"','"+Whcode+"','"+Itemgroupcode+"','"+Supplytypecode+"','"+Delcode+"','"+unitcode+"','"+Todivcode+"','"+Itemclass+"')";
out.println(sql);
st.addBatch(sql);
for(int i=0;i<serials.size();i++){
out.println("Inside the Statement");
String query3="test query for u";
out.println(query3);
String queryx="Insert into PTXNINDDTL(APXRATE,ENTRYNO,BRKNO,INDQTY,ITEMCODE,OTHERSPFCS,MUNITCODE,PACKQTY,PACKUOM,REMARKS,DIMSUBGRPCODE,DIMCODE,REQDT)VALUES("+arate.get(i)+","+entryno+","+srname.get(i)+","+iqnty.get(i)+","+itcode.get(i)+",'"+Othersp+"','"+mucode.get(i)+"',"+pqnty.get(i)+",'"+puom1.get(i)+"','"+remarkss.get(i)+"','"+bcs.get(i)+"','"+ccs.get(i)+"','"+rdate.get(i)+"')";
out.println(queryx);
st.addBatch(queryx);
int[] result=st.executeBatch();
connection.commit();
for(int k=0;k<result.length;k++)
out.println("rows updated by "+(k+1)+"insert sta:"+result[k]+"");
catch(BatchUpdateException bue)
out.println("error1;"+bue+"");
catch(SQLException sql)
out.println("error2;"+sql+"");
catch(Exception l)
out.println("error3;"+l+"");
</html>
Now I looking for to retrieve this footer section data available in multiple rows from footer table and present it in jsp page .
I am finding difficulties in how to show this multiple row data for dynamic no of rows .i.e. variable no. of rows.
I have able to show the data in Header portions of page in this ways
here i am adding the part of code which shows the data from header part of table i.e from Header table
<html>
<h2 align="center"><b>Indent Preparation</b></h2>
<div align="left">
<table width="849" border="0" cellspacing="3" cellpadding="3" align="center">
<tr>
<td ><div align="left"><b>Indent No.</b></div></td>
<td ><label>
<input name="indentno" type="text" id="indentno" size="15" value="" /><input type="hidden" name="no" id="no">
</label></td>
<td ><div align="center"><strong>Indent Date</strong></div></td>
<td ><label>
<div align="center">
<input name="dateindent" type="text" id="dateindent"value="<%=date1%>"/><input type="hidden" name="no" id="no">
</div>
</label></td>
<td> </td>
<td><div align="right"><strong>Entry No.</strong></div></td>
<%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
<td><input type="text" value="<%=hdrcode.get(3)%>" size="10"></td>
<%}else{%>
<td><input type="text" name="entryno" id="entryno" value="<%=entryNo%>"/></td>
<%}%>
<div align="right"></div>
</tr>
<tr>
<td><b>Division</b></td>
<%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
<td><input type="text" value="<%=hdrdetails.get(9)%>" size="20"</td>
<td><input type="hidden" name="div1" id="div1" value='<%=hdrcode.get(10)%>'></td>
<%}else{%>
<td><input type="text" name="div" id="div" /></td>
<td><input type="hidden" name="div1" id="div1" /> </td>
<%}%>
<td> </td>
<td> </td>
<td><div align="right"><strong>Unit</strong></div></td>
<%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
<td><input type="text" value="<%=hdrdetails.get(14)%>" size="20"</td>
<td><input type="hidden" name="uni" id="uni" value='<%=hdrcode.get(12)%>'></td>
<%}else{%>
<td><input type="text" name="unit" id="unit" /></td>
<td><input type="hidden" name="uni" id="uni" /> </td>
<%}%>
</tr>
<tr>
</html>
Any suggestion on any above works is highly appreciated.
Thanks and regards
harshalToo much code. It's also not well intented nor formatted. I don't see a question either or it got lost in that heap of unformatted code.
I will only answer the question in the thread's subject:
How to retrieve multiple data from table and represent it in jsp pageTo retrieve, make use of HttpServletRequest#getParameterValues() and/or #getParameter().
To display, make use of JSTL's c:forEach. -
Forwarding JSP page through requestdispatcher problem in submiting form
Hello everyone,
I am very much new to servlet.
My problem is somewhat this....
when i am forwarding one JSP page by requestdispather , there is no problem.But after that when i am trying to submit one html form written inside the jsp page , the request is not submiting the jsp page rather it resides in the servlet.
The code in servlet is
RequestDispatcher rd =getServletContext().getRequestDispatcher("/applyConfirm.jsp");
rd.forward(request,response);
Now in (applyConfirm.jsp )jsp page one button is there , so when i will click that button the page has to be submitted.But its not submitting rather the request resides in the servlet.
Dose someone will have any idea.
Thanks in advanceFirst check what sort of button you are using. It should be of "submit" type.
Check the URL to witch URL it is submitting i.e. Action property in <FORM> tag.
Make sure for the URLs in the client i.e HTML ex: href, action, and so on use the thumb rule of prefixing "<%=request.getContextPath()%>/" in your JSP or in servlet add it in the java code.
This should solve the relative URL reference problem.
Hope this helps.
Cheers.
Maybe you are looking for
-
How can I count the number of unique cells?
I have a column in my spreadsheet that looks like this: Date Items 3/25 Item A 3/27 Item A 3/29 Item A 3/25 Item A 4/25 Item B 6/1 Item B 7/13 Item B 8/9 Item B 3/5 Item C 1/2 Item C 5/15 Item D 3/25 Item D What I want is something that will list all
-
Just gave my old ipad to Mother N Law. How do I get her up to speed? I heard there are some classes she can take. How do I make a reservation?
-
Update decimal places in sales and use tax percentage rate [FTXP]
i need to update the decimal places in the tax percentage rate. i've gone through all of the tax configuration in the img several times and it is not there. have searched the internet for an answer to this, and am not finding it. need to update fro
-
Hi experts, I´m trying to use multiple selection but after choosing all them the screen appears empty Any clue?
-
Photoshop automate photomerge unable to open files
I am trying to use photoshop's automate photomerge function, but when I hit ok for the automatic photomerge, photoshop tells me it is unable to open file. I have tried opening the files separately and saving them as a different file type, no success.