Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringclasses
6 values
<s>[INST] Convert the following Struts action to Spring Boot controller. <action path="/login" type="com.example.LoginAction" scope="request" validate="false"> <forward name="success" path="/welcome.jsp" /> <forward name="failure" path="/login.jsp" /> </action> [/INST] @RestController @RequestMapping("/login") ...
<s>[INST] Convert the following Struts form bean to Spring Boot entity. <form-bean name="userForm" type="com.example.UserForm" /> [/INST] @Entity public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String username; private String password; // gett...
<s>[INST] Convert the following Struts action to Spring Boot controller. <action path="/register" type="com.example.RegisterAction" scope="request" validate="true"> <forward name="success" path="/welcome.jsp" /> <forward name="failure" path="/register.jsp" /> </action> [/INST] @RestController @RequestMapping("/...
<s>[INST] Convert the following Struts validation to Spring Boot validation. <form-bean name="loginForm" type="com.example.LoginForm" /> <validator name="required" classname="org.apache.struts.validator.FieldChecks" method="validateRequired" /> <field property="username" depends="required" /> [/INST] @Entity public cla...
<s>[INST] Convert the following Struts action to Spring Boot controller. <action path="/updateProfile" type="com.example.UpdateProfileAction" scope="session" validate="true"> <forward name="success" path="/profile.jsp" /> <forward name="failure" path="/editProfile.jsp" /> </action> [/INST] @RestController @Requ...
<s>[INST] Convert the following Struts form bean to Spring Boot DTO. <form-bean name="productForm" type="com.example.ProductForm" /> [/INST] public class ProductDTO { private String name; private BigDecimal price; private String description; // getters and setters } </s>
README.md exists but content is empty.
Downloads last month
4