如何在另一个jsp div标签中显示另一个jsp

时间:2017-09-20 12:02:14

标签: javascript jquery ajax

如何在div中调用另一个jsp。 实际上execpt我的Div所有剩余数据保持不变。所以我在不同的条件下给不同的返回不同的jsp(用于不同的用户界面)。 并且子jsp有一些我需要从服务器获取的填充数据。

Mens firslty main.jsp应该在侧面潜水时加载child.jsp加载并从服务器获取数据

%u %h

2 个答案:

答案 0 :(得分:0)

INFO - 2017-09-20 12:56:05 --> Config Class Initialized
INFO - 2017-09-20 12:56:05 --> Hooks Class Initialized
DEBUG - 2017-09-20 12:56:05 --> UTF-8 Support Enabled
INFO - 2017-09-20 12:56:05 --> Utf8 Class Initialized
INFO - 2017-09-20 12:56:05 --> URI Class Initialized
INFO - 2017-09-20 12:56:05 --> Router Class Initialized
INFO - 2017-09-20 12:56:05 --> Output Class Initialized
INFO - 2017-09-20 12:56:06 --> Security Class Initialized
DEBUG - 2017-09-20 12:56:06 --> Global POST, GET and COOKIE data sanitized
INFO - 2017-09-20 12:56:06 --> Input Class Initialized
INFO - 2017-09-20 12:56:06 --> Language Class Initialized
INFO - 2017-09-20 12:56:06 --> Loader Class Initialized
INFO - 2017-09-20 12:56:06 --> Helper loaded: url_helper
INFO - 2017-09-20 12:56:06 --> Controller Class Initialized
INFO - 2017-09-20 12:56:06 --> Database Driver Class Initialized
INFO - 2017-09-20 12:56:06 --> Helper loaded: string_helper
INFO - 2017-09-20 12:56:06 --> Helper loaded: form_helper
INFO - 2017-09-20 12:56:06 --> Helper loaded: language_helper
DEBUG - 2017-09-20 12:56:06 --> Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.
INFO - 2017-09-20 12:56:06 --> Session: Class initialized using 'files' driver.
INFO - 2017-09-20 12:56:16 --> Language file loaded: language/french/messages_lang.php
INFO - 2017-09-20 12:56:16 --> File loaded: C:\wamp\www\SESAME\application\views\template/header.php
INFO - 2017-09-20 12:56:16 --> File loaded: C:\wamp\www\SESAME\application\views\connect_user.php
INFO - 2017-09-20 12:56:16 --> File loaded: C:\wamp\www\SESAME\application\views\template/footer.php
INFO - 2017-09-20 12:56:16 --> Final output sent to browser
DEBUG - 2017-09-20 12:56:16 --> Total execution time: 10.8679

答案 1 :(得分:0)

您可以使用jsp:include scriptlet

org/apache/lucene/search/suggest/analyzing/AnalyzingInfixSuggester.java:364
TokenFilter filter = new EdgeNGramTokenFilter(components.getTokenStream(), 1, minPrefixChars);

或者可以使用以下语法

包含文件
  <jsp:include page="file.jsp" />

以下是教程中可能有用的链接

http://docs.oracle.com/javaee/5/tutorial/doc/bnajb.html