Deprecated: Creation of dynamic property WPtouchProFour::$settings_object is deprecated in /home2/learnera/public_html/tech/wp-content/plugins/wptouch/core/class-wptouch-pro.php on line 82

Deprecated: Automatic conversion of false to array is deprecated in /home2/learnera/public_html/tech/wp-content/plugins/wptouch/core/admin-load.php on line 70

Deprecated: Creation of dynamic property Advanced_Editor_Tools::$toolbar_classic_block is deprecated in /home2/learnera/public_html/tech/wp-content/plugins/tinymce-advanced/tinymce-advanced.php on line 347

Deprecated: Creation of dynamic property Advanced_Editor_Tools::$toolbar_block is deprecated in /home2/learnera/public_html/tech/wp-content/plugins/tinymce-advanced/tinymce-advanced.php on line 349

Deprecated: Creation of dynamic property Advanced_Editor_Tools::$toolbar_block_side is deprecated in /home2/learnera/public_html/tech/wp-content/plugins/tinymce-advanced/tinymce-advanced.php on line 350

Deprecated: Creation of dynamic property Advanced_Editor_Tools::$panels_block is deprecated in /home2/learnera/public_html/tech/wp-content/plugins/tinymce-advanced/tinymce-advanced.php on line 351

Deprecated: Creation of dynamic property Advanced_Editor_Tools::$used_block_buttons is deprecated in /home2/learnera/public_html/tech/wp-content/plugins/tinymce-advanced/tinymce-advanced.php on line 354

Deprecated: Creation of dynamic property YARPP::$is_custom_template is deprecated in /home2/learnera/public_html/tech/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php on line 56

Deprecated: Creation of dynamic property YARPP::$db_options is deprecated in /home2/learnera/public_html/tech/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php on line 69

Warning: Cannot modify header information - headers already sent by (output started at /home2/learnera/public_html/tech/wp-content/plugins/wptouch/core/class-wptouch-pro.php:82) in /home2/learnera/public_html/tech/wp-includes/feed-rss2-comments.php on line 8
Comments on: Dynamic Drop Down List with Struts 2 and AJAX https://tech.learnerandtutor.com/dynamic-drop-down-list-with-struts-2-and-ajax/ A Developer Wed, 26 Apr 2017 06:29:31 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Rajesh https://tech.learnerandtutor.com/dynamic-drop-down-list-with-struts-2-and-ajax/#comment-14731 Wed, 26 Apr 2017 06:29:31 +0000 http://tech.learnerandtutor.com/?p=252#comment-14731 In reply to abhi.

what is the war file name you have placed?

]]>
By: abhi https://tech.learnerandtutor.com/dynamic-drop-down-list-with-struts-2-and-ajax/#comment-14730 Wed, 26 Apr 2017 06:26:20 +0000 http://tech.learnerandtutor.com/?p=252#comment-14730 I have placed that war file in Apache webapps, but I am getting 404 error.

]]>
By: Sarva https://tech.learnerandtutor.com/dynamic-drop-down-list-with-struts-2-and-ajax/#comment-12957 Mon, 27 Feb 2017 10:36:45 +0000 http://tech.learnerandtutor.com/?p=252#comment-12957 Hey Rajesh,
Pretty good example. Would you mind helping me with the same example with struts 2.5.5 version which doesnt seem work for me. The drop downs are not being populated without any error thrown on console after required versions of the jars added.

]]>
By: Rajesh https://tech.learnerandtutor.com/dynamic-drop-down-list-with-struts-2-and-ajax/#comment-9824 Wed, 27 May 2015 04:54:00 +0000 http://tech.learnerandtutor.com/?p=252#comment-9824 In reply to Sergio Arce.

you can simply return consulta. It will be converted to json automatically.

]]>
By: Sergio Arce https://tech.learnerandtutor.com/dynamic-drop-down-list-with-struts-2-and-ajax/#comment-9753 Thu, 21 May 2015 07:09:12 +0000 http://tech.learnerandtutor.com/?p=252#comment-9753 hello thanks for your nice example but i have a question?

Im using ArrayList so i call my list in my dao like this:

public List consultingSection() {

conexionMySql c = new conexionMySql();
beanSection b = new beanSection();
List consulta = new ArrayList();
try {
Connection con = c.getConnection();
// PreparedStatement pstm = con.prepareStatement(“CALL ObtenerAsignaturasReprobadas (?);”);
CallableStatement pro = con.prepareCall(“call section();”);
ResultSet rs = pro.executeQuery();
while (rs.next()) {
b = new beanSection();
b.setIdSection(rs.getInt(1));
b.setLetter(rs.getString(2));
//System.out.println(rs.getInt(1) + “-” + rs.getString(2));

consulta.add(b);
}
con.close();
pro.close();
rs.close();
} catch (SQLException ex) {
System.out.println(ex);
}
return consulta;
}

and in my action i call my method like this

daoSection ds = new daoSection();
sectionL=ds.consultingSection();
return success …

how can i do it to implement my array list into your example.
thanks for your support i will wait for your answer.

]]>