国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
Java的URL映射類庫 jurlmap

Java的URL映射類庫 jurlmap

您的評(píng)價(jià):
     


jurlmap是一個(gè)Java類庫,能夠讓你的Web應(yīng)用程序擁有簡(jiǎn)潔,類似于REST的URL。

主要特點(diǎn):

1. URL參數(shù)能夠直接綁定至Bean的屬性或方法的參數(shù)。
2. 配置直接采用Java編碼或注釋,不需要額外配置文件。
3. URL映射匹配規(guī)則簡(jiǎn)單。
4. 能夠很方便集成到Web應(yīng)用程序中,只要將jurlmap提供的過濾器 Filter加到項(xiàng)目就可以。

URL 配置方法:

01protected void configure() {
02    // In this pattern $ means a string, which when matched 
03    // is bound to parameter `Username` and control forwarded to profile.jsp
04    // Parameter will be accessible via request.getParameter()
05    forward("/profile.jsp", "/profile/$Username");
06  
07    // Here % means integer pattern and * means until end of the pattern.
08    // Binds integers to parameter ArticleId and forwards to article.jsp
09    forward("/article.jsp", "/article/%ArticleId/*");
10  
11    // When matched will send a redirect back to browser and parameters
12    // are appended to query string so in this case the target will
13    // be `/servlets/profileservlet?Username=...`
14    redirect("/servlets/profileservlet", "/member/$Username");
15  
16  
17    // On match creates an instanc eof LoginPage and calls it's service method
18    // LoginPage class implements com.pagegoblin.jurlmap.Page.
19    // If it is annotated with a @Deploy(url) annotation
20    // the we don't need to pass a url to the deploy method.
21    // In this case parameters are bound to bean properties or fields 
22    // of the newly created LoginPage instance.
23    deploy(LoginPage.class);
24}

官方網(wǎng)站:http://www.open-open.com/lib/view/home/1323612203561

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
jstl(jsp標(biāo)準(zhǔn)標(biāo)簽庫)介紹
java web開發(fā)過程中的編碼問題完全解決方案
CMS項(xiàng)目總結(jié):4、利用pager-taglib實(shí)現(xiàn)分頁處理(終極武器)
Selenium PO模式實(shí)現(xiàn)
MyEclipse開發(fā)SSH(Struts+Spring+Hibernate)入門
jsp+servlet實(shí)現(xiàn)注冊(cè)登錄,不用數(shù)據(jù)庫
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服