How to define a Deployment Server for Netbeans?

Asked

Viewed 19 times

0

Good evening! I am studying MVC for Netbeans with the use of Maven. However, I can’t load a xhtml page, because when I click Run Project up there, it builds normally. However, the following message appears after the information "BUILD SUCCESS", the following text appears: No suitable Deployment Server is defined for the project or globally. How can I solve this problem? Thanks in advance! XHTML I’m trying to load:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui">
    
<h:head> 
 <title>Calculadora</title>
</h:head >

<h:body>
<h:form>

<h:panelGrid columns ="4">
 <p:outputLabel value ="Digite um numero:"/>
 <p:inputText value ="#{calculadoraBean.a}"/> 
 <p:outputLabel value ="Digite um numero:"/>
 <p:inputText value ="#{calculadoraBean.b}"/>
 <p:commandButton value ="Somar"  update="@form"  action="#{calculadoraBean.soma}"/>
 <p:commandButton value ="Subtrair"  update="display"  action="#{calculadoraBean.subtracao}"/>
 <p:commandButton value ="Dividir"  update="display"  action="#{calculadoraBean.divisao}"/>
 <p:commandButton value ="Multiplicar"  update="display"  action="#{calculadoraBean.multiplicacao}"/>
  </h:panelGrid>
  
 <p:panelGrid columns ="1" id="disp lay">
<h:outputText value="#{calculadoraBean.resultado}"/> 
 </p:panelGrid>
</h:form>

</h:body >
</html>
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.