I'm trying to assign a js variable to java's request or session and want to access it from the server side. I dont want the js variable to be passed on in the URL. Help me, I'm seeking for a solution.
Thanks in advance
...
Currently, I have a servlet act as web service.
When I pass in parameters using POST, it will return me an executable binary file (application/octet-stream). However, beside binary file, I would also like to get additional information (in text format) about this binary file.
Is it possible to achieve this by using only single POST requ...
I use hibernate for persistence. when i call the method :
Session s = getCurrentSession();
s.flush();
i geth the following message :
[toString() unavailable - no suspended threads]
and it just stops running after the s.flush() method.
I'm using JBoss IDE 1.6 and the message is shown within the Variables window when debugging.
do y...
what is Controller in MVC. Is it struts.xml or Servlet (Action Class)
Can we have more than one Controller in our application. is it good practice to have more than one controller.
...
I have an ear file which contains 4 war files. The main reason we put those together is, that the order of startup is important, and it is easier from a deployment perspective (the customer only gets one file and does not have to worry about which versions works together).
The ear files are going to be deployed on 4 different systems, w...
I need to map two tables to a single class, having trouble figuring this out. One table is ROOMS, the other is TRAINERS.
The ROOMS table:
OOC_UNIT_ID NUMBER(6,0)
OOC_START_DT DATE
OOC_START_TM DATE
OOC_DT_MOD DATE
OOC_USER_MOD VARCHAR2(30 BYTE)
OOC_END_DT DATE
OOC_END_TM ...
Is there a way of specifying the configuration name of a message bean through annotations?
In the jboss.xml descriptor you can have different configurations and bind the beans to a particular config:
<message-driven>
<ejb-name>PushUserAgentBean</ejb-name>
<destination-jndi-name>queue/PushUserAgent</des...
Hi there,
I'm currently creating a web-app using J2EE. I'm trying to make it so that different users logging on have different permissions (ex: NoviceUser, IntermediateUser, ProUser). I'm trying to figure out the best way to provide functionality based on the role of the current logged in user. Are security roles the best way to go about...
I am trying to integrate a non-Java executable into a Java webapp on the server-side (Linux).
Some details about the executable:
Written in C++. The executable takes some input either from stdin or file and generates an output file. The executable is not designed to be a long running process i.e it generates an output and then dies out...
I have a DB running on Oracle. I use Hibernate for data access. I want to be notified whenever an object is saved in the DB, so that I can do some custom work. I want an "event listener" if you could call it that. Is there a way to detect such task ?
...
Hello All...
I am using spring web mvc for my app's UI part..
By using following code, i am getting List Box where i can select more then 1 value..
<form:select path="domainsList">
<form:options items="${domainsList}" itemValue="domain" itemLabel="domain"/>
</form:select>
But I need a drop down combo box...
Can any one suggest how...
I have a j2ee application deployed on GlassFish.
I have mysql jars in GlassFish's lib directory.
I am trying to use JPA, and my persistence file is:
<persistence-unit name="teamPU"
transaction-type="RESOURCE_LOCAL">
<provider>
oracle.toplink.essentials.PersistenceProvider
</provider>
<class>com.team.dao.Roles</class>
<properties>...
I have dabbled with various AJAX frameworks, namely GWT, Dojo, Ext-JS, jQuery UI. I am interested in understanding what AJAX frameworks best meet the following criteria:
- Most easy to learn
- Most painless to keep maintained
- Most reputable, stable, founded & grounded
- Easiest to read and share
- Integrates well with J2EE
...
Hello,
JBoss 4.2.3, an application deployed as a ear. Works. Then I enable classloader isolation by adding a loader-repository tag into jboss-app.xml. In multiple beans @Resource TimerService stops being injected and the code throws NullPointerException.
What could possibly be the reason of such behavior? I have no clue.
Thanks,
Artem...
This question is not about how JMX works or what JMX does. This question is about applications of JMX in standard application server environment in production. It is not for specific server either.
What do you monitor with JMX in production environment that runs standard stack of JEE services: database access (JDBC and JPA), session EJ...
hello there is something i've realized with quartz when working.Say a cron is set to wake up every 2min with the expression 0 0/2 * * * ? .
When you run the project at say 13:10:30, the first action happens at 13:12:00 and the second 13:14:00 and every 2min 0 second for the rest. Obviously between the startup of the project and the firs...
I have a Java Project, for which I'm now creating a Web interface, using a Dynamic Web Project from Eclipse. The Web project consists of a single servlet and two JSP's. Something like this:
/JavaApplication
/src
/lib
/resources
/WebApplication
/src
/Servlet.java
/WebContent
/WEB-INF
index.jsp
other.jsp
Now, I...
After upgrading from JBoss 4 to JBoss 5, I've noticed the most annoying regression. It truncates the trailing equal sign ('=') of a base64 cookie value.
It took me so much time to understand that the problem wasn't my code but JBoss', I googled it and find out it's a known issue .
The suggested work around is to calculate the string le...
This question is about eclipse development, I am trying to create a web application in Eclipse, the problem is that I don't get the the dependencies jars to the deployed archive.
I've created a new dynamic web project and linked it to another java project. The java project references a few 3rd party jars (e.g. Spring jars) but for some ...
Hi everyone,
I want to write a simple web application, on J2EE, with these characteristics:
I don't need any AJAX, and it should even work with JavaScript disabled on the browser.
It is a simple CRUD application
I would need full control on the way each element is laid out on the page - no compromise on the GUI's look and feel.
I can ...