在JSP页面中使用Spring Bean的教程 [英] Tutorial for using spring beans in jsp pages

查看:202
本文介绍了在JSP页面中使用Spring Bean的教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(我不熟悉与HTML传递相关的技术,例如JSP ...但是我知道基本概念...)

(I am not familar with technologies related to HTML delivery, like JSP... But I know basic concepts...)

在我的应用程序中,我将Spring Beans和Spring Security与Blaze DS一起使用,以通过AMF协议与Flex应用程序进行通信.一切正常.

In my application I use Spring Beans and Spring Security together with Blaze DS to communicate with Flex applications over AMF protocol. Everything works just fine.

现在,我有一项任务要通过HTTP/HTML提供一些服务,例如.应该是某种为用户生成HTML的servlet或JSP页面.为了不重现所有业务和数据访问逻辑,我想利用现有的Spring Bean(我喜欢Spring).因此,基本上我想为我的Spring Beans创建HTML视图.

Now I have a task to deliver some services via HTTP/HTML eg. it should be some sort of servlets or JSP pages that generates HTML for users. To not reproduce all business and data access logic I want to utilize my existing Spring Beans (I love Spring.). So, basically I want to create HTML view for my Spring Beans.

我的问题:什么是最好的方法?我应该使用哪些技术?大师们会建议些什么?

My question: What would be the best way to do it? Which technologies I should use? What guru-guys will suggest?

最好的技巧是指向小型教程的链接,该教程将解释如何访问JSP页面的Spring Bean.我试着自欺欺人,但是信息太多了,我对不同的版本有些困惑-所以我真的不知道我应该从哪里开始...

The best tip would be a link to small tutorial that will explain how to access Spring Beans for JSP pages. I tried to goole myself but there are too much information and I am a little bit nixed up with different version - so I really have no clue what should I start with...

推荐答案

您应该查看此处找到简介.

You should look into Spring MVC. You can find an introduction here.

这个问题的公认答案也讨论了如何做您想要的具体内容(即从JSP页面访问Spring Bean).

Also the accepted answer to this question discusses how to do what you want specifically (i.e. access your Spring Beans from JSP pages).

这篇关于在JSP页面中使用Spring Bean的教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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