1
by including a last page in my project I got a url problem, from which, I could not identify the problem.
JSF scenario:
- Certification module: href="customer service/"
- Customer details: href="client/${nrPasta}"
- Certification module: href="customer service/"
Access the service module, this will list all registered customers. I select one of the customers and access the details of the same, which brings me the url "app/customer/customer/123", until this point works normally, however, if the user decides to click again on the link of the module the url loaded will be "app/customer/customer/customer/customer/customer/customer".
@RequestMapping("/atendimento")
public class Atendimento {
@RequestMapping("/cliente")
public String atendimentoCliente(){};
@RequestMapping("/{nrPasta}")
public String atendimentoDetalhes(){}
URL base: localhost:8084/app/
So hang on, have any idea what might be going on, because I’m not identifying my mistake.
Attendance.jsf
<tbody>
<c:forEach items="${cliente}" var="cl">
<tr>
<td>${cl.nrPasta}</td>
<td>${cl.nome}</td>
<td class="hidden-480">
<span class="label label-sm label-success">Novo</span>
</td>
<td>
<div class="hidden-sm hidden-xs action-buttons">
<a class="blue" href="cliente/${cl.nrPasta}">
<i class="ace-icon fa fa-search-plus bigger-130"></i>
</a>
</div>
<div class="hidden-md hidden-lg">
<div class="inline pos-rel">
<button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown" data-position="auto">
<i class="ace-icon fa fa-caret-down icon-only bigger-120"></i>
</button>
<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
<li>
<a href="cliente/${cl.nrPasta}" class="tooltip-info" data-rel="tooltip" title="View">
<span class="blue">
<i class="ace-icon fa fa-search-plus bigger-120"></i>
</span>
</a>
</li>
</ul>
</div>
</div>
</td>
</tr>
</c:forEach>
</tbody><!-- tbody -->
Module with link Service:
<ul class="submenu">
<li class="">
<a href="atendimento/cliente">
<i class="menu-icon fa fa-caret-right"></i>
Atendimento
</a>
<b class="arrow"></b>
</li>
</ul>
Place the code of the page that has the button to navigate to the module link in the customer details.
– Giuliana Bezerra