0

I'm developing a web application, and I recently discovered the need of a basic input form. The rest of my application does not have much of this, mostly single input-fields. I figured I would try to use a javascript library for validation, and ended up choosing parsley.js.

in this youtube tutorial, the tutor uses bootstrapping, a term I have come across a lot lately, but have no experience with. I figured I'd try it out in the single page of my web app.

However I get errors on the first character of the css I try to import, stating that < is an illegal token. This is of course the start of the file <!DOCTYPE html>. So in other words, the .css is found and included, it is just not accepted. This error has been repeated with a couple of different import sources now.

I've tried to look a little outside the box, to figure out why. I read posts like these:

These have led me to suspect that bootstrapping might not be meant for importing a style sheet, for a single page which is only a part of a web app, like I am trying to do.

So, is it wrong to think that I can use bootstrapping as I would import a .css file, for a single page? If not, what else might my problem be?

EDIT:

I forgot to tell that I am importing the css and js libraries through their online url's. If i copy them to my workspace, and import them from there, I get this error:

PWC6199: Generated servlet error:
The code of method _jspService(HttpServletRequest, HttpServletResponse) is 
exceeding the 65535 bytes limit
Community
  • 1
  • 1
jumps4fun
  • 3,994
  • 10
  • 50
  • 96
  • 4
    I think you've thoroughly confused bootstrapping the technique with Bootstrap the library. They have nothing to do with each other. I didn't watch the whole Youtube tutorial, but the only "bootstrapping" it seems to do is include Bootstrap (the library), and the questions you link to talk about bootstrapping (the technique). – JJJ Jul 14 '14 at 14:50
  • Also, it's not at all clear what you're trying to do. If a file starts with ` ` it isn't a (valid) CSS file. – JJJ Jul 14 '14 at 14:51
  • That first comment is very helpful. Yes, I most certainly have confused the two terms. the two imports below returns files that start with ` ` `` `` although I do get some warnings on MIME-types – jumps4fun Jul 14 '14 at 14:59
  • By the way, you have already answered my original question. Although it builds on a misunderstanding on my side, maybe it can be helpful to others, so if you style an answer, explaining that bootstrap and bootstrapping are two very different things, and that one indeed can use bootstrap css to style only a single page, I'll accept it. Then I'll continue trying to figure out where that doctype html comes from, and why I get these errors. Thanks for crossing one option off my list of suspects. – jumps4fun Jul 14 '14 at 15:06

0 Answers0