Hello ALL
I have this select drop down
<select name="title" class="form" onChange="javascript:addField();">
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Others">Others</option>
</select><br>
This is somewhere in my JSP page. On Change of title as Other, I...
Hello ALL,
I have to come up with a pattern to match with fulfilling my following criteria for a password field
1. It must have to be at least 8 characters long
2. It must have atleast one number (digit)
3. It must have one capital letter (character)
please advise how should i form a pattern...
I have a very typical and conceptual problem. I want a precise answer and I request everyone to
provide me the answer to the best of their understanding. The problem seems simple but it's not
working.
Question Summary -
I am trying to set headers from my Servlet and forwarding to the JSP...
Hello ALL
I need to create a hashMap or some kinda data structure of name=value pair after reading these contents from a file
abcd@email.com|1|2|3|4|n|y
efgh@email.com|1|2|3|4|n|y
ijkl@email.com|1|2|3|4|n|y
mnop@email.com|1|2|3|4|n|y
How can i do this in JAVA
Please advise
Thanks a lot
Hello ALL
I am using a preparedStatement and is passing values dynamically.
Now I want to "insert" values in the table based on condition - Insert only if a particular
value is not present else do not perform insert
below is query -
insert into CUSTOMER (EMAIL_ADDRESS,ZIPCODE) values...
How can i get the value from <bean:write> tag.
I have this bean write tag that gives me the value. I can see that coming up on the JSP page
I need to use this value in other parts of JSP page using something like
<% =country %>/imgs/help.jpg
My bean tag is something like
<bean:write...
Hello ALL,
I have some values in vector say {501, 502}.
Now I have an array of Integer that gets SOME, ALL or NONE values that are in the above vector.
My problem is to check if the values coming from this dynamic array exits in the vector.
Based on presence and absence I have to do some...
Hello ALL {STRUTS GURUS}
I have this struts driven JSP page that has a checkbox - Named as "Unsubscribe" having value of on/off depending on property = checkbox. When you check the box I call a javascript function go(). I need to implement this function "or" if you have a better Idea you can...
Hello ALL {STRUTS GURUS}
I have this struts driven JSP page that has a checkbox - Named as "Unsubscribe" having value of on/off depending on property = checkbox. When you check the box I call a javascript function go(). I need to implement this function "or" if you have a better Idea you can...
Hello All
This issue is just taking too much of my time. Any suggestion / code snippet will be a lot help
Problem: I need to populate my jsp page with values retrieved after a database look up. I am using STRUTS framework.
The DAO retrieves the values by doing something like "select * from...
I have two tables as shown below -
Table 1 - emp_rec table
Empl_ID Empl_Name On_Vacation
200 Jhon Y
300 Sean Y
400 Bill N
Table 2 - emp_table
Empl_ID Empl_Name
200 Jhon
300 Sean
I want to select records which are not in Table 2 BUT in Table 1...
Hello
I have a link to Front Controller Servlet from one of JSP page (call it link page). However, there is an intermediate page that sets some parameters before forwarding to Front controller, which it does ON-LOAD
Hence whenever I hit Back button on the browser from Front Controller servlet...
Folks,
I am using prepared statement on one of my java calls to the database.
Here's is a sample of the same
String sql = "Select <table_nam>.<column_name> from <schema_name>.<table_name>
where <condition>"
and <column_name_1> = ? " +
" and...
Hello,
I have a java program and i am passing parameters
For Example -
paramName = "ABC & DEF";
when I am getting the values from the parameter. It is shown as
"ABC"
Please advise, I tried to encode it using URLEncoder.encode("string") BUT it did not work
Thanks,
Hello,
I have string variables and i want to test the containment of one string in other
For Example
String a = "microsoft software";
String b = "abcd microsoft software efgh";
How can i test that string b contains string a ? String b has string a but it can be anywhere with in string b...
Hello All,
I have a Java code which fetches SQL to populate the drop down box.
SQL is returning result in this order -
year_code year_description
5 2005
4 2004
3 2003
2 2002
The drop down build from the java program is showing the same order
However, I want to show the order like
2004...
Hello ALL,
I have a flat file which contains one date field.
I need to update an HTML file with this date field by reading the file.
However, my file will be updated by a unix script every day.
I need code snippet to add in HTML file which can reflect the updated date every day.
One...
Hello ALL,
I thought of asking 2 more questions.
The questions are related to the architectural issues
1. I am calling a Service excute() method, which in turn calls another method viewCart().
In my viewCart() method, I am using following lines of code. This is my client to EJB.
public...
Hi Javascript Gurus,
I have following problem and need help -
In my html page I have –
1. A Textbox
2. A Radio Button
I need to check if the radio button is checked, the textbox should mandatory have any interger value in it.
I think it can be done using Javascript, please help with the...
My database table is returning years as
1999, 2000, 2001, 2002 from the year_description field. I want to assign a unique char datatype (year_code) to this.
For Example -
1, 1999
2, 2000
3, 2001
I can not modifying/add anything in the database. How can I do this in SQL or java
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.