Quantcast
Channel: Programação - GUJ
Viewing all articles
Browse latest Browse all 33090

Paginas jsp com bootstrap

$
0
0

@lucasSteinvascher escreveu:

Boa tarde galera, estou com um problema no meu projeto, onde estou tentando fazer uso do bootstrap porem o mesmo não está sendo apresentado em minhas paginas, apresenta o HTLM puro, sem o CSS(bootstrap). Meu projeto estou fazendo ele no netbeans com a arquitetura spring MVC. Coloquei a anotation do MVC mais mesmo assim o problema persiste.

ESTE É O CODIGO DO dispatcher-servlet.xml:

<?xml version='1.0' encoding='UTF-8' ?>

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">

<mvc:annotation-driven />
<context:component-scan base-package = "br.com.iniciando" />

<bean id="viewResolver"
      class="org.springframework.web.servlet.view.InternalResourceViewResolver"
      p:prefix="/WEB-INF/jsp/"
      p:suffix=".jsp" />

<mvc:resources mapping="/resources/**" location="/resources/"/>

E ESTÁ É MINHA PAGINA JSP:

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>




" rel="stylesheet" type="text/css"/>
CADASTRO

</head>
<body>
    <h1>CADASTRO</h1>

    <div>
        <form>
            <div class="form-group">
                <form>
                    <div>
                        NOME
                        <input type="text" name="nome" id="nome" class="form-control">   
                    </div> 
                </form>    
            </div>          
        </form>
    </div>
</body>

Alguem tem alguma ideia de o porque não estar dando certo para importar o bootstrap.css da minha pasta resources/css ?

Mensagens: 12

Participantes: 3

Ler tópico completo


Viewing all articles
Browse latest Browse all 33090


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>