Crystal Bazil

Ranch Hand
+ Follow
since Sep 28, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Crystal Bazil

Sorry Steve I didnt see your response before my last post.
15 years ago
The end user would expect the print job. Let me explain, I have built a crib function which allows crib attendants to issue tooling to the floor. Once they issue a tool it will need a new calibration sticker. They might issue multiple items in one batch therefore my thought process was to silently print so they would not get prompted for each sticker.
15 years ago
Nope, I hadn't even considered that point. Doh. Well atleast now you know what level of expertise you are dealing with =)

I would like the ability to silently print(to a named client printer) when a user updates a record from my web application. I am just not sure how to intergrate this into my existing structure.

Could you help guide me?
15 years ago
Hello -

I have been researching how to setup silent printing and I am thouroughly confused and overwhelmed with the information I have read. Below you will see the code I have at the moment. I have tried various examples but cannot get anything to print or even open the print dialouge prompt.

I am hoping someone would be kind enough to point me in the right direction or provide some new links. So far I have referenced the following:

http://java.sun.com/docs/books/tutorial/2d/printing/printable.html
http://forums.sun.com/thread.jspa?threadID=216673
http://forums.sun.com/thread.jspa?messageID=2444768
http://forums.sun.com/thread.jspa?forumID=256&threadID=222201
http://forums.sun.com/thread.jspa?messageID=912588

Thanks for your time,
Crystal

15 years ago
I have a table that is currently displaying like so:



and now I would like for it to display like this:



Is there an easy way to get this format with the code below or should I just rework my backend code? Any direction on this matter would be appreciated. Thanks!

16 years ago
JSP
I am attempting to create a scheduled task by accessing a Java class via a .bat file. I am able to access the class but I run into problems when I try to establish a database connection. I have posted code and error message below.

I have been reading and researching why I am receiving this error. I have concluded it is because I am trying to access JNDI from outside Tomcat(5.5). This may or may not be true.

All of the articles and various forum posts have now confused me. It would be helpful if someone could explain why I am receiving this error and give me direction on how to resolve it.







16 years ago
Thanks! I followed your advice and solved my issue.
16 years ago
JSP
I have two hashmaps that I need to display using JSTL. I cannot get the formatting that I want. Please see below.



and I would like to display the map's data like so



Using the logic below, I am able to display the map's data when the count is equal but it will not display the last item in mapOne. MapOne's size will always be bigger than or equal to mapTwo.




If someone coudl point me in the right direction I would appreciate it. Thanks.
16 years ago
JSP
Thanks Ben - That sorta helped but moreso confused me. I am still exetremely confused about what I am doing however so extended help would be appreciated. I am going to post relevent bits of my code so you can get the full picture.


Servlet


Method


Interface



Process.java




JSP



My question/trouble is how can I call the ArrayList items(affect,class_) by name when I iterate through the ArrayList? Apparently, I am not doing something right when I am creating the list but I am not sure what I should be doing.

16 years ago
JSP
First I removed the first ArrayList, not sure why I had that in there. Secondly, I dug around and found what I would like to accomplish. I am still running into problems. See below.



Current Display




Wanted Display





When I attempt the 2nd JSTL display I get the error :




I followed a couple examples I have found on the forums/google but each variation proves the same error message. I think I am maybe not setting things properly but am not sure what I need to do. Any direction on this would be appreciated. Thanks!

Crystal
16 years ago
JSP
I have a process I am trying to display using JSTL. The process is as follows:



So in theory the form could look something like this




I am storing my data for each section in an ArrayList of LinkedHashMaps whose values are ArrayLists.

And currently to display the data I am counting the items in the ArrayList and displaying accordingly.


It all works but.. it's ugly. I am just curious if there is an easier way to do this? Any direction would be appreciated!

Crystal
[ September 19, 2007: Message edited by: Crystal Bazil ]
16 years ago
JSP
I was able to resolve my issue after digging deep in a mail archive. Below is what I have currently working.

Server.xml



web.xml


I also am a retard and didnt have my database table name fully written out properly. Lesson for today - check the logs. Class dismissed.
17 years ago
I am having trouble setting up a datasource realm in TC 5.5.0. Below are the steps I have taken from TC 5.5 documentation.


1.If you have not yet done so, create tables and columns in your database that conform to the requirements described above.

- I created a table "users" with columns "user_name" and "user_pass".
- I created a table "user_roles" with columns "user_name" and "role_name".
- Both have read permissions.

2. Configure a database username and password for use by Tomcat, that has at least read only access to the tables described above. (Tomcat will never attempt to write to these tables.)

- I am unsure about this. For my datasource I already have a username/password - will this suffice?

3. Configure a JNDI named JDBC DataSource for your database. Refer to the JNDI DataSource Example HOW-TO for information on how to configure a JNDI named JDBC DataSource.

- I already have DBCP working. See below server.xml and context.xml excerpts.



4. Set up a <Realm> element, as described below, in your $CATALINA_HOME/conf/server.xml file.



For dataSourceName I was unsure of what I should use but I have tried "java:comp/env/jdbc/connectDB" and "jdbc/connectDB".

5. Restart Tomcat 5 if it is already running.

When I go to http:localhost:8080/MyContextName I am prompted to authenticate but it's not registering my username/password. After three attempts I get a 401 error page.

I've been looking at this for a few days and I do not see(obvious I am sure) what I am doing wrong. If someone could point out where I went wrong - I'd appreciate it. Thanks in advance!

Crystal

[ January 22, 2007: Message edited by: Crystal Bazil ]
[ January 22, 2007: Message edited by: Crystal Bazil ]
17 years ago
Quickly some background information to my question.

I have been developing a web based application for different labs under our company umbrella. Each site is running basically the same code under a different context name.

I am at the point where it's a nightmare trying to keep up with the different versions/revisions of code for each site. I say versions as in I may enhance code on one site or fix a bug and then get drug off this project onto another and dont update the other sites. It's messy.

I want to consolidate everything. I am already set up where all my SQL calls pass in the context name to call stored procedures for that specific site - that is how I got away with using the same code without hardcoding anything..

What would be the best way to provide one context that multiple sites can hit but only see their personalized information without doing some sort of user authentication/login stuff. Security isnt a big issue but data needs to be kept seperate - that is the main issue.

Any advice would be appreciated. Thanks
17 years ago
still cannot figure this out!
17 years ago