Jurlmap is participating 2021 OSC China Open Source Project Selection , please vote for it!
Jurlmap in 2021 OSC China Open Source Project Selection {{projectVoteCount} has been obtained in, please vote for it!
2021 OSC China Open Source Project Selection It is in hot progress. Come and vote for your favorite open source project!
2021 OSC China Open Source Project Selection>>> Midfield Review
Jurlmap won the 2021 OSC China Open Source Project Selection "The Best Popularity Project" !
Authorization Agreement LGPL
development language Java
operating system Cross platform
Software type Open source software
Open source organizations nothing
region Unknown
deliverer sweet potato
intended for unknown
Recording time 2010-08-04

Software Introduction

Jurlmap is a Java class library that enables your Web applications to have concise, REST like URLs.

Main features:

1. URL parameters can be directly bound to bean properties or method parameters.
2. The configuration directly adopts Java coding or annotation, and no additional configuration file is required.
3. The URL mapping matching rules are simple.
4. It can be easily integrated into Web applications by adding the filter provided by jurlmap to the project.

URL configuration method:

 protected  void configure ()  {
   
// In this pattern $ means a string, which when matched
   
// is bound to parameter `Username` and control forwarded to profile.jsp
   
// Parameter will be accessible via request.getParameter()
    forward
( "/profile.jsp" , "/profile/$Username" );

   
// Here % means integer pattern and * means until end of the pattern.
   
// Binds integers to parameter ArticleId and forwards to article.jsp
    forward
( "/article.jsp" , "/article/%ArticleId/*" );

   
// When matched will send a redirect back to browser and parameters
   
// are appended to query string so in this case the target will
   
// be `/servlets/profileservlet? Username=...`
    redirect
( "/servlets/profileservlet" , "/member/$Username" );


   
// On match creates an instanc eof LoginPage and calls it's service method
   
// LoginPage class implements com.pagegoblin.jurlmap. Page.
   
// If it is annotated with a @Deploy(url) annotation
   
// the we don't need to pass a url to the deploy method.
   
// In this case parameters are bound to bean properties or fields
   
// of the newly created LoginPage instance.
    deploy
( LoginPage . class );
}
Expand to read the full text

comment

Click to lead the topic 📣 Post and join the discussion 🔥
No content temporarily
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
No more
No content temporarily
Issued a question and answer
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
No more
No content temporarily
No content temporarily
zero comment
forty-nine Collection
 OSCHINA
Log in to view more high-quality content
 Back to top
Top