如何在另一页上传递对象? [英] Way to pass object on another page ?

查看:114
本文介绍了如何在另一页上传递对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要在整个应用程序中保留用户输入的少量值.我可以将此信息保存在对象中,然后将其保留在会话中

有什么办法可以创建一个具有所有req值的对象,并可以在不传递会话的情况下访问任何页面上的对象?

谢谢,
Divya

Hi,

I need to persist few values entered by the user throught out the application. I can save this information in an object ans keep it in session

Is there any way that I can create an object having all req values and access the object on any page without passing in session ?

Thanks,
Divya

推荐答案

您可以使用交叉页面.跨页的某些链接=>

点击

单击
You can use cross page. Some link for cross page =>

Click

Click


,您可以创建一个全局您可以在其中创建适当的变量和方法的类,该类可用来为全局访问保留值.现在进入表单,您在其中输入信息并将信息传递给全局类的变量.
you can create a global class in which you can create appropriate variable and Method, which is resposible to keep value for globally access. and now come to the form where you enter the information and pass information to the variable of global class.


这篇关于如何在另一页上传递对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆