手机中jsp页面转化为html页面

本文详细解析了电商系统中通过二维码推广商品并进行价格维护的步骤,包括用户注册、登录、订单管理、价格修改以及生成二维码的过程。同时,提供了JSP页面展示与异常处理的实例,以及在Controller层如何处理请求与添加商品类型信息。
  1. 寻找页面

    进入分销商入口-重新注册-用新注册的用户名密码登录-订单管理-价格维护点修改-二维码推广-生成二维码

    (initDistributorAlipayComfirm?distributorPriceId=201500000000012)

  2. QrCodeService.java的createQrCode方法-找到url

    在地址栏里打入http://localhost:8080/agriculture-mvc/initDistributorAlipayComfirm?distributorPriceId=201500000000012找到画面。

 3.jsp:   ${message}<form:errors path="*"></form:errors>

      html:   <span th:errors="${alipayForm.*}"></span>

         <span th:text="${message}"></span>

4.//用来显示新注册的用户名

jsp:该页面来自您朋友"${alipayForm.distributorName}"的推荐,请认真填写以下每项内容以保证商品能够顺利到达您的手中。

html:该页面来自您朋友<span th:text="${alipayForm.distributorName}"></span>的推荐,请认真填写以下每项内容以保证商品能够顺利到达您的手中。 

6.找到此方法的controller下加上"粮食"的问题

@RequestMapping(value = "initDistributorAlipayComfirm", method = RequestMethod.GET)

public String initDistributorAlipayComfirm(Model model,HttpSession session, AlipayForm alipayForm) {

关键代码:             GoodsForm goodsForm= new GoodsForm();

关键代码: goodsForm.setType("粮食");

关键代码: model.addAttribute("goodsForm", goodsForm);


7。< th:if="${#strings.isEmpty(session.UVO.guestName)}">shop/userBar的错误要添加UVO用户值对象

UVO uvo=new UVO();

session.setAttribute("UVO",uvo);


转载于:https://my.oschina.net/u/2412052/blog/483436

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值