Getting option value in jsp: Urgent help will be appreciated
Hello All,
I am working on JSP. I will grade myself as beginner in JSP.
I am trying to solve since last 2 days, I just want to display the value of option tag, and not able to get it.
<table>
<tr>
<td>
<html:select name="ActionForm" property="overage">
<%
int i;
int[] arr1=new int[200];
for (i=0;i<=100;i=i+10)
arr1=i;
%>
<html:option value="/<%=i%>/"><%= arr1%></html:option>
<%}%>
</html:select>
</td>
</tr>
</table>
Please, ignore the syntactical error.
Now in above code I want to know what is being put up as value of option tag. By value I mean , I want see <html:option ]value="/<%=i%>/> . (Data marked in bold)
Your help will be appreciated. I tried couple of things such as getParameter(), get Attribute(), getOverage(). Some of it gave me value as "//", it skips the i variable.
I want to see what is being put up in value for every iteration of loop
Yeah I know. But thnx for the response.
I also got that error solved. you know what it was because of those bckslashes. i wrote it,
<html:option value="<%=i%>"><%=arr%> instead of
<html:option value="/<%=i%>/"><%=arr[i]%>
and that worked perfectly. I wish I could have known this before. It would have saved me lot of time.
Similar Messages
-
Hi, any help will be appreciated. i use AOL for my email where I have about 300 addresses shown but when I use the 'mail' function on my Ipad only a small percentage of those addresses appear..why is that and how can I get my full address book loaded?
Hi, any help will be appreciated. i use AOL for my email where I have about 300 addresses shown but when I use the 'mail' function on my Ipad only a small percentage of those addresses appear..why is that and how can I get my full address book loaded?
-
Lenovo U410 Urgent Help Will Not Turn On
Hello,
Firstly i would like to thank anyone reading this post and taking the time out of their day to try and help my problem.
I have a Lenovo U410 Ultrabook i've had my Laptop for around 1-2 years now and i have kept it in a very good condition there have been no issues with it. About 1 Week ago i was using my laptop left my room for about 30 minutes to have a shower and upon returning i saw that my Laptop was not charging i unplugged the charger from the laptop and place it back in nothing happened. so i turned off my laptop and unplugged the charger from the wall socket. since then i have not been able to turn my laptop back on i have tried but the led's flash twice when i tried to turn it back on. i have changed the fuse in my charger about 3 times with new fuses all 3AMP required and there is no difference at first i thought it was a problem with the charger but now im thinking otherwise and i'm quite worried. After searching around the internet for a fix i have pressed the power button for 30 seconds and the leds blinked 3 times and after trying various methods to turn it back on it has not been succesful i have even uplugged the battery and plugged it back in after removing the back cover. i have no warranty left as it expired and i was not able to renew it. if you have had any experience with similiar problems or any suggestions i would be very interested to hear what you think the next step for me would be. i dont have much money to invest into this laptop but i am prepared to spend some money if need be.
Thank you for reading my extremely long post,
Your's faithfully
Lenovo U410 Urgent Help Will Not Turn On
Akash DesaiDear Evanacoleman
Welcome in Lenovo Community
Kindly contact the below support to check your machine at one of our service centers so that the technical team there can decide if this is a miss use case or not
Let me know
Thanks
Alaa
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
Follow @LenovoForums on Twitter! -
Hi I keep getting error 4005 when I attemp to restore my Ipad. Had to restore back to factory settings as my daughter changed password, forgot and I did not back up my ipad to icloud. Help will be appreciated. Kevin
http://support.apple.com/kb/TS5314
https://discussions.apple.com/thread/5381335
https://discussions.apple.com/message/23609307#23609307
more
https://www.google.dk/search?q=apple+restore+error+4005&oq=apple+restore+error+4 005&aqs=chrome..69i57j69i60.7969j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8 -
I have iphone 4 . I don't know how that happenned that the normal color on screen and all icons changed ( for example , normally green color phone icon became purple color ,) and photo pictures turned negative appearance ( ghost-like ) . Any idea how to fix this mishap ? Your help will be appreciated.
Hi kshieh
You can try two possible steps:-
1]Triple click the home button. You should get an accessibility menu.deselect the negative/black and white option.
2]Go to settings->General->accessibility->and deselect invert colours.
That should fix it
Rithwik -
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
-
I have a 5s phone. How do I download ALL of the photos from my phone? When I downloaded all of them, just the photos on Camera Roll were downloaded. The photos in the folders were still there. Any help will be appreciated. Rosemary
tonefox
What about photos downloaded from emails?
Rosemary -
I am unable to view flash videos from all websites except youtube after updating to Firefox 4. All help will be appreciated. Thanks in advance :)
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
* [[Troubleshooting extensions and themes]]
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
* Help > Restart with Add-ons Disabled
* Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows) -
I am using Mac, I have downloaded the Creative Cloud but when it comes to downloading an App, in the Apps tab a "Download Error" comes up, saying I should contact customer support. Any help will be appreciated.
sign out and then back in to your cc desktop app.
if that fails to resolve the problem, Sign in, activation, or connection errors | CS5.5 and later -
I have an ipad3. I brought brought a wireless AV Box to view videos on the TV. I have tried this on both hdmi TV an can only get sound no picture. Any help would be appreciated. I am new to iPad so not too tech please.
What iOS in on your iPod? The Users Guide says:
Viewing Photos, Slideshows, and Videos on a TV
You can use the Photos app to view photos, slideshows, and videos on your TV with
any of the following:
Apple Component AV Cable
Â
Apple Composite AV Cable
Â
Apple Digital AV Adapter and an HDMI cable (iPod touch 4th generation)
Â
Apple VGA Adapter and a VGA cable
Â
The Digital AV Adapter supports high-definition video up to 720p with audio.
The Guide also says the Video app can use TV out. -
Was able to bluetooth one time to play scrabble on our two iPad 1's, but have not been able to do so again. Both are searchable, but are not able to find each other. Any help will be appreciated. Thanks.
Both need to be in the lobby, and searchable at the same time. Also, if either has been paired with a keyboard or headphone since you played, go into settings, and make sure those devices are unpaired, and not interfering with the process.
-
How to process option value to database, plz help me out
hi guys,
can any one help me out in passing the option value to database.
i have a 4 options, when any option selected, that should be processed to the database
<form name="createfrm">
<select name="select">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
plz., can any one help me out by giving me the javascript codehere's the part of the code:
In th javascript this is the one that populates the array gender[].
gender1[] array is where i put the values from the database so it is part of the jsp code. You will store what you fetch in gender1[] array.
Then you store it in another array in javascript using the follwing codes:
var gender = new Array(
<%
out.println("\""+gender1[0]+"\"");
for(int ip = 1; ip < 3; ip++) {out.println(", \"" + gender1[ip] + "\"");}
%>
Now for populating the values of the dropdown list You will use the following codes:
function fillGenCivil(){
for (var jj=0; jj<3; jj++){
document.registration1.gender.length++;
document.registration1.gender.options[counta].value = gender[counta];
document.registration1.gender.options[counta].text = gender[counta];
counta++;
the in the html tags: the form code will be like this
<select name="gender" class="txtMed" > </select>
These codes will automatically populate data in your dropdown list -
Get dynamic values in Jsp fom Applet
Hi,
Mine is not a unique question, its been asked many times on the same forum but still I havent got any satisfactory answer so I am putting this again.
I have one applet, it is been loaded from jsp. Applet uses double buffering and its values are changing constantly.
Now my question arises here, In my jsp i have one button on the click of that button I am calling some other jsp passing some of jsp values in URL. I also want to pass one of the value of applet to jsp so it can pass to next jsp or to do something that next jsp automatically gets the new value.
I thought for Applet-servlet communication but my concerns are,as my applet is being refreshed continuously(around every 1 sec) and the value which i have to pass is changing every second and I dont know when user will click on the button of jsp so to pass that value of applet i have to do applet-servlet communication every second and that does not suit me as it consumes lot of time.
Can you suggest me any other solution so I can send value through jsp whenever button is clicked.
Thanks
Taral ShahHI Senthil Babu
Thanks for your reply.
But applet is very important for my application as i am showing some graphical representation on it. So I have to use applet. Now you told that i have to make temporary files on client's macvhine. You mean to say each time I have to store that value on client's pc through File I/O.
Is that? but that is also problematic 'cause it consimes much time and my application deals in milli seconds.
Pl. guide me considering that time is much important for my application so solution should not consume much time.
Thanks again,
Taral Shah -
Your urgent help will be very much appreciated
I have a problem whenever I connect my database and need your urgent help. the sample source code is below
import java.sql.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class Table extends JFrame
private Connection con;
private JTable table;
public Table()
String url = "jdbc:odbc:Books";
String username="";
String password="";
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection(url, username, password);
catch(ClassNotFoundException cnfex)
System.err.println("Failed to load JDBC/ODBC driver.");
cnfex.printStackTrace();
System.exit(1);
catch(SQLException sqlex)
System.err.println("Failed to connect");
sqlex.printStackTrace();
getTable();
setSize(45,150);
show();
public void getTable()
Statement state;
ResultSet result;
try{
String query="Select * from Author";
state=con.createStatement();
result=state.executeQuery(query);
displayResult(result);
state.close();
catch(SQLException sqlex)
sqlex.printStackTrace();
public void displayResult(ResultSet rs)throws SQLException
boolean moreRecord=rs.next();
if (!moreRecord)
JOptionPane.showMessageDialog(this, "ResultSet contained no record");
setTitle("No records to display");
return;
setTitle("Author table from Books");
Vector columnHeads=new Vector();
Vector rows=new Vector();
try{
ResultSetMetaData rsmd=rs.getMetaData();
for (int i=1; i<=rsmd.getColumnCount(); i++)
columnHeads.addElement(rsmd.getColumnName(i));
do{
rows.addElement(getNextRow(rs, rsmd));
}while(rs.next());
table=new JTable(rows, columnHeads);
JScrollPane scroller=new JScrollPane(table);
getContentPane().add(scroller,BorderLayout.CENTER);
validate();
catch(SQLException sqlex)
sqlex.printStackTrace();
public Vector getNextRow(ResultSet rs, ResultSetMetaData rsmd)
throws SQLException
Vector currentRow=new Vector();
for (int i=1; i<=rsmd.getColumnCount(); i++)
switch (rsmd.getColumnType(i))
case Types.VARCHAR:
currentRow.addElement(rs.getString(i));
break;
case Types.INTEGER:
currentRow.addElement(new Long(rs.getLong(i)));
break;
default:
System.out.println("Type was: "+rsmd.getColumnTypeName(i));
return currentRow;
public void shutDown()
try{
con.close();
catch(SQLException sqlex)
System.err.println("Unable to disconnect");
sqlex.printStackTrace();
public static void main(String args[])
final Table app=new Table();
app.addWindowListener( new WindowAdapter()
public void windowClosing(WindowEvent e)
app.shutDown();
System.exit(0);Thank you for your help. When I compile it, it is fine, the problem happens when run it.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6d448d54
Function name=(N/A)
Library=C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\hotspot\jvm.dll
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.driverConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Table.<init>(Table.java:26)
at Table.main(Table.java:145)
Dynamic libraries:
0x00400000 - 0x00405000 C:\WINNT\system32\java.exe
0x77F80000 - 0x77FFB000 C:\WINNT\System32\ntdll.dll
0x77D90000 - 0x77DED000 C:\WINNT\system32\ADVAPI32.dll
0x77E60000 - 0x77F35000 C:\WINNT\system32\KERNEL32.DLL
0x786F0000 - 0x78761000 C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x60000000 - 0x6003A000 c:\program files\rising\rav\ApiHook.dll
0x05000000 - 0x0502E000 c:\program files\rising\rav\MemMon.dll
0x77DF0000 - 0x77E55000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x75E00000 - 0x75E1A000 C:\WINNT\System32\IMM32.DLL
0x6D420000 - 0x6D4F7000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\hotsp
ot\jvm.dll
0x77530000 - 0x77560000 C:\WINNT\system32\WINMM.dll
0x6D220000 - 0x6D227000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\hpi.d
ll
0x6D3B0000 - 0x6D3BD000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\verif
y.dll
0x6D250000 - 0x6D266000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\java.
dll
0x6D3C0000 - 0x6D3CD000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\zip.d
ll
0x6D020000 - 0x6D12A000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\awt.d
ll
0x777C0000 - 0x777DE000 C:\WINNT\system32\WINSPOOL.DRV
0x75010000 - 0x75020000 C:\WINNT\system32\MPR.DLL
0x77A30000 - 0x77B25000 C:\WINNT\system32\ole32.dll
0x6D1E0000 - 0x6D21B000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\fontm
anager.dll
0x6DD30000 - 0x6DD36000 C:\WINNT\System32\INDICDLL.dll
0x37210000 - 0x3723D000 C:\WINNT\DOWNLO~1\CnsMin.dll
0x77C50000 - 0x77C9A000 C:\WINNT\system32\SHLWAPI.dll
0x777E0000 - 0x777E7000 C:\WINNT\system32\VERSION.dll
0x75950000 - 0x75956000 C:\WINNT\system32\LZ32.DLL
0x6D290000 - 0x6D29A000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\JdbcO
dbc.dll
0x1F7F0000 - 0x1F825000 C:\WINNT\system32\ODBC32.dll
0x76AF0000 - 0x76B2D000 C:\WINNT\system32\comdlg32.dll
0x77B30000 - 0x77BB9000 C:\WINNT\system32\COMCTL32.DLL
0x78F90000 - 0x791D6000 C:\WINNT\system32\SHELL32.DLL
0x1F8E0000 - 0x1F8F6000 C:\WINNT\system32\odbcint.dll
0x77900000 - 0x77923000 C:\WINNT\system32\imagehlp.dll
0x72960000 - 0x7298D000 C:\WINNT\system32\DBGHELP.dll
0x687E0000 - 0x687EB000 C:\WINNT\system32\PSAPI.DLL
Local Time = Tue Feb 25 21:33:38 2003
Elapsed Time = 7
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
# Error ID : 4F530E43505002BD
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Client VM (1.3.1_05-b02 mixed mode)
# An error report file has been saved as hs_err_pid1792.log.
# Please refer to the file for further information.
# -
How to call the form bean value on jsp withthe help of jstl tag
hi
all friends
i am working in struts & i use jstl tag in jsp. i have one problem rise is how to call the form bean value in jsp page by using jstl tag.
i now how to retrive the value through jsp:logic
eg. <logic:empty name="userListForm" property="users">
NO USER FOUND
</logic:empty>
see * userListForm mean formbaen name.
* users means collection object.
so how can i write above e.g in jstlYou use the jstl core:if or core:choose combined with the EL:
<c:if test="${empty users.userListForm}">
NO USERS FOUND
</c:if>I suggest you lookup the jsp expression language (EL) using google, it's very powerful.
Maybe you are looking for
-
How to Restrict the users in oracle applications
Hi, I want to Restrict the users in oracle applications without using database can any one please expalin me how to resttrict the users using middletier Thanks Gita
-
Can I re-download movies in canada that I have purchased??
I downloaded a few movies from Itunes in the past and do not see the movies tab when I click on purchased. Is this feature availabe in Canada? Thanks
-
Hi All, I have uplaoded INLK data into SAP. Now my requirement is to download the same data from SAP (table name : 558B) and give that to user to confirm. Can any buddy tell me how to do this.. I have options like downloa
-
Restroct billing doc is it doesnot generate accounting doc
my situation is: client does not want to allow sap to save billing doc in vf01 if no accounting doc get generated. debajyoti
-
Regarding two Dimension Hierarchy from Single Dimension
Dear Experts, I had to develop drill down reports. We have a CustomerDim which contains columns: Region,Country,State,City,CustomerID,CustomerName Case 1: Some reports should have drill down levels: Region->Country->State->City->CustomerName Case 2: