This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Business logic service | |
| */ | |
| public class MyBusinessService { | |
| private SomeService someService; | |
| public void executeSomeLogic(String dateString) { | |
| Something thing = new Something(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Business logic service | |
| */ | |
| public class MyBusinessService { | |
| private MyBusinessHelperService myBusinessHelperService; | |
| private SomeService someService; | |
| public void executeSomeLogic() { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Business logic service | |
| */ | |
| public class MyBusinessService { | |
| private SomeService someService; | |
| public void executeSomeLogic() { | |
| Something thing = new Something(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| <dependency> | |
| <groupId>org.springframework.mobile</groupId> | |
| <artifactId>spring-mobile-device</artifactId> | |
| <version>1.0.2.RELEASE</version> | |
| <exclusions> | |
| <exclusion> <!-- this uses version 3.1.4.RELEASE of spring-webmvc while we use 3.2.4.RELEASE--> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring-webmvc</artifactId> | |
| </exclusion> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| <mvc:annotation-driven> | |
| <!-- Spring mobile --> | |
| <mvc:argument-resolvers> | |
| <bean class="org.springframework.mobile.device.DeviceWebArgumentResolver" /> | |
| </mvc:argument-resolvers> | |
| </mvc:annotation-driven> | |
| <mvc:interceptors> | |
| <!-- Spring mobile...'currentDevice' added to model and view --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <root> | |
| <randomelement>I'm just chilling here</randomelement> | |
| <randomelement2>me too</randomelement2> | |
| <modified-to-this>1234 add some text</modified-to-this> | |
| <required-one>I am required</required-one> | |
| <required-two /> | |
| </root> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
| <xsl:template match="/MyXML"> | |
| <root> <!-- We change the root --> | |
| <xsl:apply-templates/> <!-- Copy all elements over by default, except the templates that match --> | |
| <!-- Required elements --> | |
| <required-one> | |
| <xsl:value-of select="required-one" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <MyXML> | |
| <randomelement>I'm just chilling here</randomelement> | |
| <randomelement2>me too</randomelement2> | |
| <modified>1234</modified> | |
| <required-one>I am required</required-one> | |
| </MyXML> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xsl:template match="app_score"> | |
| <xsl:template match="tr_weight"> | |
| <xsl:template match="rearend"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <app_score><xsl:value-of select="app_score"></xsl:value-of></app_score> | |
| <tr_weight><xsl:value-of select="tr_weight"></xsl:value-of></tr_weight> | |
| <rearend><xsl:value-of select="rearend"></xsl:value-of></rearend> |