好的,我正在使用Spring Webflow,目前我有一个包含两个jsp页面(视图)的流,第二个页面向第三方系统(payments)提交一个表单。
在我的pay-flow.xml中,我有这样的状态;
<!-- Initial state, the jsp(view) gathers the number of items to purchase -->
<view-state id="buy" view="credit/buy" model="credit">
<transition on="subm
我在其他流行的浏览器中没有这个问题。在JSP页面(让我们称之为Page1.jsp)中,我单击一个表单,它转到另一个页面。当我单击Opera的Back按钮时,它会返回到Page1.jsp,但是没有重新启动JavaScript或JSP代码。例如,
<!-- Inside header tag -->
<script language="JavaScript>
alert("Does this work in Opera?");
</script>
一个简单的警报语句不会触发。服务器端代码也是如此。然而,其他流行的桌面浏览器没有问题。
在Action类中
public class Supplier extends ActionSupport{
private ArrayList supplierList;
//contains list of supplisers with attribute(id,name,address,mailid)
//getter and setter of supplierList
}
这是我的表单(Jsp格式)
<form action="test" method="post">
<in
我正在尝试提交表单,而不是单击提交按钮。我想在没有javascript的情况下这样做。我有没有办法做到这一点?我想使用脚本从servlet中获取jsp中的数据,但是如何实现呢?
名字: Tom
姓氏: Jerry
index.jsp
<form action="NewServlet" method="post">
<input type="text" name="firstname"/>// while entering Tom here Jerry
should appear automatic